CVE-2026-45979: drm/amdgpu: clean up the amdgpu_cs_parser_bos
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: clean up the amdgpu_cs_parser_bos
In low memory conditions, kmalloc can fail. In such conditions unlock the mutex for a clean exit.
We do not need to amdgpu_bo_list_put as it's been handled in the amdgpu_cs_parser_fini.
The Linux kernel CVE team has assigned CVE-2026-45979 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit 737da5363cc07c96d59f2ebaf9f9f87235becf1d and fixed in 6.19.4 with commit 0905a1d4a5500ecf11f1c0079098e3a351d22163 Issue introduced in 6.19 with commit 737da5363cc07c96d59f2ebaf9f9f87235becf1d and fixed in 7.0 with commit f025a2b8d93358467b8e8f4b3a617e88c5f02fab
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-45979
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/amd/amdgpu/amdgpu_cs.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/0905a1d4a5500ecf11f1c0079098e3a351d22163 https://git.kernel.org/stable/c/f025a2b8d93358467b8e8f4b3a617e88c5f02fab