Skip to contentSkip to conversation

CVE-2023-54188: dmaengine: apple-admac: Fix 'current_tx' not getting freed

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 30, 2025

lore
Share & tools
lore
#0 lore raw

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

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

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

dmaengine: apple-admac: Fix 'current_tx' not getting freed

In terminate_all we should queue up all submitted descriptors to be freed. We do that for the content of the 'issued' and 'submitted' lists, but the 'current_tx' descriptor falls through the cracks as it's removed from the 'issued' list once it gets assigned to be the current descriptor. Explicitly queue up freeing of the 'current_tx' descriptor to address a memory leak that is otherwise present.

The Linux kernel CVE team has assigned CVE-2023-54188 to this issue.

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

	Issue introduced in 6.0 with commit b127315d9a78c011c011b88b92f650510edcfbd2 and fixed in 6.1.25 with commit b7abd535881a48587961c2099b1d2933ebd42c4b
	Issue introduced in 6.0 with commit b127315d9a78c011c011b88b92f650510edcfbd2 and fixed in 6.2.12 with commit fd4d88e68c75caf5c6f8293a36bc3ae289e0369e
	Issue introduced in 6.0 with commit b127315d9a78c011c011b88b92f650510edcfbd2 and fixed in 6.3 with commit d9503be5a100c553731c0e8a82c7b4201e8a970c

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-2023-54188

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/dma/apple-admac.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/b7abd535881a48587961c2099b1d2933ebd42c4b
	https://git.kernel.org/stable/c/fd4d88e68c75caf5c6f8293a36bc3ae289e0369e
	https://git.kernel.org/stable/c/d9503be5a100c553731c0e8a82c7b4201e8a970c