{"api_version":"1","generated_at":"2026-06-16T16:52:35+00:00","cve":"CVE-2026-45885","urls":{"html":"https://cve.report/CVE-2026-45885","api":"https://cve.report/api/cve/CVE-2026-45885.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-45885","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-45885"},"summary":{"title":"power: supply: cpcap-battery: Fix use-after-free in power_supply_changed()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: cpcap-battery: 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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-05-27 14:17:02","updated_at":"2026-05-27 14:48:31"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/e261be6f18929f2397cd54cd583a2df624c129c1","name":"https://git.kernel.org/stable/c/e261be6f18929f2397cd54cd583a2df624c129c1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c549dd3de4b3f6e726d1b8386d40ccf7d3abdbe4","name":"https://git.kernel.org/stable/c/c549dd3de4b3f6e726d1b8386d40ccf7d3abdbe4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2ce2334be155bd8bad6377e99984246ce4dbd08c","name":"https://git.kernel.org/stable/c/2ce2334be155bd8bad6377e99984246ce4dbd08c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/642f33e34b969eedec334738fd5df95d2dc42742","name":"https://git.kernel.org/stable/c/642f33e34b969eedec334738fd5df95d2dc42742","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f3fbe309c9bfe1aac1e2b26543e9dc4829f3275a","name":"https://git.kernel.org/stable/c/f3fbe309c9bfe1aac1e2b26543e9dc4829f3275a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3ff75cba1c98349a23a8f9333981deba1972cc11","name":"https://git.kernel.org/stable/c/3ff75cba1c98349a23a8f9333981deba1972cc11","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cbb9b07f88a9ef6518934c41eb3e8cf840d657d5","name":"https://git.kernel.org/stable/c/cbb9b07f88a9ef6518934c41eb3e8cf840d657d5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2841bbb5a35c4449c0a0458e8e476b2a62f95147","name":"https://git.kernel.org/stable/c/2841bbb5a35c4449c0a0458e8e476b2a62f95147","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-45885","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45885","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 874b2adbed1253a11549cb9b7b912ab65fea9cf2 c549dd3de4b3f6e726d1b8386d40ccf7d3abdbe4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 874b2adbed1253a11549cb9b7b912ab65fea9cf2 3ff75cba1c98349a23a8f9333981deba1972cc11 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 874b2adbed1253a11549cb9b7b912ab65fea9cf2 2ce2334be155bd8bad6377e99984246ce4dbd08c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 874b2adbed1253a11549cb9b7b912ab65fea9cf2 cbb9b07f88a9ef6518934c41eb3e8cf840d657d5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 874b2adbed1253a11549cb9b7b912ab65fea9cf2 f3fbe309c9bfe1aac1e2b26543e9dc4829f3275a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 874b2adbed1253a11549cb9b7b912ab65fea9cf2 2841bbb5a35c4449c0a0458e8e476b2a62f95147 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 874b2adbed1253a11549cb9b7b912ab65fea9cf2 e261be6f18929f2397cd54cd583a2df624c129c1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 874b2adbed1253a11549cb9b7b912ab65fea9cf2 642f33e34b969eedec334738fd5df95d2dc42742 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.13","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.252 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.202 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.165 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.128 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.75 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.14 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19.4 6.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"45885","cve":"CVE-2026-45885","epss":"0.000240000","percentile":"0.073320000","score_date":"2026-06-01","updated_at":"2026-06-02 00:05:21"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/power/supply/cpcap-battery.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"c549dd3de4b3f6e726d1b8386d40ccf7d3abdbe4","status":"affected","version":"874b2adbed1253a11549cb9b7b912ab65fea9cf2","versionType":"git"},{"lessThan":"3ff75cba1c98349a23a8f9333981deba1972cc11","status":"affected","version":"874b2adbed1253a11549cb9b7b912ab65fea9cf2","versionType":"git"},{"lessThan":"2ce2334be155bd8bad6377e99984246ce4dbd08c","status":"affected","version":"874b2adbed1253a11549cb9b7b912ab65fea9cf2","versionType":"git"},{"lessThan":"cbb9b07f88a9ef6518934c41eb3e8cf840d657d5","status":"affected","version":"874b2adbed1253a11549cb9b7b912ab65fea9cf2","versionType":"git"},{"lessThan":"f3fbe309c9bfe1aac1e2b26543e9dc4829f3275a","status":"affected","version":"874b2adbed1253a11549cb9b7b912ab65fea9cf2","versionType":"git"},{"lessThan":"2841bbb5a35c4449c0a0458e8e476b2a62f95147","status":"affected","version":"874b2adbed1253a11549cb9b7b912ab65fea9cf2","versionType":"git"},{"lessThan":"e261be6f18929f2397cd54cd583a2df624c129c1","status":"affected","version":"874b2adbed1253a11549cb9b7b912ab65fea9cf2","versionType":"git"},{"lessThan":"642f33e34b969eedec334738fd5df95d2dc42742","status":"affected","version":"874b2adbed1253a11549cb9b7b912ab65fea9cf2","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/power/supply/cpcap-battery.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.13"},{"lessThan":"4.13","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.252","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.202","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.165","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.128","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.75","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.14","versionType":"semver"},{"lessThanOrEqual":"6.19.*","status":"unaffected","version":"6.19.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.0","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.252","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.202","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.165","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.128","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.75","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.14","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.19.4","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.0","versionStartIncluding":"4.13","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: cpcap-battery: 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."}],"providerMetadata":{"dateUpdated":"2026-05-27T12:16:57.246Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/c549dd3de4b3f6e726d1b8386d40ccf7d3abdbe4"},{"url":"https://git.kernel.org/stable/c/3ff75cba1c98349a23a8f9333981deba1972cc11"},{"url":"https://git.kernel.org/stable/c/2ce2334be155bd8bad6377e99984246ce4dbd08c"},{"url":"https://git.kernel.org/stable/c/cbb9b07f88a9ef6518934c41eb3e8cf840d657d5"},{"url":"https://git.kernel.org/stable/c/f3fbe309c9bfe1aac1e2b26543e9dc4829f3275a"},{"url":"https://git.kernel.org/stable/c/2841bbb5a35c4449c0a0458e8e476b2a62f95147"},{"url":"https://git.kernel.org/stable/c/e261be6f18929f2397cd54cd583a2df624c129c1"},{"url":"https://git.kernel.org/stable/c/642f33e34b969eedec334738fd5df95d2dc42742"}],"title":"power: supply: cpcap-battery: Fix use-after-free in power_supply_changed()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-45885","datePublished":"2026-05-27T12:16:57.246Z","dateReserved":"2026-05-13T15:03:33.082Z","dateUpdated":"2026-05-27T12:16:57.246Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-05-27 14:17:02","lastModifiedDate":"2026-05-27 14:48:31","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"45885","Ordinal":"1","Title":"power: supply: cpcap-battery: Fix use-after-free in power_supply","CVE":"CVE-2026-45885","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"45885","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: cpcap-battery: 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.","Type":"Description","Title":"power: supply: cpcap-battery: Fix use-after-free in power_supply"}]}}}