7.8

CVE-2025-21915: cdx: Fix possible UAF error in driver_override_show()

Modified
AliasesUBUNTU-CVE-2025-21915DEBIAN-CVE-2025-21915
Published 01-04-2025Last modified 05-08-2026

Vulnerability summary

CVE-2025-21915 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 15% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.23%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 28 · Related 28

Timeline

  1. 01-04-2025
    PublishedVulnerability first disclosed.
  2. 05-08-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.23%

Chance of exploitation in the next 30 days

Percentile

15%

Versus all other CVEs

30-day change

Increase +0.03 pp

From 0.21% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu127 products
  • linuxAll versions (No fix recorded) | < 6.8.0-84.84
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 6.8.0-1039.41
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 2959ab247061e67485d83b6af8feb3761ec08cb9, < d7b339bbc887bcfc1a5b620bfc70c6fbb8f733bf | ≥ 2959ab247061e67485d83b6af8feb3761ec08cb9, < 8473135f89c0949436a22adb05b8cece2fb3da91 | ≥ 2959ab247061e67485d83b6af8feb3761ec08cb9, < 0439d541aa8d3444ad41c39e39eb71acb57acde3 | ≥ 2959ab247061e67485d83b6af8feb3761ec08cb9, < 91d44c1afc61a2fec37a9c7a3485368309391e0b | 6.4
  • linux_kernel≥ 6.4, < 6.6.83 | ≥ 6.7, < 6.12.19 | ≥ 6.13, < 6.13.7 | 6.14:rc1 | 6.14:rc2 | 6.14:rc3 | 6.14:rc4 | 6.14:rc5
Debian1 product
  • linux< 6.12.19-1

3 vendors · 130 products

References

26 links
Show all 26 references