CVE-2026-98181: drm/gud: fix out-of-bounds write in gud_plane_atomic_check()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/gud: fix out-of-bounds write in gud_plane_atomic_check()
The plane property loop uses req->properties[num_properties + i] as write index while simultaneously incrementing num_properties inside the loop. At iteration i, num_properties has also incremented by i, so the write is done at initial_num_properties + 2*i, skipping every other index and advancing by 2 per iteration.
With just 2 connector and 32 plane properties the last write happens at index 64, one slot past the end of the 64-slot (indices 0–63) allocation. A USB device can trigger OOB by advertising the maximum number of properties.
Fix by dropping the redundant + i; num_properties is already the correct running index, as gud_connector_fill_properties() fills the preceding slots.
The Linux kernel CVE team has assigned CVE-2026-98181 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 5.15.222 with commit ee04903fe6a098160d20dde4fc5af4cb42846735 Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.1.189 with commit 4153a9e008f2512bd3cf90a319436865847369b9 Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.6.158 with commit 5f5e565410b4987e9663f599f9ab0c350f8338d4 Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.12.112 with commit 7e630edb22088df7aa0d55b02237a71e4c9a523d Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.18.54 with commit 2c92af27ad23e2fbc0367b11a9027d36d94ef4b3 Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 7.2.8 with commit ea57100955c1c2a525ba1a98c18d9a05b25aeedb Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 7.3-rc4 with commit 59ced288fcba9e91bd38e61a972ad782c4edb7d0
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-2026-98181
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/gud/gud_pipe.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/ee04903fe6a098160d20dde4fc5af4cb42846735 https://git.kernel.org/stable/c/4153a9e008f2512bd3cf90a319436865847369b9 https://git.kernel.org/stable/c/5f5e565410b4987e9663f599f9ab0c350f8338d4 https://git.kernel.org/stable/c/7e630edb22088df7aa0d55b02237a71e4c9a523d https://git.kernel.org/stable/c/2c92af27ad23e2fbc0367b11a9027d36d94ef4b3 https://git.kernel.org/stable/c/ea57100955c1c2a525ba1a98c18d9a05b25aeedb https://git.kernel.org/stable/c/59ced288fcba9e91bd38e61a972ad782c4edb7d0