CVE-2023-54079

Source
https://cve.org/CVERecord?id=CVE-2023-54079
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54079.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-54079
Downstream
Related
Published
2025-12-24T13:06:11.956Z
Modified
2026-03-20T12:33:26.145254Z
Summary
power: supply: bq27xxx: Fix poll_interval handling and races on remove
Details

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

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

Before this patch bq27xxxbatteryteardown() was setting pollinterval = 0 to avoid bq27xxxbatteryupdate() requeuing the delayedwork 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 pollinterval could be changed before bq27xxxbatteryupdate() checks it through /sys/module/bq27xxxbattery/parameters/poll_interval

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

There also is another pollinterval related race on remove(), writing /sys/module/bq27xxxbattery/parameters/pollinterval will requeue the delayedwork item for all devices on the bq27xxxbatterydevices 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 bq27xxxbatterydevices list to before cancelling the delayed_work item.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54079.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8cfaaa811894a3ae2d7360a15a6cfccff3ebc7db
Fixed
4c9615474fb0a41cfad658d78db3c9ec70912969
Fixed
465d919151a1e8d40daf366b868914f59d073211
Fixed
0c5f4cec759679c290720fbcf6bb81768e21c95b
Fixed
e85757da9091998276ff21a13915ac25229cc232
Fixed
e98e5bebfcafc75a7b41192a607dfea5c1268afa
Fixed
d952a1eaafcc5f0351caad5dbe9b5b3300d1d529
Fixed
b12faeca0e819ea09051a705fef9df7ea7e9e18c
Fixed
c00bc80462afc7963f449d7f21d896d2f629cacc

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54079.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.3.0
Fixed
4.14.316
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.284
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.244
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.181
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.114
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.31
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.3.5

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54079.json"