CVE-2026-139394 spi: meson-spicc: fix invalid DMA unmap on mapping failure

Published Updated

CVSS score

Not scored

No CVSS score published yet
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
See affected versions
Attack path
Not stated

What is CVE-2026-139394?

CVE-2026-139394 is a vulnerability in Linux, published on 30 Nov 2026.

Official description

In the Linux kernel, the following vulnerability has been resolved:

spi: meson-spicc: fix invalid DMA unmap on mapping failure

meson_spicc_dma_unmap() decided whether a buffer had to be unmapped by testing its DMA address for non-zero. On a mapping failure dma_map_single() returns DMA_MAPPING_ERROR (typically non-zero), so the error path in meson_spicc_transfer_one() passed that error value to dma_unmap_single(), unmapping an address which was never mapped. The same happened for t->rx_dma on TX mapping failure, which is not written at all.

Initialize both addresses to DMA_MAPPING_ERROR before mapping and use dma_mapping_error() to decide, so only buffers which were actually mapped are unmapped.

Which versions are affected by CVE-2026-139394?

How do I fix CVE-2026-139394?

Upgrade to a fixed version.

Is CVE-2026-139394 being exploited?

There is no known exploitation of CVE-2026-139394 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2026-139394, DEBIAN-CVE-2026-139394, GHSA-3p79-m6gr-32f4, UBUNTU-CVE-2026-139394.

Is CVE-2026-139394 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free