CVE-2024-27412
Linux Kernel bq27xxx I2C Client IRQ Free Authentication Bypass Vulnerability
Description
In the Linux kernel, the following vulnerability has been resolved: power: supply: bq27xxx-i2c: Do not free non existing IRQ The bq27xxx i2c-client may not have an IRQ, in which case client->irq will be 0. bq27xxx_battery_i2c_probe() already has an if (client->irq) check wrapping the request_threaded_irq(). But bq27xxx_battery_i2c_remove() unconditionally calls free_irq(client->irq) leading to: [ 190.310742] ------------[ cut here ]------------ [ 190.310843] Trying to free already-free IRQ 0 [ 190.310861] WARNING: CPU: 2 PID: 1304 at kernel/irq/manage.c:1893 free_irq+0x1b8/0x310 Followed by a backtrace when unbinding the driver. Add an if (client->irq) to bq27xxx_battery_i2c_remove() mirroring probe() to fix this.
INFO
Published Date :
May 17, 2024, 12:15 p.m.
Last Modified :
Nov. 21, 2024, 9:04 a.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-27412
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-27412
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-27412
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/083686474e7c97b0f8b66df37fcb64e432e8b771 Added Reference https://git.kernel.org/stable/c/2df70149e73e79783bcbc7db4fa51ecef0e2022c Added Reference https://git.kernel.org/stable/c/7394abc8926adee6a817bab10797e0adc898af77 Added Reference https://git.kernel.org/stable/c/cefe18e9ec84f8fe3e198ccebb815cc996eb9797 Added Reference https://git.kernel.org/stable/c/d4d813c0a14d6bf52d810a55db06a2e7e3d98eaa Added Reference https://git.kernel.org/stable/c/d7acc4a569f5f4513120c85ea2b9f04909b7490f Added Reference https://git.kernel.org/stable/c/e601ae81910ce6a3797876e190a2d8ef6cf828bc Added Reference https://git.kernel.org/stable/c/fbca8bae1ba79d443a58781b45e92a73a24ac8f8 Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Nov. 06, 2024
Action Type Old Value New Value Added CVSS V3.1 CISA-ADP AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 05, 2024
Action Type Old Value New Value Removed Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html Removed Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 27, 2024
Action Type Old Value New Value Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html [No types assigned] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 25, 2024
Action Type Old Value New Value Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html [No types assigned] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 29, 2024
Action Type Old Value New Value -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 17, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: power: supply: bq27xxx-i2c: Do not free non existing IRQ The bq27xxx i2c-client may not have an IRQ, in which case client->irq will be 0. bq27xxx_battery_i2c_probe() already has an if (client->irq) check wrapping the request_threaded_irq(). But bq27xxx_battery_i2c_remove() unconditionally calls free_irq(client->irq) leading to: [ 190.310742] ------------[ cut here ]------------ [ 190.310843] Trying to free already-free IRQ 0 [ 190.310861] WARNING: CPU: 2 PID: 1304 at kernel/irq/manage.c:1893 free_irq+0x1b8/0x310 Followed by a backtrace when unbinding the driver. Add an if (client->irq) to bq27xxx_battery_i2c_remove() mirroring probe() to fix this. Added Reference kernel.org https://git.kernel.org/stable/c/d4d813c0a14d6bf52d810a55db06a2e7e3d98eaa [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/7394abc8926adee6a817bab10797e0adc898af77 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/d7acc4a569f5f4513120c85ea2b9f04909b7490f [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/e601ae81910ce6a3797876e190a2d8ef6cf828bc [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/cefe18e9ec84f8fe3e198ccebb815cc996eb9797 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/fbca8bae1ba79d443a58781b45e92a73a24ac8f8 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/083686474e7c97b0f8b66df37fcb64e432e8b771 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/2df70149e73e79783bcbc7db4fa51ecef0e2022c [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-27412
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-27412
weaknesses.