media: vim2m: keep transaction buffer count stable while streaming

Summary

CVECVE-2026-139043
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:09 UTC
Updated2026-11-30 14:18:09 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf 3c1c270cae58369a200205d2d720544dd7874340 git Not specified
CNA Linux Linux affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf 17bf26dd7c73e5375ab14e0eb61726cac0fdf71b git Not specified
CNA Linux Linux affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf a9bde6eeb51afffb3fea5e609e33307d5a4edd07 git Not specified
CNA Linux Linux affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf f978da753d6164eca5f5c0fe40bc1b14efd68697 git Not specified
CNA Linux Linux affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf 9b113c0f905cac76c34d7a37132172939824a7e5 git Not specified
CNA Linux Linux affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf b64ea8c8e00850c067bb6f20bcee5b9b45dd72b0 git Not specified
CNA Linux Linux affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf e511ec0459c5b0381fe089db9514d1fcac0b2aa3 git Not specified
CNA Linux Linux affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf 50f5fed44d8e24081e8feed5154746fe193f11b8 git Not specified
CNA Linux Linux affected 2.6.35 Not specified
CNA Linux Linux unaffected 2.6.35 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/b64ea8c8e00850c067bb6f20bcee5b9b45dd72b0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3c1c270cae58369a200205d2d720544dd7874340 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a9bde6eeb51afffb3fea5e609e33307d5a4edd07 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/50f5fed44d8e24081e8feed5154746fe193f11b8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f978da753d6164eca5f5c0fe40bc1b14efd68697 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e511ec0459c5b0381fe089db9514d1fcac0b2aa3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9b113c0f905cac76c34d7a37132172939824a7e5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/17bf26dd7c73e5375ab14e0eb61726cac0fdf71b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report