{"api_version":"1","generated_at":"2026-11-30T19:52:04+00:00","cve":"CVE-2026-139561","urls":{"html":"https://cve.report/CVE-2026-139561","api":"https://cve.report/api/cve/CVE-2026-139561.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139561","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139561"},"summary":{"title":"pinctrl: pinctrl-generic-mux: Fix provider resource leak on re-parse","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:36","updated_at":"2026-11-30 14:19:36"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/8f8c5606c125cba00e491dad0da071e9b59feba5","name":"https://git.kernel.org/stable/c/8f8c5606c125cba00e491dad0da071e9b59feba5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/707855c21198c6a0b73efa053ac4fe733cbe1985","name":"https://git.kernel.org/stable/c/707855c21198c6a0b73efa053ac4fe733cbe1985","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139561","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139561","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 34acc5a8adfb76f2de63c8b8317397fb72b0aec8 8f8c5606c125cba00e491dad0da071e9b59feba5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 34acc5a8adfb76f2de63c8b8317397fb72b0aec8 707855c21198c6a0b73efa053ac4fe733cbe1985 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 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/pinctrl/pinctrl-generic-mux.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"8f8c5606c125cba00e491dad0da071e9b59feba5","status":"affected","version":"34acc5a8adfb76f2de63c8b8317397fb72b0aec8","versionType":"git"},{"lessThan":"707855c21198c6a0b73efa053ac4fe733cbe1985","status":"affected","version":"34acc5a8adfb76f2de63c8b8317397fb72b0aec8","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/pinctrl/pinctrl-generic-mux.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.2"},{"lessThan":"7.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","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":"7.3.6","versionStartIncluding":"7.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:35:53.917Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/8f8c5606c125cba00e491dad0da071e9b59feba5"},{"url":"https://git.kernel.org/stable/c/707855c21198c6a0b73efa053ac4fe733cbe1985"}],"title":"pinctrl: pinctrl-generic-mux: Fix provider resource leak on re-parse","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139561","datePublished":"2026-11-30T13:35:53.917Z","dateReserved":"2026-11-30T13:22:15.940Z","dateUpdated":"2026-11-30T13:35:53.917Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:36","lastModifiedDate":"2026-11-30 14:19:36","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139561","Ordinal":"1","Title":"pinctrl: pinctrl-generic-mux: Fix provider resource leak on re-p","CVE":"CVE-2026-139561","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139561","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"pinctrl: pinctrl-generic-mux: Fix provider resource leak on re-p"}]}}}