# CVE-2026-139560: media: em28xx: hold the vb2 queue lock when releasing the queue on close

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:35:53.382Z
- **Modified:** 2026-11-30T14:19:36.720Z

## Who should check

- Anyone running Linux \>= de626073dfcbb06441f1a9755715941c0c375fe3, \< 748b6ef3cb9785b8774f406a8bc33e7cee297373; \>= de626073dfcbb06441f1a9755715941c0c375fe3, \< 37f4b2004b9a22e70a289be77451f9f2b278142a
- Anyone running Linux 7.3

## Description

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

media: em28xx: hold the vb2 queue lock when releasing the queue on close

Commit de626073dfcb ("media: em28xx: drop 'users' field") replaced the
vb2\_fop\_release() call in em28xx\_v4l2\_close() with
\_vb2\_fop\_release(filp, NULL) under dev-\>lock. vb2\_fop\_release() took
the vb2 queue lock, but the new call takes no lock at all.

The video and VBI queues have their own locks (vb\_queue\_lock and
vb\_vbi\_queue\_lock), and v4l2\_ioctl\_get\_lock() serializes the queue
ioctls with those rather than dev-\>lock. The queue can therefore be
released on close while another file handle is in the middle of
VIDIOC\_REQBUFS. \_\_vb2\_queue\_alloc() adds each buffer to the queue before
allocating its planes, so the release can find an MMAP buffer whose
mem\_priv is still NULL and hand it to vb2\_vmalloc\_put():

  BUG: kernel NULL pointer dereference, address: 0000000000000020
  RIP: 0010:vb2\_vmalloc\_put+0xe/0x50 \[videobuf2\_vmalloc\]
  Call Trace:
   \_\_vb2\_queue\_free+0x14e/0x350 \[videobuf2\_common\]
   vb2\_core\_queue\_release+0x3b/0x80 \[videobuf2\_common\]
   \_vb2\_fop\_release+0x44/0x70 \[videobuf2\_v4l2\]
   em28xx\_v4l2\_close+0x60/0x140 \[em28xx\_v4l\]
   v4l2\_release+0x9d/0xf0 \[videodev\]
   \_\_fput+0xfd/0x280

This was hit with OBS on a MyGica iGrabber (card=105).

Pass the queue lock to \_vb2\_fop\_release(). Taking it while holding
dev-\>lock matches the existing order in em28xx\_v4l2\_fini(), where
vb2\_video\_unregister\_device() takes the queue lock under dev-\>lock.

## Affected and fixed versions

- Linux: \>= de626073dfcbb06441f1a9755715941c0c375fe3, \< 748b6ef3cb9785b8774f406a8bc33e7cee297373; \>= de626073dfcbb06441f1a9755715941c0c375fe3, \< 37f4b2004b9a22e70a289be77451f9f2b278142a (cvelist)
- Linux: 7.3 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 37f4b2004b9a22e70a289be77451f9f2b278142a 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-139560. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139560.md
Affected: Linux >= de626073dfcbb06441f1a9755715941c0c375fe3, < 748b6ef3cb9785b8774f406a8bc33e7cee297373; >= de626073dfcbb06441f1a9755715941c0c375fe3, < 37f4b2004b9a22e70a289be77451f9f2b278142a; Linux 7.3
Fixed in: Linux 748b6ef3cb9785b8774f406a8bc33e7cee297373, Linux 37f4b2004b9a22e70a289be77451f9f2b278142a

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-139560 being exploited?

There is no confirmed exploitation: CVE-2026-139560 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

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

It has no CVSS score yet. Unknown.

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

Linux \>= de626073dfcbb06441f1a9755715941c0c375fe3, \< 748b6ef3cb9785b8774f406a8bc33e7cee297373; \>= de626073dfcbb06441f1a9755715941c0c375fe3, \< 37f4b2004b9a22e70a289be77451f9f2b278142a; Linux 7.3.

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

Yes. Fixed in Linux 748b6ef3cb9785b8774f406a8bc33e7cee297373, Linux 37f4b2004b9a22e70a289be77451f9f2b278142a. Upgrade Linux to 37f4b2004b9a22e70a289be77451f9f2b278142a or later.

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

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/748b6ef3cb9785b8774f406a8bc33e7cee297373>
- other: <https://git.kernel.org/stable/c/37f4b2004b9a22e70a289be77451f9f2b278142a>

## 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-139560>

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