Linux Kernel DMA Mapping Error Handling Vulnerability in Amlogic SPI Flash Controller Driver

Vulnerability

A vulnerability has been identified in the Linux kernel's Amlogic SPI Flash Controller driver, specifically in the DMA buffer setup function. This issue arises from improper error handling during DMA mapping, which can lead to a double-unmap bug and incorrect DMA synchronization. The vulnerability affects the stable version of the Linux kernel.

Impact

The vulnerability can cause a double-unmap error, where the same DMA address is unmapped twice, potentially leading to memory corruption. Additionally, the incorrect unmap size can disrupt proper DMA synchronization, causing further data handling issues.

Reproduction

The vulnerability can be reproduced by triggering a DMA mapping error in the Amlogic SPI Flash Controller driver. This can be done by simulating a failure in the DMA mapping process, which will expose the error handling flaws in the driver's buffer setup function.

Remediation

Users can update to the latest version of the Linux kernel where this vulnerability has been addressed. The specific commit fixing this issue is available in the Linux stable tree.

Added: May 8, 2026, 7:19 PM
Updated: May 8, 2026, 7:19 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
1.9
exploitability
4.3
remediation
7.7
relevance
7.8
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.