Skip to content
CVE PROGRAM SOURCE RECORD7.1 High

CVE-2025-37800

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 16574dccd8f62dc1b585325f8a6a0aab10047ed8 to < abe56be73eb10a677d16066f65ff9d30251f5eeeaffected
  • 16574dccd8f62dc1b585325f8a6a0aab10047ed8 to < 2b344e779d9afd0fcb5ee4000e4d0fc7d8d867ebaffected
  • 16574dccd8f62dc1b585325f8a6a0aab10047ed8 to < 3781e4b83e174364998855de777e184cf0b62c40affected
  • 16574dccd8f62dc1b585325f8a6a0aab10047ed8 to < 18daa52418e7e4629ed1703b64777294209d2622affected

Linux Linux

Default version status: affected

  • 2.6.22affected
  • 0 to < 2.6.22unaffected
  • 6.6.89 to ≤ 6.6.*unaffected
  • 6.12.26 to ≤ 6.12.*unaffected
  • 6.14.5 to ≤ 6.14.*unaffected
  • 6.15 to ≤ *unaffected

References