CVE-2026-90239: media: amd: isp4: release partial allocations in isp4if_alloc_fw_gpumem()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: amd: isp4: release partial allocations in isp4if_alloc_fw_gpumem()
isp4if_alloc_fw_gpumem() allocates several GPU memory pools in sequence. If one of them fails, it jumps to error_no_memory and returns -ENOMEM without releasing the pools that were already allocated, leaking them.
Release the already-allocated pools before returning. isp4if_gpu_mem_free() is a no-op on pools that were not allocated, so calling isp4if_dealloc_fw_gpumem() here safely frees exactly the pools that succeeded.
isp4if_gpu_mem_free() previously logged an error for a NULL entry, which is a normal case during partial-allocation cleanup, so make it silent.
The Linux kernel CVE team has assigned CVE-2026-90239 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.2 with commit 4c5feef6a62c22b578344891232872056415a3dd and fixed in 7.2.6 with commit a1f8750668e552837df781783909f2f680958006 Issue introduced in 7.2 with commit 4c5feef6a62c22b578344891232872056415a3dd and fixed in 7.3-rc1 with commit fea97ee13c5332f67850733d6cefc1fe99460bde
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-90239
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/media/platform/amd/isp4/isp4_interface.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/a1f8750668e552837df781783909f2f680958006 https://git.kernel.org/stable/c/fea97ee13c5332f67850733d6cefc1fe99460bde