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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-11-12T01:07:24.739Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 3332212e93d0f6e24f8fe79f975e077c4e68ca39; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 86aae7053d2da3fdfde7b2e84d86e4af50490505; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< af9d88cbf0fce52f465978360542ef679713491f; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 299cfb5a7deabdf9ecd30071755672af0aced5eb; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 13c9e4ed125e19484234c960efe5ac9c55119523; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< b6fca0a07989f361ceda27cb2d09c555d4d4a964; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 5ac2c0279053a2c5265d46903432fb26ae2d0da2
- Anyone running Linux 3.8

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

## Affected and fixed versions

- Linux: \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 3332212e93d0f6e24f8fe79f975e077c4e68ca39; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 86aae7053d2da3fdfde7b2e84d86e4af50490505; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< af9d88cbf0fce52f465978360542ef679713491f; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 299cfb5a7deabdf9ecd30071755672af0aced5eb; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 13c9e4ed125e19484234c960efe5ac9c55119523; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< b6fca0a07989f361ceda27cb2d09c555d4d4a964; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 5ac2c0279053a2c5265d46903432fb26ae2d0da2 (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- Upgrade Linux to 5ac2c0279053a2c5265d46903432fb26ae2d0da2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40110. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40110.md
Affected: Linux >= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, < 3332212e93d0f6e24f8fe79f975e077c4e68ca39; >= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, < 86aae7053d2da3fdfde7b2e84d86e4af50490505; >= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, < af9d88cbf0fce52f465978360542ef679713491f; >= c0951b797e7d0f2c6b0df2c…
Fixed in: Linux 3332212e93d0f6e24f8fe79f975e077c4e68ca39, Linux 86aae7053d2da3fdfde7b2e84d86e4af50490505, Linux 299cfb5a7deabdf9ecd30071755672af0aced5eb, Linux 13c9e4ed125e19484234c960efe5ac9c55119523, Linux 5ac2c0279053a2c5265d46903432fb26ae2d0da2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40110 being exploited?

There is no confirmed exploitation: CVE-2025-40110 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40110?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40110?

Linux \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 3332212e93d0f6e24f8fe79f975e077c4e68ca39; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 86aae7053d2da3fdfde7b2e84d86e4af50490505; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< af9d88cbf0fce52f465978360542ef679713491f; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 299cfb5a7deabdf9ecd30071755672af0aced5eb; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 13c9e4ed125e19484234c960efe5ac9c55119523; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< b6fca0a07989f361ceda27cb2d09c555d4d4a964; \>= c0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1, \< 5ac2c0279053a2c5265d46903432fb26ae2d0da2; Linux 3.8.

### Is there a fix for CVE-2025-40110?

Yes. Fixed in Linux 3332212e93d0f6e24f8fe79f975e077c4e68ca39, Linux 86aae7053d2da3fdfde7b2e84d86e4af50490505, Linux 299cfb5a7deabdf9ecd30071755672af0aced5eb, Linux 13c9e4ed125e19484234c960efe5ac9c55119523, Linux 5ac2c0279053a2c5265d46903432fb26ae2d0da2. Upgrade Linux to 5ac2c0279053a2c5265d46903432fb26ae2d0da2 or later.

### How do I check if I'm affected by CVE-2025-40110?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/3332212e93d0f6e24f8fe79f975e077c4e68ca39>
- other: <https://git.kernel.org/stable/c/86aae7053d2da3fdfde7b2e84d86e4af50490505>
- other: <https://git.kernel.org/stable/c/af9d88cbf0fce52f465978360542ef679713491f>
- other: <https://git.kernel.org/stable/c/299cfb5a7deabdf9ecd30071755672af0aced5eb>
- other: <https://git.kernel.org/stable/c/13c9e4ed125e19484234c960efe5ac9c55119523>
- other: <https://git.kernel.org/stable/c/b6fca0a07989f361ceda27cb2d09c555d4d4a964>
- other: <https://git.kernel.org/stable/c/5ac2c0279053a2c5265d46903432fb26ae2d0da2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40110>

HTML: <https://flawdb.com/CVE-2025-40110> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40110>
