{"id":"CVE-2026-45946","summary":"power: supply: ab8500: Fix use-after-free in power_supply_changed()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: ab8500: Fix use-after-free in power_supply_changed()\n\nUsing the `devm_` variant for requesting IRQ _before_ the `devm_`\nvariant for allocating/registering the `power_supply` handle, means that\nthe `power_supply` handle will be deallocated/unregistered _before_ the\ninterrupt handler (since `devm_` naturally deallocates in reverse\nallocation order). This means that during removal, there is a race\ncondition where an interrupt can fire just _after_ the `power_supply`\nhandle has been freed, *but* just _before_ the corresponding\nunregistration of the IRQ handler has run.\n\nThis will lead to the IRQ handler calling `power_supply_changed()` with\na freed `power_supply` handle. Which usually crashes the system or\notherwise silently corrupts the memory...\n\nNote that there is a similar situation which can also happen during\n`probe()`; the possibility of an interrupt firing _before_ registering\nthe `power_supply` handle. This would then lead to the nasty situation\nof using the `power_supply` handle *uninitialized* in\n`power_supply_changed()`.\n\nCommit 1c1f13a006ed (\"power: supply: ab8500: Move to componentized\nbinding\") introduced this issue during a refactorization. Fix this racy\nuse-after-free by making sure the IRQ is requested _after_ the\nregistration of the `power_supply` handle.","modified":"2026-10-28T02:30:42.855417376Z","published":"2026-05-27T12:18:02.708Z","related":["SUSE-SU-2026:23066-1","SUSE-SU-2026:23068-1","SUSE-SU-2026:23193-1","SUSE-SU-2026:23194-1","SUSE-SU-2026:23221-1","SUSE-SU-2026:23231-1","SUSE-SU-2026:23237-1","SUSE-SU-2026:23241-1","SUSE-SU-2026:23244-1","SUSE-SU-2026:3130-1","SUSE-SU-2026:3166-1","openSUSE-SU-2026:21555-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45946.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/43cbb78ee047b9b12d096d40e3be265969d4c1f8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/46dbda27b028d78087667e8280966b99cec015ca"},{"type":"WEB","url":"https://git.kernel.org/stable/c/551672981fe227122258a25a385a05f5c0746ad6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/709db4b476e254579d9c48ec34d397a41ca0c407"},{"type":"WEB","url":"https://git.kernel.org/stable/c/847eeb6c0efcd76c7def73857cf798a4fcd8f79b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c4af8a98bb52825a5331ae1d0604c0ea6956ba4b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f50433f2603def08b21a4bf2fd238687fb5cbde9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45946.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45946"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1c1f13a006ed0d71bb5664c8b7e3e77a28da3beb"},{"fixed":"43cbb78ee047b9b12d096d40e3be265969d4c1f8"},{"fixed":"551672981fe227122258a25a385a05f5c0746ad6"},{"fixed":"f50433f2603def08b21a4bf2fd238687fb5cbde9"},{"fixed":"847eeb6c0efcd76c7def73857cf798a4fcd8f79b"},{"fixed":"709db4b476e254579d9c48ec34d397a41ca0c407"},{"fixed":"46dbda27b028d78087667e8280966b99cec015ca"},{"fixed":"c4af8a98bb52825a5331ae1d0604c0ea6956ba4b"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5.13.4"},{"fixed":"5.14"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"341db343768bc44f3512facc464021730d64071c"}]}],"versions":["v5.13.19","v5.13.18","v5.13.17","v5.13.16","v5.13.15","v5.13.14","v5.13.13","v5.13.12","v5.13.11","v5.13.10","v5.13.9","v5.13.8","v5.13.7","v5.13.6","v5.13.5","v5.13.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45946.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.14.0"},{"fixed":"5.15.202"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.165"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.128"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.75"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45946.json"}}],"schema_version":"1.9.2"}