CVE-2025-22027

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

MEDIUM
4.7
CVSS Score
Published: April 16, 2025 at 02:11 PM UTC
Updated: June 17, 2026 at 08:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.7
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.36 ≤ v < 5.10.2372.6.36 ≤ v < 5.15.1812.6.36 ≤ v < 6.1.1342.6.36 ≤ v < 6.12.232.6.36 ≤ v < 6.13.112.6.36 ≤ v < 6.14.22.6.36 ≤ v < 6.152.6.36 ≤ v < 6.6.876.13 ≤ v < 6.13.116.14 ≤ v < 6.14.26.2 ≤ v < 6.6.876.7 ≤ v < 6.12.232.6.368e9e60640067858e8036d4d43bbf725c60613359
Vendor states this is fixed in 15483afb930fc2f883702dc96f80efbe4055235e (fixed)
Vendor states this is fixed in 30ef7cfee752ca318d5902cb67b60d9797ccd378 (fixed)
Vendor states this is fixed in 4db62b60af2ccdea6ac5452fd20e29587ed85f57 (fixed)
Vendor states this is fixed in 8760da4b9d44c36b93b6e4cf401ec7fe520015bd (fixed)
Vendor states this is fixed in adf0ddb914c9e5b3e50da4c97959e82de2df75c3 (fixed)
Vendor states this is fixed in e11652a6514ec805440c1bb3739e6c6236fffcc7 (fixed)
Vendor states this is fixed in f1d518c0bad01abe83c2df880274cb6a39f4a457 (fixed)
Vendor states this is fixed in f656cfbc7a293a039d6a0c7100e1c846845148c1 (fixed)
Vendor states this is fixed in 2.6.36 (unaffected)
Vendor states this is fixed in 5.10.237 (unaffected)
Vendor states this is fixed in 5.15.181 (unaffected)
Vendor states this is fixed in 6.1.134 (unaffected)
Vendor states this is fixed in 6.12.23 (unaffected)
Vendor states this is fixed in 6.13.11 (unaffected)
Vendor states this is fixed in 6.14.2 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.87 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/15483afb930fc2f883702dc96f80efbe4055235e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/30ef7cfee752ca318d5902cb67b60d9797ccd378
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4db62b60af2ccdea6ac5452fd20e29587ed85f57
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8760da4b9d44c36b93b6e4cf401ec7fe520015bd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/adf0ddb914c9e5b3e50da4c97959e82de2df75c3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e11652a6514ec805440c1bb3739e6c6236fffcc7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f1d518c0bad01abe83c2df880274cb6a39f4a457
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f656cfbc7a293a039d6a0c7100e1c846845148c1

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

4.7MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-362CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card