CVE-2026-139394
publishedspi: meson-spicc: fix invalid DMA unmap on mapping failure
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux18197e98353d931fc7bb2bb9ec671d3aa407831d to < 6a8a2e45db5f556fa4d7a1613902ef6e7b69ec79 · 18197e98353d931fc7bb2bb9ec671d3aa407831d to < 4978cf22bbce163a6209b60dc3c0955fb0c8db3b · 18197e98353d931fc7bb2bb9ec671d3aa407831d to < 9d71f9fe5b5de916bded51343138b09b1eb103ed · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 18197e98353d931fc7bb2bb9ec671d3aa407831d to < 6a8a2e45db5f556fa4d7a1613902ef6e7b69ec79 (affected · git)18197e98353d931fc7bb2bb9ec671d3aa407831d to < 4978cf22bbce163a6209b60dc3c0955fb0c8db3b (affected · git)18197e98353d931fc7bb2bb9ec671d3aa407831d to < 9d71f9fe5b5de916bded51343138b09b1eb103ed (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.16 (affected)0 to < 6.16 (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
spi: meson-spicc: fix invalid DMA unmap on mapping failure
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 253df93e6beba3d94ce614ef59ba5dce9b0d2a4c4fa40f996df4f14f1cea8fdf
- Ingested
- 30 Nov 2026, 13:42:23 UTC
- Source record
- Official CVE record