CVE-2024-27412: power: supply: bq27xxx-i2c: Do not free non existing IRQ

Published May 17, 2024
·
Updated

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. bq27xxxbatteryi2cprobe() already has an if (client->irq) check wrapping the requestthreadedirq().

But bq27xxxbatteryi2cremove() unconditionally calls freeirq(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 freeirq+0x1b8/0x310

Followed by a backtrace when unbinding the driver. Add an if (client->irq) to bq27xxxbatteryi2cremove() mirroring probe() to fix this.

Affected Software

22 affected componentsFixes available
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
Linux Linux kernel>=4.14.316<4.15
Linux Linux kernel>=4.19.284<4.19.309
Linux Linux kernel>=5.4.244<5.4.271
Linux Linux kernel>=5.10.181<5.10.212
Linux Linux kernel>=5.15.114<5.15.151
Linux Linux kernel>=6.1.31<6.1.81
Linux Linux kernel>=6.3.5<6.4
Linux Linux kernel>=6.4.1<6.6.21
Linux Linux kernel>=6.7<6.7.9
Linux Linux kernel=6.4
Linux Linux kernel=6.4-rc4
Linux Linux kernel=6.4-rc5
Linux Linux kernel=6.4-rc6
Linux Linux kernel=6.4-rc7
Linux Linux kernel=6.8-rc1
Linux Linux kernel=6.8-rc2
Linux Linux kernel=6.8-rc3
Linux Linux kernel=6.8-rc4
Linux Linux kernel=6.8-rc5
Linux Linux kernel=6.8-rc6
Debian Debian Linux=10.0

Event History

May 17, 2024
CVE Published
via MITRE·11:50 AM
Data Sourced
via MITRE·11:50 AM
Description
Data Sourced
via NVD·12:15 PM
DescriptionSeverity
Data Sourced
via NVD·12:15 PM
RemedyAffected Software
Jun 8, 2024
Data Sourced
via Launchpad·01:14 AM
Description
Apr 29, 2025
Data Sourced
via Ubuntu·06:17 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-27412?

CVE-2024-27412 is classified as a low severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-27412?

To fix CVE-2024-27412, update your Linux kernel to versions 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.10-1, or 6.12.11-1.

3

What component is affected by CVE-2024-27412?

CVE-2024-27412 affects the bq27xxx-i2c driver in the Linux kernel.

4

What is the impact of CVE-2024-27412?

The impact of CVE-2024-27412 includes potential improper handling of IRQs when the bq27xxx i2c-client does not exist.

5

Is CVE-2024-27412 exploitable remotely?

CVE-2024-27412 is not considered to be exploitable remotely as it pertains to local device handling within the kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203