CVE-2025-21915
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
01/04/2025
Last modified:
19/08/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
cdx: Fix possible UAF error in driver_override_show()<br />
<br />
Fixed a possible UAF problem in driver_override_show() in drivers/cdx/cdx.c<br />
<br />
This function driver_override_show() is part of DEVICE_ATTR_RW, which<br />
includes both driver_override_show() and driver_override_store().<br />
These functions can be executed concurrently in sysfs.<br />
<br />
The driver_override_store() function uses driver_set_override() to<br />
update the driver_override value, and driver_set_override() internally<br />
locks the device (device_lock(dev)). If driver_override_show() reads<br />
cdx_dev->driver_override without locking, it could potentially access<br />
a freed pointer if driver_override_store() frees the string<br />
concurrently. This could lead to printing a kernel address, which is a<br />
security risk since DEVICE_ATTR can be read by all users.<br />
<br />
Additionally, a similar pattern is used in drivers/amba/bus.c, as well<br />
as many other bus drivers, where device_lock() is taken in the show<br />
function, and it has been working without issues.<br />
<br />
This potential bug was detected by our experimental static analysis<br />
tool, which analyzes locking APIs and paired functions to identify<br />
data races and atomicity violations.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.4 (including) | 6.6.83 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.12.19 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.13.7 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



