CVE-2025-21915
cdx: Fix possible UAF error in driver_override_show()
Reported by linux · Published April 1, 2025
In the Linux kernel, the following vulnerability has been resolved: cdx: Fix possible UAF error in driver_override_show() Fixed a possible UAF problem in driver_override_show() in drivers/cdx/cdx.c This function driver_override_show() is part of DEVICE_ATTR_RW, which includes both driver_override_show() and driver_override_store(). These functions can be executed concurrently in sysfs. The driver_override_store() function uses driver_set_override() to update the driver_override value, and driver_set_override() internally locks the device (device_lock(dev)). If driver_override_show() reads cdx_dev->driver_override without locking, it could potentially access a freed pointer if driver_override_store() frees the string concurrently. This could lead to printing a kernel address, which is a security risk since DEVICE_ATTR can be read by all users. Additionally, a similar pattern is used in drivers/amba/bus.c, as well as many other bus drivers, where device_lock() is taken in the show function, and it has been working without issues. This potential bug was detected by our experimental static analysis tool, which analyzes locking APIs and paired functions to identify data races and atomicity violations.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.13.7, 6.12.19, 6.6.83 |
| Linux | Linux | d7b339bbc887bcfc1a5b620bfc70c6fbb8f733bf, 91d44c1afc61a2fec37a9c7a3485368309391e0b, 0439d541aa8d3444ad41c39e39eb71acb57acde3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 2959ab247061e67485d83b6af8feb3761ec08cb9, 2959ab247061e67485d83b6af8feb3761ec08cb9, 2959ab247061e67485d83b6af8feb3761ec08cb9 |
| Linux | Linux | 6.4, 0, 6.6.83 |
| Linux | Linux | 2959ab247061e67485d83b6af8feb3761ec08cb9, 6.6.83, 6.12.19 |
| linux | linux_kernel | 6.4, 6.4, 6.4 |
Timeline
- Apr 1, 2025 CVE Published
- Apr 2, 2025 EPSS Score (30 in total, the first dated here)
- Apr 4, 2025 Coalition ESS Score (13 in total, the first dated here)
- Dec 22, 2025 Security Advisory (261 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (235 in total, the first dated here)
- Nov 2, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-21915
vulnetix vdb fixes CVE-2025-21915
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21915/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart