CVE-2026-139526

dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()

Published Nov 30, 2026 CVSS 3.1 · 4.1 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()

switchtec_dma_free_desc() frees swdma_chan->hw_sq, hw_cq, and every
desc_ring[] entry without clearing the pointers afterward. If
switchtec_dma_alloc_chan_resources() fails partway through and calls
it during unwind, then a later retry of alloc_chan_resources() fails
in switchtec_dma_alloc_desc() before reallocating one of those
pointers, its own failure path calls switchtec_dma_free_desc() again
and frees the same, already-freed pointers a second time.

NULL out each pointer as it's freed so a subsequent call is a no-op
for anything already released.

Analysis

AI-generated

Technical impact

The vulnerability originates in the switchtec DMA engine of the Linux kernel. The switchtec_dma_free_desc() function releases pre‑allocated descriptor structures and the hardware submission and completion queues but does not clear the associated pointers. If an earlier allocation routine fails and then later retries, the free routine can be invoked twice on the same memory regions, leading to a double‑free and kernel memory corruption. This corruption could destabilize the kernel or allow an attacker with local or elevated privileges to influence control flow, though the CVE description does not explicitly state a denial of service or privilege escalation outcome.

Affected Systems

All Linux kernel builds that include the switchtec DMA driver and do not incorporate the patch committed at 8cba9a0fb162748b6d5c73628d1713a2f895c972 or its equivalent are affected. No specific version numbers are supplied, so any kernel prior to the patch should be considered vulnerable.

Risk and Exploitability

The CVSS score for this issue is 4.1, indicating a moderate severity. The EPSS score is less than 1%, suggesting a low probability of exploitation in the wild. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, it is inferred that exploitation requires control over the DMA allocation process, implying that an attacker would need local or privileged access. Based on the description, it is inferred that the risk to systems loading the switchtec DMA driver remains significant due to potential double‑free triggers from allocation failures.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a release that includes the patch at commit 8cba9a0fb162748b6d5c73628d1713a2f895c972, which zeroes pointers after freeing.
  • If a kernel update cannot be applied immediately, unload or disable the switchtec DMA driver module to prevent allocation attempts that may trigger the double‑free.
  • Ensure that only authorized users or processes can load the switchtec DMA driver and monitor system logs for kernel panics or abnormal crashes.

Generated by OpenCVE AI on December 2, 2026 at 16:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-1341
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc() switchtec_dma_free_desc() frees swdma_chan->hw_sq, hw_cq, and every desc_ring[] entry without clearing the pointers afterward. If switchtec_dma_alloc_chan_resources() fails partway through and calls it during unwind, then a later retry of alloc_chan_resources() fails in switchtec_dma_alloc_desc() before reallocating one of those pointers, its own failure path calls switchtec_dma_free_desc() again and frees the same, already-freed pointers a second time. NULL out each pointer as it's freed so a subsequent call is a no-op for anything already released.
Title dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-1341

    Multiple Releases of Same Resource or Handle

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:35 PM