# CVE-2026-139049

- Bağlantı: https://www.allsafe.com.tr/cve-2026-139049/
- Yayımlanma: 2026-11-30T17:18:10+03:00
- Yazar: Postmaster

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.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-139049)
