All reports
Medium

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-49955

Probability of exploitation in the next 30 days: 0.34%

FIRST EPSS · 2026-11-22

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().

A flaw was found in the Linux kernel's ACPI (Advanced Configuration and Power Interface) battery module. This vulnerability occurs when a battery hook, which is a mechanism for managing battery events, is automatically unregistered after an error during battery addition. If the battery hook provider attempts to unregister the same hook again, it can lead to a system crash, resulting in a Denial of Service (DoS).