CVE-2023-54020
Memory Leak in Linux dmaengine sf-pdma Driver Causes Resource Exhaustion
Publication date: 2025-12-24
Last updated on: 2025-12-24
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
| linux | kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring for memory leaks related to the sf-pdma driver in the Linux kernel. One way to detect it is by using the kernel memory leak detector (kmemleak) to identify unreferenced objects allocated by sf_pdma_prep_dma_memcpy(). You can enable kmemleak and check its output with commands such as: 1. Enable kmemleak (if not already enabled): echo scan > /sys/kernel/debug/kmemleak 2. Check for memory leaks: cat /sys/kernel/debug/kmemleak Look for entries related to sf_pdma_prep_dma_memcpy or irq/39-mchp_dsc processes indicating leaked descriptors. Additionally, monitoring system logs for messages related to memory allocation failures or unusual behavior in the DMA engine driver may help detect the issue.
Can you explain this vulnerability to me?
This vulnerability is a memory leak in the Linux kernel's dmaengine driver for sf-pdma. A recent change made the function sf_pdma_prep_dma_memcpy() allocate a new descriptor every time it is called without freeing the previous one. Because the corresponding free function sf_pdma_free_desc() was not updated to handle this new behavior, descriptors are leaked each time the function is called, eventually leading to memory starvation.
How can this vulnerability impact me? :
The memory leak caused by this vulnerability can lead to memory starvation in the system over time. This means that the system may run out of available memory, potentially causing degraded performance, instability, or crashes in the affected Linux kernel environment.
What immediate steps should I take to mitigate this vulnerability?
Apply the patch that adds the missing kfree() call to sf_pdma_free_desc() and removes the redundant in_use flag in the Linux kernel's dmaengine sf-pdma driver. This fixes the memory leak caused by descriptors not being freed, preventing memory starvation.