CVE-2025-40356
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
16/12/2025
Last modified:
16/12/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
spi: rockchip-sfc: Fix DMA-API usage<br />
<br />
Use DMA-API dma_map_single() call for getting the DMA address of the<br />
transfer buffer instead of hacking with virt_to_phys().<br />
<br />
This fixes the following DMA-API debug warning:<br />
------------[ cut here ]------------<br />
DMA-API: rockchip-sfc fe300000.spi: device driver tries to sync DMA memory it has not allocated [device address=0x000000000cf70000] [size=288 bytes]<br />
WARNING: kernel/dma/debug.c:1106 at check_sync+0x1d8/0x690, CPU#2: systemd-udevd/151<br />
Modules linked in: ...<br />
Hardware name: Hardkernel ODROID-M1 (DT)<br />
pstate: 604000c9 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)<br />
pc : check_sync+0x1d8/0x690<br />
lr : check_sync+0x1d8/0x690<br />
..<br />
Call trace:<br />
check_sync+0x1d8/0x690 (P)<br />
debug_dma_sync_single_for_cpu+0x84/0x8c<br />
__dma_sync_single_for_cpu+0x88/0x234<br />
rockchip_sfc_exec_mem_op+0x4a0/0x798 [spi_rockchip_sfc]<br />
spi_mem_exec_op+0x408/0x498<br />
spi_nor_read_data+0x170/0x184<br />
spi_nor_read_sfdp+0x74/0xe4<br />
spi_nor_parse_sfdp+0x120/0x11f0<br />
spi_nor_sfdp_init_params_deprecated+0x3c/0x8c<br />
spi_nor_scan+0x690/0xf88<br />
spi_nor_probe+0xe4/0x304<br />
spi_mem_probe+0x6c/0xa8<br />
spi_probe+0x94/0xd4<br />
really_probe+0xbc/0x298<br />
...



