CVE-2026-139524

dmaengine: switchtec-dma: fix channel leak on registration failure

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

dmaengine: switchtec-dma: fix channel leak on registration failure

switchtec_dma_chans_release() is called in three places but the
underlying memory is not freed in all of those places. In order to
clean this up, introduce a switchtec_dma_chans_free() helper that
will free the memory.

Ensure each call to switchtec_dma_chans_release() has a corresponding
switchtec_dma_chans_free() call. (The release in switchtec_dma_remove()
pairs with the free in switchtec_dma_release()).

swdma_dev->chan_cnt is now set to the number of channels that succeeded
when one fails to initialise, so switchtec_dma_chans_free() can still
be used if not all channels succeed in being allocated.

switchtec_dma_chans_free() also removes each channel from
dma_dev->channels before freeing it, since the channel status ISR
walks that list and would otherwise dereference freed memory.

Analysis

AI-generated

Technical impact

The kernel driver contains several paths where allocated DMA channel memory is not freed when registration fails. This omission allows a memory leak that can grow unbounded when the driver repeatedly fails to initialize channels. Additionally, because the freed memory is not removed from the kernel's channel list, subsequent interrupt handlers may dereference stale pointers, leading to a use‑after‑free condition. In a worst‑case scenario an attacker who can trigger channel initialization or a fault handler could subvert normal kernel memory safety and potentially corrupt kernel data or gain elevated privileges. The description does not explicitly identify the attack surface, but the nature of the bug implies a local privilege escalation or denial‑of‑service risk.

Affected Systems

The vulnerability resides in the Linux kernel's switchtec DMA engine driver. All kernel builds that include the switchtec_dma module are susceptible; the exact release versions are not provided in the data. Users running Linux kernels on hardware that requires this driver are impacted.

Risk and Exploitability

\nEPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The bug affects kernel memory management, a critical component, and therefore the potential impact is significant if exploited. The lack of public exploitation data suggests a moderate to high risk, and an attacker would likely need local access to the system to trigger the fault conditions. It is prudent to treat the vulnerability as a serious system integrity risk and to prioritize remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the switchtec_dma_chans_free patch
  • If an update is not immediately available, disable the switchtec_dma module until the kernel can be patched
  • Verify that the driver is not loaded on systems that do not require it and monitor kernel logs for DMA allocation failures

Generated by OpenCVE AI on December 1, 2026 at 13:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-401
CWE-416
Type Values Removed Values Added
Weaknesses CWE-401
CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: dmaengine: switchtec-dma: fix channel leak on registration failure switchtec_dma_chans_release() is called in three places but the underlying memory is not freed in all of those places. In order to clean this up, introduce a switchtec_dma_chans_free() helper that will free the memory. Ensure each call to switchtec_dma_chans_release() has a corresponding switchtec_dma_chans_free() call. (The release in switchtec_dma_remove() pairs with the free in switchtec_dma_release()). swdma_dev->chan_cnt is now set to the number of channels that succeeded when one fails to initialise, so switchtec_dma_chans_free() can still be used if not all channels succeed in being allocated. switchtec_dma_chans_free() also removes each channel from dma_dev->channels before freeing it, since the channel status ISR walks that list and would otherwise dereference freed memory.
Title dmaengine: switchtec-dma: fix channel leak on registration failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-416

    Use After Free

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