# CVE-2025-40356: spi: rockchip-sfc: Fix DMA-API usage

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2025-12-16T13:30:28.913Z
- **Modified:** 2026-10-14T13:10:00.187Z

## Who should check

- Anyone running Linux \>= b69386fcbc6066fb4885667743ab4d4967d561b8, \< 22810d4cb0e8a7d51b24527e73beac60afc1c693; \>= b69386fcbc6066fb4885667743ab4d4967d561b8, \< ee795e82e10197c070efd380dc9615c73dffad6c
- Anyone running Linux 6.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

spi: rockchip-sfc: Fix DMA-API usage

Use DMA-API dma\_map\_single() call for getting the DMA address of the
transfer buffer instead of hacking with virt\_to\_phys().

This fixes the following DMA-API debug warning:
------------\[ cut here \]------------
DMA-API: rockchip-sfc fe300000.spi: device driver tries to sync DMA memory it has not allocated \[device address=0x000000000cf70000\] \[size=288 bytes\]
WARNING: kernel/dma/debug.c:1106 at check\_sync+0x1d8/0x690, CPU\#2: systemd-udevd/151
Modules linked in: ...
Hardware name: Hardkernel ODROID-M1 (DT)
pstate: 604000c9 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : check\_sync+0x1d8/0x690
lr : check\_sync+0x1d8/0x690
..
Call trace:
 check\_sync+0x1d8/0x690 (P)
 debug\_dma\_sync\_single\_for\_cpu+0x84/0x8c
 \_\_dma\_sync\_single\_for\_cpu+0x88/0x234
 rockchip\_sfc\_exec\_mem\_op+0x4a0/0x798 \[spi\_rockchip\_sfc\]
 spi\_mem\_exec\_op+0x408/0x498
 spi\_nor\_read\_data+0x170/0x184
 spi\_nor\_read\_sfdp+0x74/0xe4
 spi\_nor\_parse\_sfdp+0x120/0x11f0
 spi\_nor\_sfdp\_init\_params\_deprecated+0x3c/0x8c
 spi\_nor\_scan+0x690/0xf88
 spi\_nor\_probe+0xe4/0x304
 spi\_mem\_probe+0x6c/0xa8
 spi\_probe+0x94/0xd4
 really\_probe+0xbc/0x298
 ...

## Affected and fixed versions

- Linux: \>= b69386fcbc6066fb4885667743ab4d4967d561b8, \< 22810d4cb0e8a7d51b24527e73beac60afc1c693; \>= b69386fcbc6066fb4885667743ab4d4967d561b8, \< ee795e82e10197c070efd380dc9615c73dffad6c (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40356. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40356.md
Affected: Linux >= b69386fcbc6066fb4885667743ab4d4967d561b8, < 22810d4cb0e8a7d51b24527e73beac60afc1c693; >= b69386fcbc6066fb4885667743ab4d4967d561b8, < ee795e82e10197c070efd380dc9615c73dffad6c; Linux 6.14
Fixed in: Linux 22810d4cb0e8a7d51b24527e73beac60afc1c693

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40356 being exploited?

There is no confirmed exploitation: CVE-2025-40356 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40356?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-40356?

Linux \>= b69386fcbc6066fb4885667743ab4d4967d561b8, \< 22810d4cb0e8a7d51b24527e73beac60afc1c693; \>= b69386fcbc6066fb4885667743ab4d4967d561b8, \< ee795e82e10197c070efd380dc9615c73dffad6c; Linux 6.14.

### Is there a fix for CVE-2025-40356?

Yes. Fixed in Linux 22810d4cb0e8a7d51b24527e73beac60afc1c693. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-40356?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/22810d4cb0e8a7d51b24527e73beac60afc1c693>
- other: <https://git.kernel.org/stable/c/ee795e82e10197c070efd380dc9615c73dffad6c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40356>

HTML: <https://flawdb.com/CVE-2025-40356> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40356>
