CVE-2023-54079

power: supply: bq27xxx: Fix poll_interval handling and races on remove

7.8 high EPSS 0.18%

Published 24 Dec 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2023-54079

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-54079 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

power: supply: bq27xxx: Fix poll_interval handling and races on remove

Before this patch bq27xxx_battery_teardown() was setting poll_interval = 0 to avoid bq27xxx_battery_update() requeuing the delayed_work item.

There are 2 problems with this:

1. If the driver is unbound through sysfs, rather then the module being rmmod-ed, this changes poll_interval unexpectedly

2. This is racy, after it being set poll_interval could be changed before bq27xxx_battery_update() checks it through /sys/module/bq27xxx_battery/parameters/poll_interval

Fix this by added a removed attribute to struct bq27xxx_device_info and using that instead of setting poll_interval to 0.

There also is another poll_interval related race on remove(), writing /sys/module/bq27xxx_battery/parameters/poll_interval will requeue the delayed_work item for all devices on the bq27xxx_battery_devices list and the device being removed was only removed from that list after cancelling the delayed_work item.

Fix this by moving the removal from the bq27xxx_battery_devices list to before cancelling the delayed_work item.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.71% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 8cfaaa811894a3ae2d7360a15a6cfccff3ebc7db, before 4c9615474fb0a41cfad658d78db3c9ec70912969
affected from 8cfaaa811894a3ae2d7360a15a6cfccff3ebc7db, before 465d919151a1e8d40daf366b868914f59d073211
affected from 8cfaaa811894a3ae2d7360a15a6cfccff3ebc7db, before 0c5f4cec759679c290720fbcf6bb81768e21c95b
affected from 8cfaaa811894a3ae2d7360a15a6cfccff3ebc7db, before e85757da9091998276ff21a13915ac25229cc232
affected from 8cfaaa811894a3ae2d7360a15a6cfccff3ebc7db, before e98e5bebfcafc75a7b41192a607dfea5c1268afa
affected from 8cfaaa811894a3ae2d7360a15a6cfccff3ebc7db, before d952a1eaafcc5f0351caad5dbe9b5b3300d1d529
affected from 8cfaaa811894a3ae2d7360a15a6cfccff3ebc7db, before b12faeca0e819ea09051a705fef9df7ea7e9e18c
affected from 8cfaaa811894a3ae2d7360a15a6cfccff3ebc7db, before c00bc80462afc7963f449d7f21d896d2f629cacc
Other versions: unaffected
Linux
affected 3.3
unaffected before 3.3
unaffected from 4.14.316 up to and including 4.14.*
unaffected from 4.19.284 up to and including 4.19.*
unaffected from 5.4.244 up to and including 5.4.*
unaffected from 5.10.181 up to and including 5.10.*
unaffected from 5.15.114 up to and including 5.15.*
unaffected from 6.1.31 up to and including 6.1.*
unaffected from 6.3.5 up to and including 6.3.*
unaffected 6.4 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-54079 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54079

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-54079
trivy image --scanners vuln IMAGE | grep CVE-2023-54079

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-54079 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.