Bug 2360299 (CVE-2025-22027) - CVE-2025-22027 kernel: media: streamzap: fix race between device disconnection and urb callback
Summary: CVE-2025-22027 kernel: media: streamzap: fix race between device disconnectio...
Keywords:
Status: NEW
Alias: CVE-2025-22027
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-16 15:07 UTC by OSIDB Bzimport
Modified: 2025-04-25 06:33 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-16 15:07:01 UTC
In the Linux kernel, the following vulnerability has been resolved:

media: streamzap: fix race between device disconnection and urb callback

Syzkaller has reported a general protection fault at function
ir_raw_event_store_with_filter(). This crash is caused by a NULL pointer
dereference of dev->raw pointer, even though it is checked for NULL in
the same function, which means there is a race condition. It occurs due
to the incorrect order of actions in the streamzap_disconnect() function:
rc_unregister_device() is called before usb_kill_urb(). The dev->raw
pointer is freed and set to NULL in rc_unregister_device(), and only
after that usb_kill_urb() waits for in-progress requests to finish.

If rc_unregister_device() is called while streamzap_callback() handler is
not finished, this can lead to accessing freed resources. Thus
rc_unregister_device() should be called after usb_kill_urb().

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

Comment 1 Avinash Hanwate 2025-04-17 05:25:59 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025041655-CVE-2025-22027-d850@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.