{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf"
            },
            {
              "fixed": "3c1c270cae58369a200205d2d720544dd7874340"
            },
            {
              "fixed": "17bf26dd7c73e5375ab14e0eb61726cac0fdf71b"
            },
            {
              "fixed": "a9bde6eeb51afffb3fea5e609e33307d5a4edd07"
            },
            {
              "fixed": "f978da753d6164eca5f5c0fe40bc1b14efd68697"
            },
            {
              "fixed": "9b113c0f905cac76c34d7a37132172939824a7e5"
            },
            {
              "fixed": "b64ea8c8e00850c067bb6f20bcee5b9b45dd72b0"
            },
            {
              "fixed": "e511ec0459c5b0381fe089db9514d1fcac0b2aa3"
            },
            {
              "fixed": "50f5fed44d8e24081e8feed5154746fe193f11b8"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.35"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139043.json"
  },
  "details": "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-\u003etranslen 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.",
  "id": "CVE-2026-139043",
  "modified": "2026-11-30T14:45:47.062684245Z",
  "published": "2026-11-30T13:27:20.360Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/17bf26dd7c73e5375ab14e0eb61726cac0fdf71b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3c1c270cae58369a200205d2d720544dd7874340"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/50f5fed44d8e24081e8feed5154746fe193f11b8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9b113c0f905cac76c34d7a37132172939824a7e5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a9bde6eeb51afffb3fea5e609e33307d5a4edd07"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b64ea8c8e00850c067bb6f20bcee5b9b45dd72b0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e511ec0459c5b0381fe089db9514d1fcac0b2aa3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f978da753d6164eca5f5c0fe40bc1b14efd68697"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139043.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139043"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "media: vim2m: keep transaction buffer count stable while streaming"
}