CVE-2026-43461
JSON

7.8high

spi: amlogic: spifc-a4: Fix DMA mapping error handling

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.12% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: spi: amlogic: spifc-a4: Fix DMA mapping error handling Fix three bugs in aml_sfc_dma_buffer_setup() error paths: 1. Unnecessary goto: When the first DMA mapping (sfc->daddr) fails, nothing needs cleanup. Use direct return instead of goto. 2. Double-unmap bug: When info DMA mapping failed, the code would unmap sfc->daddr inline, then fall through to out_map_data which would unmap it again, causing a double-unmap. 3. Wrong unmap size: The out_map_info label used datalen instead of infolen when unmapping sfc->iaddr, which could lead to incorrect DMA sync behavior.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 4670db6f32e9379f5ab6c9bb2a6787cd9b9230a9 before 0a83d6c9e149a176340190fa9cbadf2266db4c9a, from 4670db6f32e9379f5ab6c9bb2a6787cd9b9230a9 before c0b88f1176074f80140ed77fce909f254b7180ab, from 4670db6f32e9379f5ab6c9bb2a6787cd9b9230a9 before b20b437666e1cb26a7c499d1664e8f2a0ac67000, 6.18
Not affected: before 6.18, from 6.18.19 up to 6.18.*, from 6.19.9 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.18 before 6.18.19, from 6.19 before 6.19.9, 7.0NVD

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: spi: amlogic: spifc-a4: Fix DMA mapping error handling Fix three bugs in aml_sfc_dma_buffer_setup() error paths: 1. Unnecessary goto: When the first DMA mapping (sfc->daddr) fails, nothing needs cleanup. Use direct return instead of goto. 2. Double-unmap bug: When info DMA mapping failed, the code would unmap sfc->daddr inline, then fall through to out_map_data which would unmap it again, causing a double-unmap. 3. Wrong unmap size: The out_map_info label used datalen instead of infolen when unmapping sfc->iaddr, which could lead to incorrect DMA sync behavior.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: spi: amlogic: spifc-a4: Corrección del manejo de errores de mapeo DMA Corrige tres errores en las rutas de error de aml_sfc_dma_buffer_setup(): 1. goto innecesario: Cuando el primer mapeo DMA (sfc -> daddr) falla, nada necesita limpieza. Usar retorno directo en lugar de goto. 2. Error de doble desmapeo: Cuando el mapeo DMA de información fallaba, el código desmapearía sfc -> daddr en línea, luego pasaría a out_map_data que lo desmapearía de nuevo, causando un doble desmapeo. 3. Tamaño de desmapeo incorrecto: La etiqueta out_map_info usó datalen en lugar de infolen al desmapear sfc -> iaddr, lo que podría llevar a un comportamiento de sincronización DMA incorrecto.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43461 changed 2026-08-05CVE Terms of Use
NVDCVE-2026-43461 changed 2026-11-11Public domain