{"id":"CVE-2026-46246","state":"PUBLISHED","title":"power: supply: pm8916_lbc: Fix use-after-free for extcon in IRQ handler","description":"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.","publishedAt":"2026-06-03T15:49:41.607Z","updatedAt":"2026-06-03T15:49:41.607Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f8d7a3d21160a0cab4d15b81231f2a76b0fcee13","status":"affected","lessThan":"9fab0120907e6965168e55b1e17cb9dfaf262b86","versionType":"git"},{"version":"f8d7a3d21160a0cab4d15b81231f2a76b0fcee13","status":"affected","lessThan":"47abfc207ab02cf1297257e282e8048da63f0d08","versionType":"git"},{"version":"f8d7a3d21160a0cab4d15b81231f2a76b0fcee13","status":"affected","lessThan":"48e0f68b50c344bb2d78d65dd98f93e41276ee00","versionType":"git"},{"version":"f8d7a3d21160a0cab4d15b81231f2a76b0fcee13","status":"affected","lessThan":"23067259919663580c6f81801847cfc7bd54fd1f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/power/supply/pm8916_lbc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.14","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/power/supply/pm8916_lbc.c"]}],"references":["https://git.kernel.org/stable/c/9fab0120907e6965168e55b1e17cb9dfaf262b86","https://git.kernel.org/stable/c/47abfc207ab02cf1297257e282e8048da63f0d08","https://git.kernel.org/stable/c/48e0f68b50c344bb2d78d65dd98f93e41276ee00","https://git.kernel.org/stable/c/23067259919663580c6f81801847cfc7bd54fd1f"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/46xxx/CVE-2026-46246.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-46246","state":"PUBLISHED","datePublished":"2026-06-03T15:49:41.607Z","dateUpdated":"2026-06-03T15:49:41.607Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-13T15:03:33.107Z"},"containers":{"cna":{"title":"power: supply: pm8916_lbc: Fix use-after-free for extcon in IRQ handler","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f8d7a3d21160a0cab4d15b81231f2a76b0fcee13","status":"affected","lessThan":"9fab0120907e6965168e55b1e17cb9dfaf262b86","versionType":"git"},{"version":"f8d7a3d21160a0cab4d15b81231f2a76b0fcee13","status":"affected","lessThan":"47abfc207ab02cf1297257e282e8048da63f0d08","versionType":"git"},{"version":"f8d7a3d21160a0cab4d15b81231f2a76b0fcee13","status":"affected","lessThan":"48e0f68b50c344bb2d78d65dd98f93e41276ee00","versionType":"git"},{"version":"f8d7a3d21160a0cab4d15b81231f2a76b0fcee13","status":"affected","lessThan":"23067259919663580c6f81801847cfc7bd54fd1f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/power/supply/pm8916_lbc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.14","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/power/supply/pm8916_lbc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9fab0120907e6965168e55b1e17cb9dfaf262b86"},{"url":"https://git.kernel.org/stable/c/47abfc207ab02cf1297257e282e8048da63f0d08"},{"url":"https://git.kernel.org/stable/c/48e0f68b50c344bb2d78d65dd98f93e41276ee00"},{"url":"https://git.kernel.org/stable/c/23067259919663580c6f81801847cfc7bd54fd1f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-06-03T15:49:41.607Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.18.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}