CVE-2024-42259 drm/i915/gem: Fix Virtual Memory mapping boundaries calculation
A boundary calculation error in the i915 graphics driver can cause page faults, leading to a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-42259?
CVE-2024-42259 is a high-severity memory corruption vulnerability in Linux kernel, published on 14 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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)
Weakness: CWE-131
Which versions are affected by CVE-2024-42259?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-42259?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-42259 being exploited?
There is no known exploitation of CVE-2024-42259 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-49105, BELL-CVE-2024-42259, DEBIAN-CVE-2024-42259, GHSA-74vq-jpr9-j6wj, UBUNTU-CVE-2024-42259.