CVE-2025-37800

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

HIGH 7.1

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 11 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HLinux
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 16574dccd8f62dc1b585325f8a6a0aab10047ed8 < abe56be73eb10a677d16066f65ff9d30251f5eee ; affected 16574dccd8f62dc1b585325f8a6a0aab10047ed8 < 2b344e779d9afd0fcb5ee4000e4d0fc7d8d867eb ; affected 16574dccd8f62dc1b585325f8a6a0aab10047ed8 < 3781e4b83e174364998855de777e184cf0b62c40 ; affected 16574dccd8f62dc1b585325f8a6a0aab10047ed8 < 18daa52418e7e4629ed1703b64777294209d2622
Linux · Linuxaffected 2.6.22 ; unaffected 0 < 2.6.22 ; unaffected 6.6.89 ≤ 6.6.* ; unaffected 6.12.26 ≤ 6.12.* ; unaffected 6.14.5 ≤ 6.14.* ; unaffected 6.15 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD