CVE-2025-40360 drm/sysfb: Do not dereference NULL pointer in plane reset

Not scored Published Updated

A NULL pointer dereference in the Linux kernel's DRM subsystem allows local attackers to cause a system crash.

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

What is CVE-2025-40360?

CVE-2025-40360 is a vulnerability in Linux, published on 16 Dec 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:

drm/sysfb: Do not dereference NULL pointer in plane reset

The plane state in __drm_gem_reset_shadow_plane() can be NULL. Do not deref that pointer, but forward NULL to the other plane-reset helpers. Clears plane->state to NULL.

v2: - fix typo in commit description (Javier)

Which versions are affected by CVE-2025-40360?

How do I fix CVE-2025-40360?

Apply the vendor's patch.

Is CVE-2025-40360 being exploited?

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

Sources

Also known as BELL-CVE-2025-40360, DEBIAN-CVE-2025-40360, GHSA-8r48-79mj-pq82, ROOT-OS-DEBIAN-12-CVE-2025-40360, ROOT-OS-DEBIAN-13-CVE-2025-40360, ROOT-OS-UBUNTU-2204-CVE-2025-40360 and 2 more.

Is CVE-2025-40360 in your software?

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

Check your SBOMs for free