CVE-2024-42259

drm/i915/gem: Fix Virtual Memory mapping boundaries calculation

7.8 high EPSS 0.26%

Published 14 Aug 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-42259

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-42259 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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)

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 19.6% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from c58305af1835095ddc25ee6f548ac05915e66ac5, before 3e06073d24807f04b4694108a8474decb7b99e60
affected from c58305af1835095ddc25ee6f548ac05915e66ac5, before a256d019eaf044864c7e50312f0a65b323c24f39
affected from c58305af1835095ddc25ee6f548ac05915e66ac5, before 50111a8098fb9ade621eeff82228a997d42732ab
affected from c58305af1835095ddc25ee6f548ac05915e66ac5, before 911f8055f175c82775d0fd8cedcd0b75413f4ba7
affected from c58305af1835095ddc25ee6f548ac05915e66ac5, before e8a68aa842d3f8dd04a46b9d632e5f67fde1da9b
affected from c58305af1835095ddc25ee6f548ac05915e66ac5, before 4b09513ce93b3dcb590baaaff2ce96f2d098312d
affected from c58305af1835095ddc25ee6f548ac05915e66ac5, before ead9289a51ea82eb5b27029fcf4c34b2dd60cf06
affected from c58305af1835095ddc25ee6f548ac05915e66ac5, before 8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3
Other versions: unaffected
Linux
affected 4.9
unaffected before 4.9
unaffected from 4.19.320 up to and including 4.19.*
unaffected from 5.4.282 up to and including 5.4.*
unaffected from 5.10.224 up to and including 5.10.*
unaffected from 5.15.165 up to and including 5.15.*
unaffected from 6.1.106 up to and including 6.1.*
unaffected from 6.6.46 up to and including 6.6.*
unaffected from 6.10.5 up to and including 6.10.*
unaffected 6.11 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-42259 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-42259

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-42259
trivy image --scanners vuln IMAGE | grep CVE-2024-42259

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-42259 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.