{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "63101b75689331c5392c9330291f57b9fd2ef94c"
            },
            {
              "fixed": "2b45bc494aa22e56e3d7292a9b02841439584fee"
            },
            {
              "fixed": "2c755e120cefdf10cf2cb35e85e64e2bc8a03727"
            },
            {
              "fixed": "7121f1fffce20419ffdb352650a49bb94aeef800"
            },
            {
              "fixed": "d2e17624f28f1c4805795f7cbb2e6f92554b9a75"
            },
            {
              "fixed": "22797db3f9ca19e253cb2816a66fcbc9251464cb"
            },
            {
              "fixed": "b0f8a0f8058e2e5811ed975cc24757f64c2962ce"
            },
            {
              "fixed": "f438de68eb13e77b616f8e6373695d17598fbc7c"
            },
            {
              "fixed": "6f412f9fe6a1f3ce9694757f50353bbec221d832"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.10.0"
            },
            {
              "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-139040.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vidtv: fix frontend reference leak on unbind\n\ndvb_register_frontend() keeps two references to the frontend. One is\nreleased by dvb_unregister_frontend(), and the other by\ndvb_frontend_detach(). vidtv only called dvb_unregister_frontend(), so\nthe second reference was never released. As a result,\n__dvb_frontend_free() was never called, leaking the frontend private\ndata and its struct dvb_device.\n\nThe detach call was removed by commit 63101b756893 (\"media: vidtv: fix\ndriver unbind/remove\") because it caused an OOPS. The demod .release\ncallback freed vidtv_demod_state, and the I2C remove callbacks then\naccessed the freed state.\n\nThat commit also removed those accesses from the I2C remove callbacks.\nRestore the detach call, but remove the demod .release callback.\nvidtv_demod_state is owned by the I2C client and is already freed by\nvidtv_demod_i2c_remove(), so the frontend detach path should not free\nit.\n\nTested with kmemleak and KASAN over 10 bind/unbind cycles. The reported\nfrontend and dvb_device leaks were present before the fix and were gone\nafter it, with no KASAN reports.",
  "id": "CVE-2026-139040",
  "modified": "2026-12-01T20:45:59.873776613Z",
  "published": "2026-11-30T13:27:18.704Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/22797db3f9ca19e253cb2816a66fcbc9251464cb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2b45bc494aa22e56e3d7292a9b02841439584fee"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2c755e120cefdf10cf2cb35e85e64e2bc8a03727"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6f412f9fe6a1f3ce9694757f50353bbec221d832"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7121f1fffce20419ffdb352650a49bb94aeef800"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b0f8a0f8058e2e5811ed975cc24757f64c2962ce"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d2e17624f28f1c4805795f7cbb2e6f92554b9a75"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f438de68eb13e77b616f8e6373695d17598fbc7c"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139040.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139040"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "media: vidtv: fix frontend reference leak on unbind"
}