{"api_version":"1","generated_at":"2026-11-30T14:41:34+00:00","cve":"CVE-2026-139656","urls":{"html":"https://cve.report/CVE-2026-139656","api":"https://cve.report/api/cve/CVE-2026-139656.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139656","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139656"},"summary":{"title":"leds: st1202: Take a reference on the LED firmware node","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nleds: st1202: Take a reference on the LED firmware node\n\nst1202_dt_init() stores each LED's firmware node while walking the\ndevice tree with for_each_available_child_of_node_scoped(), which drops\nits reference to the node at the end of every iteration. The LED class\nstores the pointer with device_set_node() and does not take a reference\nof its own, so nothing keeps the node alive for as long as the LED\ndevice uses it. That has been the case since the driver was added, when\nthe LED class devices were registered inside that same loop.\n\nCommit c72e455b89f2 (\"leds: leds-st1202: Fix NULL pointer access on race\ncondition\") moved the registration into a separate loop in\nst1202_probe(), which also leaves the stored pointer unreferenced\nbetween the two loops.\n\nWith CONFIG_OF_DYNAMIC the node can be freed while it is still in use,\nleaving led->fwnode and the LED device's firmware node dangling.\n\nTake a reference when the node is stored and release it through a devm\naction. The action is registered before the LED class devices are, so it\nruns after they have been unregistered.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:49","updated_at":"2026-11-30 14:19:49"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/9f76fdb33f1ce78d8ef41a0f912f42113c7dd253","name":"https://git.kernel.org/stable/c/9f76fdb33f1ce78d8ef41a0f912f42113c7dd253","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5882de94edf7a53812a76a882a95e1e86d7105d9","name":"https://git.kernel.org/stable/c/5882de94edf7a53812a76a882a95e1e86d7105d9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/484f13fc8c23dfb460836b31c73145cbf7f31f61","name":"https://git.kernel.org/stable/c/484f13fc8c23dfb460836b31c73145cbf7f31f61","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139656","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139656","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 259230378c65ebb6b4815b4dd175c5298428b9fa 484f13fc8c23dfb460836b31c73145cbf7f31f61 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 259230378c65ebb6b4815b4dd175c5298428b9fa 9f76fdb33f1ce78d8ef41a0f912f42113c7dd253 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 259230378c65ebb6b4815b4dd175c5298428b9fa 5882de94edf7a53812a76a882a95e1e86d7105d9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.14","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* 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/leds/leds-st1202.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"484f13fc8c23dfb460836b31c73145cbf7f31f61","status":"affected","version":"259230378c65ebb6b4815b4dd175c5298428b9fa","versionType":"git"},{"lessThan":"9f76fdb33f1ce78d8ef41a0f912f42113c7dd253","status":"affected","version":"259230378c65ebb6b4815b4dd175c5298428b9fa","versionType":"git"},{"lessThan":"5882de94edf7a53812a76a882a95e1e86d7105d9","status":"affected","version":"259230378c65ebb6b4815b4dd175c5298428b9fa","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/leds/leds-st1202.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.14"},{"lessThan":"6.14","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","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":"6.18.65","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.14","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nleds: st1202: Take a reference on the LED firmware node\n\nst1202_dt_init() stores each LED's firmware node while walking the\ndevice tree with for_each_available_child_of_node_scoped(), which drops\nits reference to the node at the end of every iteration. The LED class\nstores the pointer with device_set_node() and does not take a reference\nof its own, so nothing keeps the node alive for as long as the LED\ndevice uses it. That has been the case since the driver was added, when\nthe LED class devices were registered inside that same loop.\n\nCommit c72e455b89f2 (\"leds: leds-st1202: Fix NULL pointer access on race\ncondition\") moved the registration into a separate loop in\nst1202_probe(), which also leaves the stored pointer unreferenced\nbetween the two loops.\n\nWith CONFIG_OF_DYNAMIC the node can be freed while it is still in use,\nleaving led->fwnode and the LED device's firmware node dangling.\n\nTake a reference when the node is stored and release it through a devm\naction. The action is registered before the LED class devices are, so it\nruns after they have been unregistered."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:36:46.239Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/484f13fc8c23dfb460836b31c73145cbf7f31f61"},{"url":"https://git.kernel.org/stable/c/9f76fdb33f1ce78d8ef41a0f912f42113c7dd253"},{"url":"https://git.kernel.org/stable/c/5882de94edf7a53812a76a882a95e1e86d7105d9"}],"title":"leds: st1202: Take a reference on the LED firmware node","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139656","datePublished":"2026-11-30T13:36:46.239Z","dateReserved":"2026-11-30T13:22:15.946Z","dateUpdated":"2026-11-30T13:36:46.239Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:49","lastModifiedDate":"2026-11-30 14:19:49","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139656","Ordinal":"1","Title":"leds: st1202: Take a reference on the LED firmware node","CVE":"CVE-2026-139656","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139656","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nleds: st1202: Take a reference on the LED firmware node\n\nst1202_dt_init() stores each LED's firmware node while walking the\ndevice tree with for_each_available_child_of_node_scoped(), which drops\nits reference to the node at the end of every iteration. The LED class\nstores the pointer with device_set_node() and does not take a reference\nof its own, so nothing keeps the node alive for as long as the LED\ndevice uses it. That has been the case since the driver was added, when\nthe LED class devices were registered inside that same loop.\n\nCommit c72e455b89f2 (\"leds: leds-st1202: Fix NULL pointer access on race\ncondition\") moved the registration into a separate loop in\nst1202_probe(), which also leaves the stored pointer unreferenced\nbetween the two loops.\n\nWith CONFIG_OF_DYNAMIC the node can be freed while it is still in use,\nleaving led->fwnode and the LED device's firmware node dangling.\n\nTake a reference when the node is stored and release it through a devm\naction. The action is registered before the LED class devices are, so it\nruns after they have been unregistered.","Type":"Description","Title":"leds: st1202: Take a reference on the LED firmware node"}]}}}