CVE-2026-23317: drm/vmwgfx: Return the correct value in vmw_translate_ptr functions
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/vmwgfx: Return the correct value in vmw_translate_ptr functions
Before the referenced fixes these functions used a lookup function that returned a pointer. This was changed to another lookup function that returned an error code with the pointer becoming an out parameter.
The error path when the lookup failed was not changed to reflect this change and the code continued to return the PTR_ERR of the now uninitialized pointer. This could cause the vmw_translate_ptr functions to return success when they actually failed causing further uninitialized and OOB accesses.
The Linux kernel CVE team has assigned CVE-2026-23317 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.1.7 with commit 7ac9578e45b20e3f3c0c8eb71f5417a499a7226a and fixed in 6.1.167 with commit ce3a5cf139787c186d5d54336107298cacaad2b9 Issue introduced in 6.2 with commit a309c7194e8a2f8bd4539b9449917913f6c2cd50 and fixed in 6.6.130 with commit 7e55d0788b362c93660b80cc5603031bbbdefa98 Issue introduced in 6.2 with commit a309c7194e8a2f8bd4539b9449917913f6c2cd50 and fixed in 6.12.77 with commit 36cb28b6d303a81e6ed4536017090e85e0143e42 Issue introduced in 6.2 with commit a309c7194e8a2f8bd4539b9449917913f6c2cd50 and fixed in 6.18.17 with commit 531f45589787799aa81b63e1e1f8e71db5d93dd1 Issue introduced in 6.2 with commit a309c7194e8a2f8bd4539b9449917913f6c2cd50 and fixed in 6.19.7 with commit 149f028772fa2879d9316b924ce948a6a0877e45 Issue introduced in 6.2 with commit a309c7194e8a2f8bd4539b9449917913f6c2cd50 and fixed in 7.0-rc2 with commit 5023ca80f9589295cb60735016e39fc5cc714243
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-23317
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/vmwgfx/vmwgfx_execbuf.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/ce3a5cf139787c186d5d54336107298cacaad2b9 https://git.kernel.org/stable/c/7e55d0788b362c93660b80cc5603031bbbdefa98 https://git.kernel.org/stable/c/36cb28b6d303a81e6ed4536017090e85e0143e42 https://git.kernel.org/stable/c/531f45589787799aa81b63e1e1f8e71db5d93dd1 https://git.kernel.org/stable/c/149f028772fa2879d9316b924ce948a6a0877e45 https://git.kernel.org/stable/c/5023ca80f9589295cb60735016e39fc5cc714243