CVE-2024-27412
power: supply: bq27xxx-i2c: Do not free non existing IRQ
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 :
Dec. 17, 2025, 7:39 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | ||||
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the affected kernel packages.
- Reboot the system if required.
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.
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.
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.
-
Initial Analysis by [email protected]
Dec. 17, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.4:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.4:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.4:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.4:rc7:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.4:-:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.7.9 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.4.1 up to (excluding) 6.6.21 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.14.316 up to (excluding) 4.15 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.19.284 up to (excluding) 4.19.309 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.10.181 up to (excluding) 5.10.212 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.15.114 up to (excluding) 5.15.151 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.4.244 up to (excluding) 5.4.271 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.1.31 up to (excluding) 6.1.81 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.3.5 up to (excluding) 6.4 Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Added Reference Type kernel.org: https://git.kernel.org/stable/c/083686474e7c97b0f8b66df37fcb64e432e8b771 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/2df70149e73e79783bcbc7db4fa51ecef0e2022c Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/7394abc8926adee6a817bab10797e0adc898af77 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/cefe18e9ec84f8fe3e198ccebb815cc996eb9797 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/d4d813c0a14d6bf52d810a55db06a2e7e3d98eaa Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/d7acc4a569f5f4513120c85ea2b9f04909b7490f Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/e601ae81910ce6a3797876e190a2d8ef6cf828bc Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/fbca8bae1ba79d443a58781b45e92a73a24ac8f8 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/e601ae81910ce6a3797876e190a2d8ef6cf828bc Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/d7acc4a569f5f4513120c85ea2b9f04909b7490f Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/d4d813c0a14d6bf52d810a55db06a2e7e3d98eaa Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/cefe18e9ec84f8fe3e198ccebb815cc996eb9797 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/fbca8bae1ba79d443a58781b45e92a73a24ac8f8 Types: Patch Added Reference Type CVE: https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html Types: Third Party Advisory Added Reference Type CVE: https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html Types: Third Party Advisory Added Reference Type CVE: https://git.kernel.org/stable/c/7394abc8926adee6a817bab10797e0adc898af77 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/2df70149e73e79783bcbc7db4fa51ecef0e2022c Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/083686474e7c97b0f8b66df37fcb64e432e8b771 Types: Patch -
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]