# CVE-2026-89901: media: airspy: use vb2\_video\_unregister\_device() on disconnect to fix NULL deref

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-09-16T10:32:00.997Z
- **Modified:** 2026-10-19T09:18:35.403Z

## Who should check

- Anyone running Linux \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< c9081e2655188d2d134a741aec837dc70439d505; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 75089cea32e5055773bd13116236d08fdc98678a; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 155d0378ae0d6305cc4840583a6b42d2d0595bff; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 6e4ea90fdc6608cd5fac342e146ab6ae15d430bc; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< a9a8c37ddda9fa3687b142be9098e1c37b8faf35; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 297fee023f46d771a844520675692ea089d80d9d; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< c6749ac8f59cc80eb1b2d52f167fdf13e12655cc; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 2f378dc45e685fc825d2dd08e7864666d6fcc009
- Anyone running Linux 3.17

## Description

In the Linux kernel, the following vulnerability has been resolved:

media: airspy: use vb2\_video\_unregister\_device() on disconnect to fix NULL deref

airspy\_disconnect() clears s-\>udev under v4l2\_lock, but
airspy\_stop\_streaming() unconditionally calls airspy\_ctrl\_msg() and
airspy\_free\_stream\_bufs() afterwards. If a streaming user closes the
device after disconnect, stop\_streaming() runs and dereferences the
NULL s-\>udev:

  airspy\_stop\_streaming()
    airspy\_ctrl\_msg(s, CMD\_RECEIVER\_MODE, 0, 0, NULL, 0)
      usb\_sndctrlpipe(s-\>udev, 0)         /\* NULL deref \*/
    airspy\_free\_stream\_bufs(s)
      usb\_free\_coherent(s-\>udev, ...)     /\* NULL deref \*/

The airspy driver uses vb2\_fop\_release() in its file\_operations, so
replace video\_unregister\_device(&s-\>vdev) with
vb2\_video\_unregister\_device(&s-\>vdev) and move it before clearing
s-\>udev. vb2\_video\_unregister\_device() releases the vb2 queue, which
synchronously runs airspy\_stop\_streaming() if streaming is active, so
the URBs, coherent DMA stream buffers and the hardware stop control
message all execute while s-\>udev is still valid.

vb2\_video\_unregister\_device() locks vdev-\>queue-\>lock (vb\_queue\_lock)
internally, and stop\_streaming() locks v4l2\_lock, so the previous outer
mutex\_lock(&s-\>vb\_queue\_lock) / mutex\_lock(&s-\>v4l2\_lock) pair around
the unregister sequence would self-deadlock and has been removed. A
short v4l2\_lock critical section around s-\>udev = NULL remains so any
ioctl path that still holds the file descriptor sees coherent state.

Issue identified by automated review of the INV-003 series at
https://sashiko.dev/

## Affected and fixed versions

- Linux: \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< c9081e2655188d2d134a741aec837dc70439d505; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 75089cea32e5055773bd13116236d08fdc98678a; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 155d0378ae0d6305cc4840583a6b42d2d0595bff; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 6e4ea90fdc6608cd5fac342e146ab6ae15d430bc; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< a9a8c37ddda9fa3687b142be9098e1c37b8faf35; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 297fee023f46d771a844520675692ea089d80d9d; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< c6749ac8f59cc80eb1b2d52f167fdf13e12655cc; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 2f378dc45e685fc825d2dd08e7864666d6fcc009 (cvelist)
- Linux: 3.17 (cvelist)

## Mitigation

- Upgrade Linux to 2f378dc45e685fc825d2dd08e7864666d6fcc009 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-89901.md
Affected: Linux >= 634fe5033951b80ef4b98d8f047cb1083d29170d, < c9081e2655188d2d134a741aec837dc70439d505; >= 634fe5033951b80ef4b98d8f047cb1083d29170d, < 75089cea32e5055773bd13116236d08fdc98678a; >= 634fe5033951b80ef4b98d8f047cb1083d29170d, < 155d0378ae0d6305cc4840583a6b42d2d0595bff; >= 634fe5033951b80ef4b98d8…
Fixed in: Linux 75089cea32e5055773bd13116236d08fdc98678a, Linux 155d0378ae0d6305cc4840583a6b42d2d0595bff, Linux 6e4ea90fdc6608cd5fac342e146ab6ae15d430bc, Linux 297fee023f46d771a844520675692ea089d80d9d, Linux 2f378dc45e685fc825d2dd08e7864666d6fcc009

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-2026-89901 being exploited?

There is no confirmed exploitation: CVE-2026-89901 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-89901?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-89901?

Linux \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< c9081e2655188d2d134a741aec837dc70439d505; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 75089cea32e5055773bd13116236d08fdc98678a; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 155d0378ae0d6305cc4840583a6b42d2d0595bff; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 6e4ea90fdc6608cd5fac342e146ab6ae15d430bc; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< a9a8c37ddda9fa3687b142be9098e1c37b8faf35; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 297fee023f46d771a844520675692ea089d80d9d; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< c6749ac8f59cc80eb1b2d52f167fdf13e12655cc; \>= 634fe5033951b80ef4b98d8f047cb1083d29170d, \< 2f378dc45e685fc825d2dd08e7864666d6fcc009; Linux 3.17.

### Is there a fix for CVE-2026-89901?

Yes. Fixed in Linux 75089cea32e5055773bd13116236d08fdc98678a, Linux 155d0378ae0d6305cc4840583a6b42d2d0595bff, Linux 6e4ea90fdc6608cd5fac342e146ab6ae15d430bc, Linux 297fee023f46d771a844520675692ea089d80d9d, Linux 2f378dc45e685fc825d2dd08e7864666d6fcc009. Upgrade Linux to 2f378dc45e685fc825d2dd08e7864666d6fcc009 or later.

### How do I check if I'm affected by CVE-2026-89901?

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

- other: <https://git.kernel.org/stable/c/c9081e2655188d2d134a741aec837dc70439d505>
- other: <https://git.kernel.org/stable/c/75089cea32e5055773bd13116236d08fdc98678a>
- other: <https://git.kernel.org/stable/c/155d0378ae0d6305cc4840583a6b42d2d0595bff>
- other: <https://git.kernel.org/stable/c/6e4ea90fdc6608cd5fac342e146ab6ae15d430bc>
- other: <https://git.kernel.org/stable/c/a9a8c37ddda9fa3687b142be9098e1c37b8faf35>
- other: <https://git.kernel.org/stable/c/297fee023f46d771a844520675692ea089d80d9d>
- other: <https://git.kernel.org/stable/c/c6749ac8f59cc80eb1b2d52f167fdf13e12655cc>
- other: <https://git.kernel.org/stable/c/2f378dc45e685fc825d2dd08e7864666d6fcc009>

## 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-2026-89901>

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