CVE-2025-37800

driver core: fix potential NULL pointer dereference in dev_uevent()

State
Published
Severity
7.1 High
Published
May 8, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

driver core: fix potential NULL pointer dereference in dev_uevent()

If userspace reads "uevent" device attribute at the same time as another threads unbinds the device from its driver, change to dev->driver from a valid pointer to NULL may result in crash. Fix this by using READ_ONCE() when fetching the pointer, and take bus' drivers klist lock to make sure driver instance will not disappear while we access it.

Use WRITE_ONCE() when setting the driver pointer to ensure there is no tearing.

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 16574dccd8f62dc1b585325f8a6a0aab10047ed8 to before abe56be73eb10a677d16066f65ff9d30251f5eeeAffected
  • 16574dccd8f62dc1b585325f8a6a0aab10047ed8 to before 2b344e779d9afd0fcb5ee4000e4d0fc7d8d867ebAffected
  • 16574dccd8f62dc1b585325f8a6a0aab10047ed8 to before 3781e4b83e174364998855de777e184cf0b62c40Affected
  • 16574dccd8f62dc1b585325f8a6a0aab10047ed8 to before 18daa52418e7e4629ed1703b64777294209d2622Affected
LinuxLinux
  • 2.6.22Affected
  • before 2.6.22Not affected
  • 6.6.89 through 6.6.*Not affected
  • 6.12.26 through 6.12.*Not affected
  • 6.14.5 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.