[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2024081452-CVE-2024-42259-4cef@gregkh>
Date: Wed, 14 Aug 2024 16:50:53 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2024-42259: drm/i915/gem: Fix Virtual Memory mapping boundaries calculation
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)
The Linux kernel CVE team has assigned CVE-2024-42259 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.9 with commit c58305af1835 and fixed in 6.6.46 with commit 4b09513ce93b
Issue introduced in 4.9 with commit c58305af1835 and fixed in 6.10.5 with commit ead9289a51ea
Issue introduced in 4.9 with commit c58305af1835 and fixed in 6.11-rc3 with commit 8bdd9ef7e9b1
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2024-42259
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/i915/gem/i915_gem_mman.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/4b09513ce93b3dcb590baaaff2ce96f2d098312d
https://git.kernel.org/stable/c/ead9289a51ea82eb5b27029fcf4c34b2dd60cf06
https://git.kernel.org/stable/c/8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3
Powered by blists - more mailing lists