Skip to contentSkip to conversation

CVE-2023-53755: dmaengine: ptdma: check for null desc before calling pt_cmd_callback

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 8, 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: ptdma: check for null desc before calling pt_cmd_callback

Resolves a panic that can occur on AMD systems, typically during host shutdown, after the PTDMA driver had been exercised. The issue was the pt_issue_pending() function is mistakenly assuming that there will be at least one descriptor in the Submitted queue when the function is called. However, it is possible that both the Submitted and Issued queues could be empty, which could result in pt_cmd_callback() being mistakenly called with a NULL pointer.
Ref: Bugzilla Bug 216856.

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

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

	Issue introduced in 5.18 with commit 6fa7e0e836e23e2c758ac3930b040c8abbbf8a6f and fixed in 6.1.16 with commit 8ae2113702613207efc05453bc9a3df2b992bf45
	Issue introduced in 5.18 with commit 6fa7e0e836e23e2c758ac3930b040c8abbbf8a6f and fixed in 6.2.3 with commit 5bba023b1241c7af5d40447503a68de282ad5190
	Issue introduced in 5.18 with commit 6fa7e0e836e23e2c758ac3930b040c8abbbf8a6f and fixed in 6.3 with commit 928469986171a6f763b34b039427f5667ba3fd50

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

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/ptdma/ptdma-dmaengine.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/8ae2113702613207efc05453bc9a3df2b992bf45
	https://git.kernel.org/stable/c/5bba023b1241c7af5d40447503a68de282ad5190
	https://git.kernel.org/stable/c/928469986171a6f763b34b039427f5667ba3fd50