CVE-2026-139394

medium

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.

References

https://git.kernel.org/stable/c/9d71f9fe5b5de916bded51343138b09b1eb103ed

https://git.kernel.org/stable/c/6a8a2e45db5f556fa4d7a1613902ef6e7b69ec79

https://git.kernel.org/stable/c/4978cf22bbce163a6209b60dc3c0955fb0c8db3b

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-139099

Details

Source: Mitre, NVD

Published: 2026-11-30

Updated: 2026-11-30

Risk Information

CVSS v2

Base Score: 3.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:N/A:P

Severity: Low

CVSS v3

Base Score: 5.5

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Severity: Medium

EPSS

EPSS: 0.00206