# CVE-2025-22027: media: streamzap: fix race between device disconnection and urb callback

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 6, 2026-12-05)
- **CWE:** CWE-362, CWE-476
- **Published:** 2025-04-16T14:11:48.210Z
- **Modified:** 2026-06-17T08:44:52.693Z

## Who should check

- Anyone running Linux \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< e11652a6514ec805440c1bb3739e6c6236fffcc7; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< f1d518c0bad01abe83c2df880274cb6a39f4a457; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< 30ef7cfee752ca318d5902cb67b60d9797ccd378; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< 15483afb930fc2f883702dc96f80efbe4055235e; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< adf0ddb914c9e5b3e50da4c97959e82de2df75c3; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< 4db62b60af2ccdea6ac5452fd20e29587ed85f57; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< 8760da4b9d44c36b93b6e4cf401ec7fe520015bd; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< f656cfbc7a293a039d6a0c7100e1c846845148c1
- Anyone running Linux 2.6.36

## 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 and fixed versions

- Linux: \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< e11652a6514ec805440c1bb3739e6c6236fffcc7; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< f1d518c0bad01abe83c2df880274cb6a39f4a457; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< 30ef7cfee752ca318d5902cb67b60d9797ccd378; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< 15483afb930fc2f883702dc96f80efbe4055235e; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< adf0ddb914c9e5b3e50da4c97959e82de2df75c3; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< 4db62b60af2ccdea6ac5452fd20e29587ed85f57; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< 8760da4b9d44c36b93b6e4cf401ec7fe520015bd; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< f656cfbc7a293a039d6a0c7100e1c846845148c1 (cvelist)
- Linux: 2.6.36 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-22027. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22027.md
Affected: Linux >= 8e9e60640067858e8036d4d43bbf725c60613359, < e11652a6514ec805440c1bb3739e6c6236fffcc7; >= 8e9e60640067858e8036d4d43bbf725c60613359, < f1d518c0bad01abe83c2df880274cb6a39f4a457; >= 8e9e60640067858e8036d4d43bbf725c60613359, < 30ef7cfee752ca318d5902cb67b60d9797ccd378; >= 8e9e60640067858e8036d4d…
Fixed in: Linux 30ef7cfee752ca318d5902cb67b60d9797ccd378, Linux 15483afb930fc2f883702dc96f80efbe4055235e, Linux 4db62b60af2ccdea6ac5452fd20e29587ed85f57, Linux 8760da4b9d44c36b93b6e4cf401ec7fe520015bd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-22027 being exploited?

There is no confirmed exploitation: CVE-2025-22027 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-12-05).

### How serious is CVE-2025-22027?

Medium: CVSS 4.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-22027?

Linux \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< e11652a6514ec805440c1bb3739e6c6236fffcc7; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< f1d518c0bad01abe83c2df880274cb6a39f4a457; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< 30ef7cfee752ca318d5902cb67b60d9797ccd378; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< 15483afb930fc2f883702dc96f80efbe4055235e; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< adf0ddb914c9e5b3e50da4c97959e82de2df75c3; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< 4db62b60af2ccdea6ac5452fd20e29587ed85f57; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< 8760da4b9d44c36b93b6e4cf401ec7fe520015bd; \>= 8e9e60640067858e8036d4d43bbf725c60613359, \< f656cfbc7a293a039d6a0c7100e1c846845148c1; Linux 2.6.36.

### Is there a fix for CVE-2025-22027?

Yes. Fixed in Linux 30ef7cfee752ca318d5902cb67b60d9797ccd378, Linux 15483afb930fc2f883702dc96f80efbe4055235e, Linux 4db62b60af2ccdea6ac5452fd20e29587ed85f57, Linux 8760da4b9d44c36b93b6e4cf401ec7fe520015bd. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-22027?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e11652a6514ec805440c1bb3739e6c6236fffcc7>
- patch: <https://git.kernel.org/stable/c/f1d518c0bad01abe83c2df880274cb6a39f4a457>
- patch: <https://git.kernel.org/stable/c/30ef7cfee752ca318d5902cb67b60d9797ccd378>
- patch: <https://git.kernel.org/stable/c/15483afb930fc2f883702dc96f80efbe4055235e>
- patch: <https://git.kernel.org/stable/c/adf0ddb914c9e5b3e50da4c97959e82de2df75c3>
- patch: <https://git.kernel.org/stable/c/4db62b60af2ccdea6ac5452fd20e29587ed85f57>
- patch: <https://git.kernel.org/stable/c/8760da4b9d44c36b93b6e4cf401ec7fe520015bd>
- patch: <https://git.kernel.org/stable/c/f656cfbc7a293a039d6a0c7100e1c846845148c1>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-22027>

HTML: <https://flawdb.com/CVE-2025-22027> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-22027>
