CVE-2025-22027
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-perf6.12 | Amazon Linux | 6.12.23-29.97.amzn2023 |
| perf | Amazon Linux | 6.1.134-150.224.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 6.12.23-29.97.amzn2023 |
| kernel-livepatch-6.12.23-29.97 | Amazon Linux | 1.0-0.amzn2023 |
| bpftool | Amazon Linux | 6.1.134-150.224.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.134-150.224.amzn2023 |
| perf6.12 | Amazon Linux | 6.12.23-29.97.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.134-150.224.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.134-150.224.amzn2023 |
| kernel6.12 | Amazon Linux | 6.12.23-29.97.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.134-150.224.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.134-150.224.amzn2023 |
6 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 8e9e60640067858e8036d4d43bbf725c60613359, 8e9e60640067858e8036d4d43bbf725c60613359, 8e9e60640067858e8036d4d43bbf725c60613359 |
| Linux | Linux | 2.6.36, 0, 5.10.237 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-livepatch-6.12.23-29.97 | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| Linux | Linux | 8e9e60640067858e8036d4d43bbf725c60613359, 8e9e60640067858e8036d4d43bbf725c60613359, 2.6.36 |
| amazon:2023 | kernel-tools-devel | 0 |
…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