Skip to contentSkip to conversation

CVE-2026-45908: accel/amdxdna: Fix memory leak in amdxdna_ubuf_map

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

accel/amdxdna: Fix memory leak in amdxdna_ubuf_map

The amdxdna_ubuf_map() function allocates memory for sg and internal sg table structures, but it fails to free them if subsequent operations (sg_alloc_table_from_pages or dma_map_sgtable) fail.

The Linux kernel CVE team has assigned CVE-2026-45908 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.18 with commit bd72d4acda1069579b35123e3cc0b21ec1193a21 and fixed in 6.18.14 with commit 5a68d2c99c859e6e8e36fa4e32749abf6d1fb66a
	Issue introduced in 6.18 with commit bd72d4acda1069579b35123e3cc0b21ec1193a21 and fixed in 6.19.4 with commit f9f4366d2ff93b07c2571561c776bd9a708078c3
	Issue introduced in 6.18 with commit bd72d4acda1069579b35123e3cc0b21ec1193a21 and fixed in 7.0 with commit 84dd57fb0359500092f1101409ca32091731490d

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-45908

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/accel/amdxdna/amdxdna_ubuf.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/5a68d2c99c859e6e8e36fa4e32749abf6d1fb66a
	https://git.kernel.org/stable/c/f9f4366d2ff93b07c2571561c776bd9a708078c3
	https://git.kernel.org/stable/c/84dd57fb0359500092f1101409ca32091731490d