{"api_version":"1","generated_at":"2026-12-01T14:19:22+00:00","cve":"CVE-2026-139043","urls":{"html":"https://cve.report/CVE-2026-139043","api":"https://cve.report/api/cve/CVE-2026-139043.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139043","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139043"},"summary":{"title":"media: vim2m: keep transaction buffer count stable while streaming","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vim2m: keep transaction buffer count stable while streaming\n\nV4L2_CID_TRANS_NUM_BUFS controls how many buffer pairs a vim2m\nmem2mem job processes before the job is completed. The driver stores\nthe value in ctx->translen and device_work() uses it later to decide\nwhether the current transaction should continue.\n\nLetting userspace change this control while streaming is active can\nmake a queued job observe a different transaction length than the one\nit started with. That leaves the transaction state inconsistent with\nthe buffers currently queued for the job.\n\nGrab the transaction buffer count control while either queue is\nstreaming, and release it only after both queues have stopped\nstreaming. The V4L2 control framework then rejects changes with\n-EBUSY while the value is in use, while still allowing userspace to\nconfigure the value before streaming starts.\n\nKeep the control handler alive until after v4l2_m2m_ctx_release(),\nsince releasing the mem2mem context can call stop_streaming(), which\nnow ungrabs the control.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:09","updated_at":"2026-11-30 14:18:09"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/b64ea8c8e00850c067bb6f20bcee5b9b45dd72b0","name":"https://git.kernel.org/stable/c/b64ea8c8e00850c067bb6f20bcee5b9b45dd72b0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3c1c270cae58369a200205d2d720544dd7874340","name":"https://git.kernel.org/stable/c/3c1c270cae58369a200205d2d720544dd7874340","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a9bde6eeb51afffb3fea5e609e33307d5a4edd07","name":"https://git.kernel.org/stable/c/a9bde6eeb51afffb3fea5e609e33307d5a4edd07","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/50f5fed44d8e24081e8feed5154746fe193f11b8","name":"https://git.kernel.org/stable/c/50f5fed44d8e24081e8feed5154746fe193f11b8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f978da753d6164eca5f5c0fe40bc1b14efd68697","name":"https://git.kernel.org/stable/c/f978da753d6164eca5f5c0fe40bc1b14efd68697","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e511ec0459c5b0381fe089db9514d1fcac0b2aa3","name":"https://git.kernel.org/stable/c/e511ec0459c5b0381fe089db9514d1fcac0b2aa3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9b113c0f905cac76c34d7a37132172939824a7e5","name":"https://git.kernel.org/stable/c/9b113c0f905cac76c34d7a37132172939824a7e5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/17bf26dd7c73e5375ab14e0eb61726cac0fdf71b","name":"https://git.kernel.org/stable/c/17bf26dd7c73e5375ab14e0eb61726cac0fdf71b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139043","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139043","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf 3c1c270cae58369a200205d2d720544dd7874340 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf 17bf26dd7c73e5375ab14e0eb61726cac0fdf71b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf a9bde6eeb51afffb3fea5e609e33307d5a4edd07 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf f978da753d6164eca5f5c0fe40bc1b14efd68697 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf 9b113c0f905cac76c34d7a37132172939824a7e5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf b64ea8c8e00850c067bb6f20bcee5b9b45dd72b0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf e511ec0459c5b0381fe089db9514d1fcac0b2aa3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf 50f5fed44d8e24081e8feed5154746fe193f11b8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.35","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.35 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/media/test-drivers/vim2m.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3c1c270cae58369a200205d2d720544dd7874340","status":"affected","version":"96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf","versionType":"git"},{"lessThan":"17bf26dd7c73e5375ab14e0eb61726cac0fdf71b","status":"affected","version":"96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf","versionType":"git"},{"lessThan":"a9bde6eeb51afffb3fea5e609e33307d5a4edd07","status":"affected","version":"96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf","versionType":"git"},{"lessThan":"f978da753d6164eca5f5c0fe40bc1b14efd68697","status":"affected","version":"96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf","versionType":"git"},{"lessThan":"9b113c0f905cac76c34d7a37132172939824a7e5","status":"affected","version":"96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf","versionType":"git"},{"lessThan":"b64ea8c8e00850c067bb6f20bcee5b9b45dd72b0","status":"affected","version":"96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf","versionType":"git"},{"lessThan":"e511ec0459c5b0381fe089db9514d1fcac0b2aa3","status":"affected","version":"96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf","versionType":"git"},{"lessThan":"50f5fed44d8e24081e8feed5154746fe193f11b8","status":"affected","version":"96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/media/test-drivers/vim2m.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.35"},{"lessThan":"2.6.35","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"2.6.35","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"2.6.35","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"2.6.35","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"2.6.35","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"2.6.35","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"2.6.35","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"2.6.35","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"2.6.35","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vim2m: keep transaction buffer count stable while streaming\n\nV4L2_CID_TRANS_NUM_BUFS controls how many buffer pairs a vim2m\nmem2mem job processes before the job is completed. The driver stores\nthe value in ctx->translen and device_work() uses it later to decide\nwhether the current transaction should continue.\n\nLetting userspace change this control while streaming is active can\nmake a queued job observe a different transaction length than the one\nit started with. That leaves the transaction state inconsistent with\nthe buffers currently queued for the job.\n\nGrab the transaction buffer count control while either queue is\nstreaming, and release it only after both queues have stopped\nstreaming. The V4L2 control framework then rejects changes with\n-EBUSY while the value is in use, while still allowing userspace to\nconfigure the value before streaming starts.\n\nKeep the control handler alive until after v4l2_m2m_ctx_release(),\nsince releasing the mem2mem context can call stop_streaming(), which\nnow ungrabs the control."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:27:20.360Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/3c1c270cae58369a200205d2d720544dd7874340"},{"url":"https://git.kernel.org/stable/c/17bf26dd7c73e5375ab14e0eb61726cac0fdf71b"},{"url":"https://git.kernel.org/stable/c/a9bde6eeb51afffb3fea5e609e33307d5a4edd07"},{"url":"https://git.kernel.org/stable/c/f978da753d6164eca5f5c0fe40bc1b14efd68697"},{"url":"https://git.kernel.org/stable/c/9b113c0f905cac76c34d7a37132172939824a7e5"},{"url":"https://git.kernel.org/stable/c/b64ea8c8e00850c067bb6f20bcee5b9b45dd72b0"},{"url":"https://git.kernel.org/stable/c/e511ec0459c5b0381fe089db9514d1fcac0b2aa3"},{"url":"https://git.kernel.org/stable/c/50f5fed44d8e24081e8feed5154746fe193f11b8"}],"title":"media: vim2m: keep transaction buffer count stable while streaming","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139043","datePublished":"2026-11-30T13:27:20.360Z","dateReserved":"2026-11-30T13:22:15.910Z","dateUpdated":"2026-11-30T13:27:20.360Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:09","lastModifiedDate":"2026-11-30 14:18:09","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139043","Ordinal":"1","Title":"media: vim2m: keep transaction buffer count stable while streami","CVE":"CVE-2026-139043","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139043","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vim2m: keep transaction buffer count stable while streaming\n\nV4L2_CID_TRANS_NUM_BUFS controls how many buffer pairs a vim2m\nmem2mem job processes before the job is completed. The driver stores\nthe value in ctx->translen and device_work() uses it later to decide\nwhether the current transaction should continue.\n\nLetting userspace change this control while streaming is active can\nmake a queued job observe a different transaction length than the one\nit started with. That leaves the transaction state inconsistent with\nthe buffers currently queued for the job.\n\nGrab the transaction buffer count control while either queue is\nstreaming, and release it only after both queues have stopped\nstreaming. The V4L2 control framework then rejects changes with\n-EBUSY while the value is in use, while still allowing userspace to\nconfigure the value before streaming starts.\n\nKeep the control handler alive until after v4l2_m2m_ctx_release(),\nsince releasing the mem2mem context can call stop_streaming(), which\nnow ungrabs the control.","Type":"Description","Title":"media: vim2m: keep transaction buffer count stable while streami"}]}}}