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

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-131
- **Published:** 2024-08-14T14:50:49.844Z
- **Modified:** 2026-10-15T01:18:44.590Z

## Who should check

- Anyone running Linux \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 3e06073d24807f04b4694108a8474decb7b99e60; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< a256d019eaf044864c7e50312f0a65b323c24f39; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 50111a8098fb9ade621eeff82228a997d42732ab; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 911f8055f175c82775d0fd8cedcd0b75413f4ba7; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< e8a68aa842d3f8dd04a46b9d632e5f67fde1da9b; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 4b09513ce93b3dcb590baaaff2ce96f2d098312d; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< ead9289a51ea82eb5b27029fcf4c34b2dd60cf06; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3
- Anyone running Linux 4.9

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

## Affected and fixed versions

- Linux: \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 3e06073d24807f04b4694108a8474decb7b99e60; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< a256d019eaf044864c7e50312f0a65b323c24f39; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 50111a8098fb9ade621eeff82228a997d42732ab; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 911f8055f175c82775d0fd8cedcd0b75413f4ba7; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< e8a68aa842d3f8dd04a46b9d632e5f67fde1da9b; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 4b09513ce93b3dcb590baaaff2ce96f2d098312d; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< ead9289a51ea82eb5b27029fcf4c34b2dd60cf06; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3 (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- Upgrade Linux to 8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3 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-42259. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-42259.md
Affected: Linux >= c58305af1835095ddc25ee6f548ac05915e66ac5, < 3e06073d24807f04b4694108a8474decb7b99e60; >= c58305af1835095ddc25ee6f548ac05915e66ac5, < a256d019eaf044864c7e50312f0a65b323c24f39; >= c58305af1835095ddc25ee6f548ac05915e66ac5, < 50111a8098fb9ade621eeff82228a997d42732ab; >= c58305af1835095ddc25ee6…
Fixed in: Linux 3e06073d24807f04b4694108a8474decb7b99e60, Linux 50111a8098fb9ade621eeff82228a997d42732ab, Linux 911f8055f175c82775d0fd8cedcd0b75413f4ba7, Linux 4b09513ce93b3dcb590baaaff2ce96f2d098312d, Linux 8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3

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-42259 being exploited?

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

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

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

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

Linux \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 3e06073d24807f04b4694108a8474decb7b99e60; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< a256d019eaf044864c7e50312f0a65b323c24f39; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 50111a8098fb9ade621eeff82228a997d42732ab; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 911f8055f175c82775d0fd8cedcd0b75413f4ba7; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< e8a68aa842d3f8dd04a46b9d632e5f67fde1da9b; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 4b09513ce93b3dcb590baaaff2ce96f2d098312d; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< ead9289a51ea82eb5b27029fcf4c34b2dd60cf06; \>= c58305af1835095ddc25ee6f548ac05915e66ac5, \< 8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3; Linux 4.9.

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

Yes. Fixed in Linux 3e06073d24807f04b4694108a8474decb7b99e60, Linux 50111a8098fb9ade621eeff82228a997d42732ab, Linux 911f8055f175c82775d0fd8cedcd0b75413f4ba7, Linux 4b09513ce93b3dcb590baaaff2ce96f2d098312d, Linux 8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3. Upgrade Linux to 8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3 or later.

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

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/3e06073d24807f04b4694108a8474decb7b99e60>
- patch: <https://git.kernel.org/stable/c/a256d019eaf044864c7e50312f0a65b323c24f39>
- patch: <https://git.kernel.org/stable/c/50111a8098fb9ade621eeff82228a997d42732ab>
- patch: <https://git.kernel.org/stable/c/911f8055f175c82775d0fd8cedcd0b75413f4ba7>
- patch: <https://git.kernel.org/stable/c/e8a68aa842d3f8dd04a46b9d632e5f67fde1da9b>
- patch: <https://git.kernel.org/stable/c/4b09513ce93b3dcb590baaaff2ce96f2d098312d>
- patch: <https://git.kernel.org/stable/c/ead9289a51ea82eb5b27029fcf4c34b2dd60cf06>
- patch: <https://git.kernel.org/stable/c/8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3>
- other: <https://project-zero.issues.chromium.org/issues/42451707>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

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

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