# CVE-2024-26940: drm/vmwgfx: Create debugfs ttm\_resource\_manager entry only if needed

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2024-05-01T05:17:48.607Z
- **Modified:** 2026-06-17T07:18:44.697Z

## Who should check

- Anyone running Linux \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< 016119154981d81c9e8f2ea3f56b9e2b4ea14500; \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< 042ef0afc40fa1a22b3608f22915b91ce39d128f; \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< 25e3ce59c1200f1f0563e39de151f34962ab0fe1; \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< eb08db0fc5354fa17b7ed66dab3c503332423451; \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< 4be9075fec0a639384ed19975634b662bfab938f
- Anyone running Linux 5.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/vmwgfx: Create debugfs ttm\_resource\_manager entry only if needed

The driver creates /sys/kernel/debug/dri/0/mob\_ttm even when the
corresponding ttm\_resource\_manager is not allocated.
This leads to a crash when trying to read from this file.

Add a check to create mob\_ttm, system\_mob\_ttm, and gmr\_ttm debug file
only when the corresponding ttm\_resource\_manager is allocated.

crash\> bt
PID: 3133409  TASK: ffff8fe4834a5000  CPU: 3    COMMAND: "grep"
 \#0 \[ffffb954506b3b20\] machine\_kexec at ffffffffb2a6bec3
 \#1 \[ffffb954506b3b78\] \_\_crash\_kexec at ffffffffb2bb598a
 \#2 \[ffffb954506b3c38\] crash\_kexec at ffffffffb2bb68c1
 \#3 \[ffffb954506b3c50\] oops\_end at ffffffffb2a2a9b1
 \#4 \[ffffb954506b3c70\] no\_context at ffffffffb2a7e913
 \#5 \[ffffb954506b3cc8\] \_\_bad\_area\_nosemaphore at ffffffffb2a7ec8c
 \#6 \[ffffb954506b3d10\] do\_page\_fault at ffffffffb2a7f887
 \#7 \[ffffb954506b3d40\] page\_fault at ffffffffb360116e
    \[exception RIP: ttm\_resource\_manager\_debug+0x11\]
    RIP: ffffffffc04afd11  RSP: ffffb954506b3df0  RFLAGS: 00010246
    RAX: ffff8fe41a6d1200  RBX: 0000000000000000  RCX: 0000000000000940
    RDX: 0000000000000000  RSI: ffffffffc04b4338  RDI: 0000000000000000
    RBP: ffffb954506b3e08   R8: ffff8fee3ffad000   R9: 0000000000000000
    R10: ffff8fe41a76a000  R11: 0000000000000001  R12: 00000000ffffffff
    R13: 0000000000000001  R14: ffff8fe5bb6f3900  R15: ffff8fe41a6d1200
    ORIG\_RAX: ffffffffffffffff  CS: 0010  SS: 0018
 \#8 \[ffffb954506b3e00\] ttm\_resource\_manager\_show at ffffffffc04afde7 \[ttm\]
 \#9 \[ffffb954506b3e30\] seq\_read at ffffffffb2d8f9f3
    RIP: 00007f4c4eda8985  RSP: 00007ffdbba9e9f8  RFLAGS: 00000246
    RAX: ffffffffffffffda  RBX: 000000000037e000  RCX: 00007f4c4eda8985
    RDX: 000000000037e000  RSI: 00007f4c41573000  RDI: 0000000000000003
    RBP: 000000000037e000   R8: 0000000000000000   R9: 000000000037fe30
    R10: 0000000000000000  R11: 0000000000000246  R12: 00007f4c41573000
    R13: 0000000000000003  R14: 00007f4c41572010  R15: 0000000000000003
    ORIG\_RAX: 0000000000000000  CS: 0033  SS: 002b

## Affected and fixed versions

- Linux: \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< 016119154981d81c9e8f2ea3f56b9e2b4ea14500; \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< 042ef0afc40fa1a22b3608f22915b91ce39d128f; \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< 25e3ce59c1200f1f0563e39de151f34962ab0fe1; \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< eb08db0fc5354fa17b7ed66dab3c503332423451; \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< 4be9075fec0a639384ed19975634b662bfab938f (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 4be9075fec0a639384ed19975634b662bfab938f or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26940.md
Affected: Linux >= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, < 016119154981d81c9e8f2ea3f56b9e2b4ea14500; >= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, < 042ef0afc40fa1a22b3608f22915b91ce39d128f; >= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, < 25e3ce59c1200f1f0563e39de151f34962ab0fe1; >= af4a25bbe5e7e60ff696ef5…
Fixed in: Linux 016119154981d81c9e8f2ea3f56b9e2b4ea14500, Linux 042ef0afc40fa1a22b3608f22915b91ce39d128f, Linux 25e3ce59c1200f1f0563e39de151f34962ab0fe1, Linux 4be9075fec0a639384ed19975634b662bfab938f

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-2024-26940 being exploited?

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

### How serious is CVE-2024-26940?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26940?

Linux \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< 016119154981d81c9e8f2ea3f56b9e2b4ea14500; \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< 042ef0afc40fa1a22b3608f22915b91ce39d128f; \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< 25e3ce59c1200f1f0563e39de151f34962ab0fe1; \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< eb08db0fc5354fa17b7ed66dab3c503332423451; \>= af4a25bbe5e7e60ff696ef5c1ec48ab2d51c17c6, \< 4be9075fec0a639384ed19975634b662bfab938f; Linux 5.19.

### Is there a fix for CVE-2024-26940?

Yes. Fixed in Linux 016119154981d81c9e8f2ea3f56b9e2b4ea14500, Linux 042ef0afc40fa1a22b3608f22915b91ce39d128f, Linux 25e3ce59c1200f1f0563e39de151f34962ab0fe1, Linux 4be9075fec0a639384ed19975634b662bfab938f. Upgrade Linux to 4be9075fec0a639384ed19975634b662bfab938f or later.

### How do I check if I'm affected by CVE-2024-26940?

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

- patch: <https://git.kernel.org/stable/c/016119154981d81c9e8f2ea3f56b9e2b4ea14500>
- patch: <https://git.kernel.org/stable/c/042ef0afc40fa1a22b3608f22915b91ce39d128f>
- patch: <https://git.kernel.org/stable/c/25e3ce59c1200f1f0563e39de151f34962ab0fe1>
- patch: <https://git.kernel.org/stable/c/eb08db0fc5354fa17b7ed66dab3c503332423451>
- patch: <https://git.kernel.org/stable/c/4be9075fec0a639384ed19975634b662bfab938f>

## 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-2024-26940>

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