CVE-2026-139394

Source
https://cve.org/CVERecord?id=CVE-2026-139394
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139394.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139394
Downstream
Published
2026-11-30T13:34:21Z
Modified
2026-11-30T15:02:28Z
Summary
spi: meson-spicc: fix invalid DMA unmap on mapping failure
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139394.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
18197e98353d931fc7bb2bb9ec671d3aa407831d
Fixed
6a8a2e45db5f556fa4d7a1613902ef6e7b69ec79
Fixed
4978cf22bbce163a6209b60dc3c0955fb0c8db3b
Fixed
9d71f9fe5b5de916bded51343138b09b1eb103ed

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139394.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139394.json"