CVE-2025-21915
Last modified
CVE-2025-21915 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.4, < 6.6.83 | — |
| Linux | Linux Kernel | >= 6.7, < 6.12.19 | — |
| Linux | Linux Kernel | >= 6.13, < 6.13.7 | — |
| Linux | Linux Kernel | 6.14 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-21915?
How severe is CVE-2025-21915?
How do I fix CVE-2025-21915?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-2191A vulnerability, which was classified as problematic, has be…4.8
- CVE-2025-21910In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21911In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21912In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21913In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21914In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-21916In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21917In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21918In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21919In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-2192A vulnerability, which was classified as problematic, was fo…5.3
- CVE-2025-21920In the Linux kernel, the following vulnerability has been re…7.1
Are you affected by CVE-2025-21915?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
