{"id":"CVE-2026-99527","summary":"spmi: Fix potential use-after-free by grabbing of_node reference","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nspmi: Fix potential use-after-free by grabbing of_node reference\n\nAs noticed by Sashiko during a review run of an unrelated patch,\nin of_spmi_register_devices(), for_each_available_child_of_node()\nis used to loop through children, and to also assign a node to a\nnewly created SPMI child device.\n\nProblem is that the refcount is dropped at every iteration so, in\nthe specific case of DT overlays, a use-after-free may occur when\nan overlay is dynamically unloaded!\n\nTo resolve this, increase the of_node refcount when assigning (in\nfunction of_spmi_register_devices) and release the reference in\nspmi_device_remove().","modified":"2026-11-19T17:01:26.937401728Z","published":"2026-11-19T14:44:39.046Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99527.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5653608781a660485d5e9be48a1d06025c4b97cf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b5e5d035abd1b49ecc9c85320fd6dfcc57ef9c79"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f7aa9de4f2b197cdd704cdc476901b68ee128433"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99527.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99527"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bc32bbd0401170853b479645002df52f849f48fe"},{"fixed":"b5e5d035abd1b49ecc9c85320fd6dfcc57ef9c79"},{"fixed":"5653608781a660485d5e9be48a1d06025c4b97cf"},{"fixed":"f7aa9de4f2b197cdd704cdc476901b68ee128433"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99527.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.14.0"},{"fixed":"6.18.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99527.json"}}],"schema_version":"1.9.2"}