CVE-2025-37800 driver core: fix potential NULL pointer dereference in dev_uevent()

High 7.1 Published Updated

A race condition in the Linux kernel driver core can cause a NULL pointer dereference and system crash when unbinding a device while reading its uevent attribute.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-37800?

CVE-2025-37800 is a high-severity vulnerability in Linux kernel, published on 8 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-476

Which versions are affected by CVE-2025-37800?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-37800?

Apply the vendor's patch.

Is CVE-2025-37800 being exploited?

There is no known exploitation of CVE-2025-37800 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-63788, BELL-CVE-2025-37800, DEBIAN-CVE-2025-37800, GHSA-3g6q-j56q-qw54, ROOT-OS-DEBIAN-11-CVE-2025-37800, ROOT-OS-DEBIAN-12-CVE-2025-37800 and 3 more.

Is CVE-2025-37800 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free