{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "71c689dc2e732d4cb190aaf0edea73116b1611bd"
            },
            {
              "fixed": "8db2017feb141e46a456defe7b05ec935bae3aaf"
            },
            {
              "fixed": "827b56d45e562a80d063eff9a7be4ffb4f3257a6"
            },
            {
              "fixed": "7aa2f6a9cc2d467166174194de8697be8b830a36"
            },
            {
              "fixed": "802e61f3ba7ab0dd212866286ddbe062de157e65"
            },
            {
              "fixed": "90379d750ee6146b8ccaf28d00e98f7708b074fd"
            },
            {
              "fixed": "e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2"
            },
            {
              "fixed": "9ff738f93084351ed6e818d4d58679a9e9083a8d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.14.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/138xxx/CVE-2026-138989.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: v4l2-ctrls: do nothing if controls[0] == NULL in cluster functions\n\nThe V4L2 control framework is designed to allow drivers to instantiate\ncontrols and clusters without checking for errors after each call,\nchecking hdl-\u003eerror only once at the end.\n\nHowever, if allocating the master control (controls[0]) fails, e.g. due to\nmemory allocation failure, v4l2_ctrl_cluster() triggers a WARNING:\n\n      ncontrols == 0 || controls[0] == NULL\n      WARNING: drivers/media/v4l2-core/v4l2-ctrls-core.c:2525 at v4l2_ctrl_cluster\n\nAdditionally, v4l2_ctrl_auto_cluster() attempts to dereference\nmaster-\u003eminimum without checking if controls[0] is NULL, leading to a\nNULL pointer dereference when master control creation fails.\n\nUpdate both v4l2_ctrl_cluster() and v4l2_ctrl_auto_cluster() to silently\nreturn if controls[0] is NULL, preserving the design that control\ncreation errors are caught at the end when the driver checks hdl-\u003eerror.\nAlso update function documentation in include/media/v4l2-ctrls.h.\n\n[hverkuil: simplified the v4l2_ctrl_auto_cluster code a bit]",
  "id": "CVE-2026-138989",
  "modified": "2026-12-01T20:45:59.533002715Z",
  "published": "2026-11-30T13:26:50.801Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7aa2f6a9cc2d467166174194de8697be8b830a36"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/802e61f3ba7ab0dd212866286ddbe062de157e65"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/827b56d45e562a80d063eff9a7be4ffb4f3257a6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8db2017feb141e46a456defe7b05ec935bae3aaf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/90379d750ee6146b8ccaf28d00e98f7708b074fd"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9ff738f93084351ed6e818d4d58679a9e9083a8d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138989.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138989"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "media: v4l2-ctrls: do nothing if controls[0] == NULL in cluster functions"
}