CVE-2024-49955

Source
https://cve.org/CVERecord?id=CVE-2024-49955
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-49955.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-49955
Downstream
Related
Published
2024-10-21T18:02:09.707Z
Modified
2026-03-20T12:38:11.501107Z
Summary
ACPI: battery: Fix possible crash when unregistering a battery hook
Details

In the Linux kernel, the following vulnerability has been resolved:

ACPI: battery: Fix possible crash when unregistering a battery hook

When a battery hook returns an error when adding a new battery, then the battery hook is automatically unregistered. However the battery hook provider cannot know that, so it will later call batteryhookunregister() on the already unregistered battery hook, resulting in a crash.

Fix this by using the list head to mark already unregistered battery hooks as already being unregistered so that they can be ignored by batteryhookunregister().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49955.json"
}
References

Affected packages

Git / 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/osv-test-cve-osv-conversion/osv-output/CVE-2024-49955.json"