{"id":"CVE-2024-49955","summary":"ACPI: battery: Fix possible crash when unregistering a battery hook","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nACPI: battery: Fix possible crash when unregistering a battery hook\n\nWhen a battery hook returns an error when adding a new battery, then\nthe battery hook is automatically unregistered.\nHowever the battery hook provider cannot know that, so it will later\ncall battery_hook_unregister() on the already unregistered battery\nhook, resulting in a crash.\n\nFix this by using the list head to mark already unregistered battery\nhooks as already being unregistered so that they can be ignored by\nbattery_hook_unregister().","modified":"2026-04-16T04:37:56.749635802Z","published":"2024-10-21T18:02:09.707Z","related":["SUSE-SU-2024:3983-1","SUSE-SU-2024:3984-1","SUSE-SU-2024:3985-1","SUSE-SU-2024:3986-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4364-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49955.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/07b98400cb0285a6348188aa8c5ec6a2ae0551f7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/76959aff14a0012ad6b984ec7686d163deccdc16"},{"type":"WEB","url":"https://git.kernel.org/stable/c/76fb2cbf01571926da8ecf6876cc8cb07d3f5183"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9f469ef1c79dac7f9ac1518643a33703918f7e13"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c47843a831e0eae007ad7e848d208e675ba4c132"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ca1fb7942a287b40659cc79551a1de54a2c2e7d5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ca26e8eed9c1c6651f51f7fa38fe444f8573cd1b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ce31847f109c3a5b2abdd19d7bcaafaacfde53de"},{"type":"WEB","url":"https://git.kernel.org/stable/c/da964de4c18199e14b961b5b2e5e6570552a313c"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49955.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49955"},{"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":"fa93854f7a7ed63d054405bf3779247d5300edd3"},{"fixed":"76fb2cbf01571926da8ecf6876cc8cb07d3f5183"},{"fixed":"c47843a831e0eae007ad7e848d208e675ba4c132"},{"fixed":"da964de4c18199e14b961b5b2e5e6570552a313c"},{"fixed":"07b98400cb0285a6348188aa8c5ec6a2ae0551f7"},{"fixed":"ca1fb7942a287b40659cc79551a1de54a2c2e7d5"},{"fixed":"ce31847f109c3a5b2abdd19d7bcaafaacfde53de"},{"fixed":"ca26e8eed9c1c6651f51f7fa38fe444f8573cd1b"},{"fixed":"9f469ef1c79dac7f9ac1518643a33703918f7e13"},{"fixed":"76959aff14a0012ad6b984ec7686d163deccdc16"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49955.json"}}],"schema_version":"1.7.5"}