CVE-2024-49955 ACPI: battery: Fix possible crash when unregistering a battery hook
A local attacker can cause a system crash by triggering a double unregister of a battery hook in the Linux kernel.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-49955?
CVE-2024-49955 is a medium-severity vulnerability in Linux kernel, published on 21 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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 battery_hook_unregister() 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 battery_hook_unregister().
Weakness: CWE-672
Which versions are affected by CVE-2024-49955?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-49955?
Apply the vendor's patch.
Is CVE-2024-49955 being exploited?
There is no known exploitation of CVE-2024-49955 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-52302, BELL-CVE-2024-49955, DEBIAN-CVE-2024-49955, GHSA-8h6q-7wvm-5w36, UBUNTU-CVE-2024-49955.