VDB

CVE-2025-22027

CVE-2025-22027 PUBLISHED CVSS 4.7 MEDIUM

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

Reported by linux · Published April 16, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3-perf6.12Amazon Linux6.12.23-29.97.amzn2023
perfAmazon Linux6.1.134-150.224.amzn2023
kernel6.12-modules-extraAmazon Linux6.12.23-29.97.amzn2023
kernel-livepatch-6.12.23-29.97Amazon Linux1.0-0.amzn2023
bpftoolAmazon Linux6.1.134-150.224.amzn2023
kernel-headersAmazon Linux6.1.134-150.224.amzn2023
perf6.12Amazon Linux6.12.23-29.97.amzn2023
kernel-modules-extraAmazon Linux6.1.134-150.224.amzn2023
kernel-develAmazon Linux6.1.134-150.224.amzn2023
kernel6.12Amazon Linux6.12.23-29.97.amzn2023
kernel-libbpf-staticAmazon Linux6.1.134-150.224.amzn2023
kernel-toolsAmazon Linux6.1.134-150.224.amzn2023

6 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
4.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux8e9e60640067858e8036d4d43bbf725c60613359, 8e9e60640067858e8036d4d43bbf725c60613359, 8e9e60640067858e8036d4d43bbf725c60613359
LinuxLinux2.6.36, 0, 5.10.237
amazon:2023python3-perf6.120
amazon:2023perf0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-livepatch-6.12.23-29.970
amazon:2023bpftool0
amazon:2023kernel-headers0
amazon:2023perf6.120
amazon:2023kernel-modules-extra0
amazon:2023kernel-devel0
amazon:2023kernel6.120
amazon:2023kernel-libbpf-static0
amazon:2023kernel-tools0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-libbpf0
LinuxLinux8e9e60640067858e8036d4d43bbf725c60613359, 8e9e60640067858e8036d4d43bbf725c60613359, 2.6.36
amazon:2023kernel-tools-devel0

…and 3 more

Timeline

  • Apr 16, 2025 CVE Published
  • Apr 17, 2025 EPSS Score (30 in total, the first dated here)
  • May 27, 2025 Coalition ESS Score (14 in total, the first dated here)
  • Dec 21, 2025 Security Advisory (361 in total, the first dated here)
  • Apr 20, 2026 Distribution Patch (354 in total, the first dated here)
  • Nov 2, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-22027
vulnetix vdb fixes CVE-2025-22027

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-22027/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›