dmaengine: ptdma: check for null desc before calling pt_cmd_callback
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.1.166.2.36.3In 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.
From the CVE record · Linux
The Linux kernel PTDMA driver can panic on AMD systems, typically during host shutdown after the driver has been exercised. An empty descriptor queue can cause a callback to receive a NULL pointer. The input does not describe an attacker-controlled path, authentication requirements, or user interaction.
Engineers running Linux on AMD systems where the PTDMA driver is used should check their kernels; affected versions are not specified.