{"id":"CVE-2026-45946","aliases":["CVE-2026-45946"],"related":[],"kind":"vulnerability","state":"published","title":"power: supply: ab8500: Fix use-after-free in power_supply_changed()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-05-27T12:18:02.708Z","modified":"2026-11-23T08:17:16.327Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"07d30217dd886c141dd50a5bea77477bedab0aba","fixed":"5835e6a5a7469991c1adc47fa68464fd8d58c2c1","status":"affected"},{"type":"git","introduced":"1c1f13a006ed0d71bb5664c8b7e3e77a28da3beb","fixed":"43cbb78ee047b9b12d096d40e3be265969d4c1f8","status":"affected"},{"type":"git","introduced":"1c1f13a006ed0d71bb5664c8b7e3e77a28da3beb","fixed":"551672981fe227122258a25a385a05f5c0746ad6","status":"affected"},{"type":"git","introduced":"1c1f13a006ed0d71bb5664c8b7e3e77a28da3beb","fixed":"f50433f2603def08b21a4bf2fd238687fb5cbde9","status":"affected"},{"type":"git","introduced":"1c1f13a006ed0d71bb5664c8b7e3e77a28da3beb","fixed":"847eeb6c0efcd76c7def73857cf798a4fcd8f79b","status":"affected"},{"type":"git","introduced":"1c1f13a006ed0d71bb5664c8b7e3e77a28da3beb","fixed":"709db4b476e254579d9c48ec34d397a41ca0c407","status":"affected"},{"type":"git","introduced":"1c1f13a006ed0d71bb5664c8b7e3e77a28da3beb","fixed":"46dbda27b028d78087667e8280966b99cec015ca","status":"affected"},{"type":"git","introduced":"1c1f13a006ed0d71bb5664c8b7e3e77a28da3beb","fixed":"c4af8a98bb52825a5331ae1d0604c0ea6956ba4b","status":"affected"},{"type":"git","version":"341db343768bc44f3512facc464021730d64071c","status":"affected"},{"type":"semver","introduced":"5.13.4","fixed":"5.14","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.202","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.165","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.128","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.14","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.4","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.13.4","fixed":"5.15.202"},{"status":"affected","introduced":"5.16","fixed":"6.1.165"},{"status":"affected","introduced":"6.2","fixed":"6.6.128"},{"status":"affected","introduced":"6.7","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.14"},{"status":"affected","introduced":"6.19","fixed":"6.19.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5835e6a5a7469991c1adc47fa68464fd8d58c2c1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/43cbb78ee047b9b12d096d40e3be265969d4c1f8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/551672981fe227122258a25a385a05f5c0746ad6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f50433f2603def08b21a4bf2fd238687fb5cbde9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/847eeb6c0efcd76c7def73857cf798a4fcd8f79b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/709db4b476e254579d9c48ec34d397a41ca0c407","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/46dbda27b028d78087667e8280966b99cec015ca","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c4af8a98bb52825a5331ae1d0604c0ea6956ba4b","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45946","url":"https://www.cve.org/CVERecord?id=CVE-2026-45946","licence":"CVE Terms of Use","modified":"2026-11-23T07:58:44.786Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45946","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45946","licence":"Public domain","modified":"2026-11-23T08:17:16.327Z"}],"updatedAt":"2026-11-25T22:59:22.516Z","epss":{"score":0.0016,"percentile":0.05421,"date":"2026-12-01T12:00:22.000Z"}}