CVE-2025-37800

Source
https://cve.org/CVERecord?id=CVE-2025-37800
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37800.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-37800
Downstream
Related
Published
2025-05-08T06:26:01.125Z
Modified
2026-03-11T07:53:49.059096Z
Summary
driver core: fix potential NULL pointer dereference in dev_uevent()
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37800.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
16574dccd8f62dc1b585325f8a6a0aab10047ed8
Fixed
abe56be73eb10a677d16066f65ff9d30251f5eee
Fixed
2b344e779d9afd0fcb5ee4000e4d0fc7d8d867eb
Fixed
3781e4b83e174364998855de777e184cf0b62c40
Fixed
18daa52418e7e4629ed1703b64777294209d2622

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37800.json"