# CVE-2026-139049: media: hws: Wait for IRQ handler before returning buffers

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 19% of CVEs (2026-12-01)
- Published: 2026-11-30T13:27:23.651Z
- Modified: 2026-12-01T06:17:32.587Z
- Assigned by: Linux

## Description

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

media: hws: Wait for IRQ handler before returning buffers

hws_stop_streaming() disables capture and then collects the active and
queued buffers straight away. Clearing cap_active and setting
stop_requested only stops a VDONE handler that has not checked them
yet; one already running on another CPU has passed those checks and
cannot be recalled.

That handler snapshots v->active into a local pointer and drops
irq_lock before it touches the buffer, so stop_streaming can run in
between. Without a next_prepared buffer both paths complete the same
buffer, and the second vb2_buffer_done() hits the WARN_ON for a buffer
that is no longer active. With a next_prepared buffer the snapshot is
the only remaining reference to the old active buffer, so
stop_streaming returns without it and vb2 reports "stop_streaming
operation is leaving buffer %u in active state" before completing it
with an error.

Either way the driver breaks the vb2 rule that stop_streaming has to
give back every buffer it owns before it returns.

Wait for the handler once the hardware is disabled and before the
buffers are collected. The live mode change and the channel cleanup
paths already do this around the same collect helper.

(As written by CVE List.)

## Affected

- Linux Linux: from ba07fd2f5742e8b0d965003b34c7a44eb4f67e53 before 9be75b4b0b37f6720cf7255c5c3ad021ca08ee3b; from ba07fd2f5742e8b0d965003b34c7a44eb4f67e53 before 1ba17b5a54187e8bb251ff9636ed65c84719b013; 7.2 (not affected: before 7.2; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/9be75b4b0b37f6720cf7255c5c3ad021ca08ee3b>
- <https://git.kernel.org/stable/c/1ba17b5a54187e8bb251ff9636ed65c84719b013>

## Sources

- CVE List: [CVE-2026-139049](https://www.cve.org/CVERecord?id=CVE-2026-139049), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139049](https://nvd.nist.gov/vuln/detail/CVE-2026-139049), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139049 · Whole record: https://cve.day/CVE-2026-139049.json · Rebuilt by cve.day 2026-12-01T06:32:14.431Z
