{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-45936","id":"CVE-2026-45936","title":"power: supply: goldfish: Fix use-after-free in power_supply_changed()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: goldfish: 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 deallo","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: goldfish: 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.","published":"2026-05-27T12:17:53.451Z","updated":"2026-10-28T02:30:50.894976710Z","reserved":"2026-05-13T15:03:33.086Z","status":"Undergoing Analysis","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"84d7b768748943db2bb658b43931fdab04c224cc","lessThan":"589d4fe56713c6344cd9f8939f9c7621c85f0966","status":"affected","versionType":"git"},{"version":"84d7b768748943db2bb658b43931fdab04c224cc","lessThan":"bad8b61eb5059acd88349680e47839342dc89e94","status":"affected","versionType":"git"},{"version":"84d7b768748943db2bb658b43931fdab04c224cc","lessThan":"33751e28842bf5aee5ef7b2b8d5e456a069095cb","status":"affected","versionType":"git"},{"version":"84d7b768748943db2bb658b43931fdab04c224cc","lessThan":"77ea437faa4c06362e3ecfd2d7264eaa7ac1e82c","status":"affected","versionType":"git"},{"version":"84d7b768748943db2bb658b43931fdab04c224cc","lessThan":"4350505e82b4f972ddb788e1c712c557c38859d0","status":"affected","versionType":"git"},{"version":"84d7b768748943db2bb658b43931fdab04c224cc","lessThan":"8c89aade8335e26a6a7dcda18992d15f51943927","status":"affected","versionType":"git"},{"version":"84d7b768748943db2bb658b43931fdab04c224cc","lessThan":"0b29ffe4090a3fc7a7649de20e1eb1e53adddac7","status":"affected","versionType":"git"},{"version":"84d7b768748943db2bb658b43931fdab04c224cc","lessThan":"b2ce982e2e0c888dc55c888ad0e20ea04daf2e6b","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.9","status":"affected"},{"version":"0","lessThan":"3.9","status":"unaffected","versionType":"semver"},{"version":"5.10.252","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.202","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.165","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.128","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.75","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.14","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19.4","lessThanOrEqual":"6.19.*","status":"unaffected","versionType":"semver"},{"version":"7.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/589d4fe56713c6344cd9f8939f9c7621c85f0966","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/bad8b61eb5059acd88349680e47839342dc89e94","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/33751e28842bf5aee5ef7b2b8d5e456a069095cb","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/77ea437faa4c06362e3ecfd2d7264eaa7ac1e82c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4350505e82b4f972ddb788e1c712c557c38859d0","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8c89aade8335e26a6a7dcda18992d15f51943927","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0b29ffe4090a3fc7a7649de20e1eb1e53adddac7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b2ce982e2e0c888dc55c888ad0e20ea04daf2e6b","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45936.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45936","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00126,"epssPercentile":0.02343,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-45936","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45936","ok":true,"note":"Undergoing Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-45936","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-45936","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}