CVE-2026-139043
JSON

Not scored

media: vim2m: keep transaction buffer count stable while streaming

Severity
Not scored
Exploit likelihood
0.37% (higher than 33% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: media: vim2m: keep transaction buffer count stable while streaming V4L2_CID_TRANS_NUM_BUFS controls how many buffer pairs a vim2m mem2mem job processes before the job is completed. The driver stores the value in ctx->translen and device_work() uses it later to decide whether the current transaction should continue. Letting userspace change this control while streaming is active can make a queued job observe a different transaction length than the one it started with. That leaves the transaction state inconsistent with the buffers currently queued for the job. Grab the transaction buffer count control while either queue is streaming, and release it only after both queues have stopped streaming. The V4L2 control framework then rejects changes with -EBUSY while the value is in use, while still allowing userspace to configure the value before streaming starts. Keep the control handler alive until after v4l2_m2m_ctx_release(), since releasing the mem2mem context can call stop_streaming(), which now ungrabs the control.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf before 3c1c270cae58369a200205d2d720544dd7874340, from 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf before 17bf26dd7c73e5375ab14e0eb61726cac0fdf71b, from 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf before a9bde6eeb51afffb3fea5e609e33307d5a4edd07, from 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf before f978da753d6164eca5f5c0fe40bc1b14efd68697, from 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf before 9b113c0f905cac76c34d7a37132172939824a7e5, from 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf before b64ea8c8e00850c067bb6f20bcee5b9b45dd72b0, from 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf before e511ec0459c5b0381fe089db9514d1fcac0b2aa3, from 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf before 50f5fed44d8e24081e8feed5154746fe193f11b8 and 1 more
Not affected: before 2.6.35, from 5.10.275 up to 5.10.*, from 5.15.226 up to 5.15.*, from 6.1.193 up to 6.1.*, from 6.6.163 up to 6.6.*, from 6.12.117 up to 6.12.*
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2026-139043 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-139043 changed 2026-11-30Public domain