{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "34acc5a8adfb76f2de63c8b8317397fb72b0aec8"
            },
            {
              "fixed": "8f8c5606c125cba00e491dad0da071e9b59feba5"
            },
            {
              "fixed": "707855c21198c6a0b73efa053ac4fe733cbe1985"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.2.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139561.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: pinctrl-generic-mux: Fix provider resource leak on re-parse\n\nThe pinctrl core re-parses a consumer's pinctrl on every probe attempt\n(pinctrl_bind_pins() runs before the driver's probe(), and again on each\ndeferred-probe retry or re-bind), so .dt_node_to_map() must be side-effect\nfree and safe to call repeatedly.\n\nmux_pinmux_dt_node_to_map() instead allocated provider-side resources on\nevery call - the mux_pin_function, the group name table and a mux_state\nreference, plus a group name and a pinctrl_generic_add_group()\nregistration via pinctrl_generic_to_map(). All of these are allocated\nwith devm_*() against the provider device, so they live for the provider's\nlifetime and are only released when the provider itself is unbound. The\n.dt_free_map() path never touches them; it frees the per-consumer\npinctrl_map only. Every re-parse therefore adds another set of\nprovider-side allocations that are never reclaimed, so a consumer that\nrepeatedly defers probe or is re-bound leaks memory and mux_state\nreferences on the provider without bound.\n\nThe groups and functions of a board-level mux are static and fully\ndescribed by the device tree, so build them once at probe time in the new\nmux_pinctrl_probe_dt(). mux_pinmux_dt_node_to_map() then only looks up the\nalready registered group and builds the per-consumer mux map, which the\ncore frees via .dt_free_map. As the mux has no pin electrical\nconfiguration, no config map is emitted.",
  "id": "CVE-2026-139561",
  "modified": "2026-12-01T20:45:45.826354357Z",
  "published": "2026-11-30T13:35:53.917Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/707855c21198c6a0b73efa053ac4fe733cbe1985"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8f8c5606c125cba00e491dad0da071e9b59feba5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139561.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139561"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "pinctrl: pinctrl-generic-mux: Fix provider resource leak on re-parse"
}