{"id":"CVE-2026-46270","summary":"power: supply: rt9455: Fix use-after-free in power_supply_changed()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: rt9455: 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\nFix this racy use-after-free by making sure the IRQ is requested _after_\nthe registration of the `power_supply` handle.","modified":"2026-06-18T03:56:11.578820955Z","published":"2026-06-03T15:50:12.537Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46270.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2178dc65d45e2f7bcaa8af8d80d100419bdab251"},{"type":"WEB","url":"https://git.kernel.org/stable/c/62d753b916bd500bb269b7078cdab73198ab4718"},{"type":"WEB","url":"https://git.kernel.org/stable/c/64e15155095f39f4dec9b4659da1238ef8fc54d4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/721449a15170fc5f028a7576d7f65b9f60d53482"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a39f8f06216f73ef40e71e2fe4ad071964c1fd36"},{"type":"WEB","url":"https://git.kernel.org/stable/c/af261f218a7606f93d2c786353d60bb4feb56ef0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4e2e3c3caa26b93aa9f36d0a6824b584e2a8dfc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e2febe375e5ea5afed92f4cd9711bde8f24ee6d2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46270.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46270"},{"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":"e86d69dd786e94046b8f5be7df1b9a8226a40b2a"},{"fixed":"d4e2e3c3caa26b93aa9f36d0a6824b584e2a8dfc"},{"fixed":"62d753b916bd500bb269b7078cdab73198ab4718"},{"fixed":"a39f8f06216f73ef40e71e2fe4ad071964c1fd36"},{"fixed":"af261f218a7606f93d2c786353d60bb4feb56ef0"},{"fixed":"2178dc65d45e2f7bcaa8af8d80d100419bdab251"},{"fixed":"64e15155095f39f4dec9b4659da1238ef8fc54d4"},{"fixed":"721449a15170fc5f028a7576d7f65b9f60d53482"},{"fixed":"e2febe375e5ea5afed92f4cd9711bde8f24ee6d2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46270.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0"},{"fixed":"5.10.252"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.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/osv-test-cve-osv-conversion/osv-output/CVE-2026-46270.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}