VDB

CVE-2025-21915

CVE-2025-21915 PUBLISHED CVSS 7 HIGH

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.

PackageEcosystemFixed in
linux_kernellinux6.13.7, 6.12.19, 6.6.83
LinuxLinuxd7b339bbc887bcfc1a5b620bfc70c6fbb8f733bf, 91d44c1afc61a2fec37a9c7a3485368309391e0b, 0439d541aa8d3444ad41c39e39eb71acb57acde3

Risk scores

CVSS 3.1
7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux2959ab247061e67485d83b6af8feb3761ec08cb9, 2959ab247061e67485d83b6af8feb3761ec08cb9, 2959ab247061e67485d83b6af8feb3761ec08cb9
LinuxLinux6.4, 0, 6.6.83
LinuxLinux2959ab247061e67485d83b6af8feb3761ec08cb9, 6.6.83, 6.12.19
linuxlinux_kernel6.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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›