{"id":"CVE-2026-46246","summary":"power: supply: pm8916_lbc: Fix use-after-free for extcon in IRQ handler","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: pm8916_lbc: Fix use-after-free for extcon in IRQ handler\n\nUsing the `devm_` variant for requesting IRQ _before_ the `devm_`\nvariant for allocating/registering the `extcon` handle, means that the\n`extcon` handle will be deallocated/unregistered _before_ the interrupt\nhandler (since `devm_` naturally deallocates in reverse allocation\norder). This means that during removal, there is a race condition where\nan interrupt can fire just _after_ the `extcon` handle has been\nfreed, *but* just _before_ the corresponding unregistration of the IRQ\nhandler has run.\n\nThis will lead to the IRQ handler calling `extcon_set_state_sync()` with\na freed `extcon` handle. Which usually crashes the system or otherwise\nsilently corrupts the memory...\n\nFix this racy use-after-free by making sure the IRQ is requested _after_\nthe registration of the `extcon` handle.","modified":"2026-06-18T03:54:50.710045704Z","published":"2026-06-03T15:49:41.607Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46246.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/23067259919663580c6f81801847cfc7bd54fd1f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/47abfc207ab02cf1297257e282e8048da63f0d08"},{"type":"WEB","url":"https://git.kernel.org/stable/c/48e0f68b50c344bb2d78d65dd98f93e41276ee00"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9fab0120907e6965168e55b1e17cb9dfaf262b86"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46246.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46246"},{"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":"f8d7a3d21160a0cab4d15b81231f2a76b0fcee13"},{"fixed":"9fab0120907e6965168e55b1e17cb9dfaf262b86"},{"fixed":"47abfc207ab02cf1297257e282e8048da63f0d08"},{"fixed":"48e0f68b50c344bb2d78d65dd98f93e41276ee00"},{"fixed":"23067259919663580c6f81801847cfc7bd54fd1f"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46246.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"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-46246.json"}}],"schema_version":"1.7.5"}