Linux Kernel Power Supply bq25890 External Power Change Race Condition Vulnerability

Vulnerability

A race condition vulnerability has been identified in the Linux kernel's power supply driver for the bq25890 charger. This issue arises during the boot process on certain Lenovo Yoga Book 1 models. The vulnerability occurs because the external_power_changed callback can be triggered before the charger reference is properly initialized, leading to a NULL pointer dereference. This flaw was introduced in a previous commit that added external charger detection for the bq25892 model.

Impact

Exploitation of this vulnerability causes a kernel NULL pointer dereference, which can lead to a system crash.

Reproduction

The vulnerability can be reproduced on a Lenovo Yoga Book 1 yb1-x90f device. During the boot process, the cht_wcove_pwrsrc (extcon) power supply completes its charger type detection, which can inadvertently trigger the external_power_changed callback. This callback attempts to access the charger reference before it has been initialized, resulting in a NULL pointer dereference.

Remediation

The vulnerability has been fixed in the Linux kernel. Users should upgrade to the latest version where this issue has been addressed.

Added: Sep 15, 2025, 3:18 PM
Updated: Sep 15, 2025, 9:15 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.9
remediation
7.7
relevance
0.5
threat
4.8
urgency
2.9
incentive
0.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.