CVE-2025-40110 drm/vmwgfx: Fix a null-ptr access in the cursor snooper

Not scored Published Updated

A local attacker can cause a denial of service in the Linux kernel via a null pointer dereference in the vmwgfx cursor snooper.

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-40110?

CVE-2025-40110 is a vulnerability in Linux, published on 12 Nov 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/vmwgfx: Fix a null-ptr access in the cursor snooper

Check that the resource which is converted to a surface exists before trying to use the cursor snooper on it.

vmw_cmd_res_check allows explicit invalid (SVGA3D_INVALID_ID) identifiers because some svga commands accept SVGA3D_INVALID_ID to mean "no surface", unfortunately functions that accept the actual surfaces as objects might (and in case of the cursor snooper, do not) be able to handle null objects. Make sure that we validate not only the identifier (via the vmw_cmd_res_check) but also check that the actual resource exists before trying to do something with it.

Fixes unchecked null-ptr reference in the snooping code.

Which versions are affected by CVE-2025-40110?

How do I fix CVE-2025-40110?

Apply the vendor's patch.

Is CVE-2025-40110 being exploited?

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

Sources

Also known as AZL-69953, BELL-CVE-2025-40110, DEBIAN-CVE-2025-40110, GHSA-pvw2-x3cx-mv2h, ROOT-OS-DEBIAN-11-CVE-2025-40110, ROOT-OS-DEBIAN-12-CVE-2025-40110 and 4 more.

Is CVE-2025-40110 in your software?

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

Check your SBOMs for free