PT-2026-163090
CVE-2026-139049
·
Publicado
2026-11-30
·
Atualizado
2026-11-30
Descrição por
CVSS 3.1
7.0
AltaMétricasAV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾