Skip to main content

Linux Kernel CVE-2025-40356

HIGH
2025-12-16 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local access to Rockchip device
  2. Delivery
    Trigger SPI-NOR flash memory operation
  3. Exploit
    Driver syncs unmapped DMA buffer
  4. Execution
    Mistranslated DMA address accesses kernel memory
  5. Impact
    Disclose or corrupt kernel memory

Vulnerability Assessment

Exploitation Conditions

Requires local access to a system running an affected Linux kernel with the Rockchip SFC SPI driver (spi-rockchip-sfc) loaded and the corresponding Rockchip SoC hardware with an attached SPI-NOR flash device (e.g. Hardkernel ODROID-M1). The vulnerable code path is in rockchip_sfc_exec_mem_op() and is reached through SPI-NOR flash memory operations (SFDP reads during probe). Per the CVSS vector (PR:L), some local privilege is required, so this is not remotely or unauthenticated-exploitable. Exploitation is strongly limited by the need for the specific Rockchip flash-controller hardware and driver, and no user interaction is required (UI:N).

Impact

The provided CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.8) describes a local, low-complexity, low-privilege issue with high confidentiality, integrity, and availability impact - a profile typical of kernel driver flaws. However, these signals conflict with the practical exploitation surface: the driver code path is exercised during SPI-NOR flash probing/SFDP reads, which is not attacker-controllable in normal operation and requires the specific Rockchip SFC hardware to be present. EPSS is very low (0.16%, 6th percentile) and there is no KEV listing and no known POC, consistent with a hardware-specific correctness bug rather than a broadly weaponizable vulnerability. The 'Information Disclosure' tag aligns with the C:H rating, but in practice the reported symptom is a DMA-API debug warning; whether real memory corruption or disclosure is reliably reachable by an unprivileged attacker is not established by the available data and should be verified against the specific SoC/IOMMU configuration.

Exploit ScenarioDerived

On a Rockchip-based device (e.g. ODROID-M1), the spi-rockchip-sfc driver performs an SPI-NOR SFDP read during flash probe and issues a DMA sync against a buffer obtained via virt_to_phys() rather than a properly mapped DMA handle, leading to DMA operations on incorrectly translated memory. A local attacker or fault condition on a system with an IOMMU could leverage the mistranslated DMA address to read or corrupt kernel memory. No public exploit code exists, and exploitation requires the specific hardware and local access consistent with the CVSS AV:L vector.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Local privilege-relevant memory corruption/disclosure risk exists in the Linux kernel's Rockchip SFC (Serial Flash Controller) SPI driver (spi-rockchip-sfc), where improper DMA-API usage - deriving DMA addresses via virt_to_phys() instead of dma_map_single() - causes the driver to sync DMA memory it never properly mapped. On affected Rockchip-based systems (e.g. ODROID-M1), this triggers a DMA-API debug warning and reflects an underlying unsafe memory-transfer path during SPI-NOR flash operations. No public exploit identified at time of analysis; EPSS probability is low (0.16%, 6th percentile).

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed. Apply the kernel stable-tree fixes referenced at https://git.kernel.org/stable/c/22810d4cb0e8a7d51b24527e73beac60afc1c693 and https://git.kernel.org/stable/c/ee795e82e10197c070efd380dc9615c73dffad6c, or update to a distribution kernel that has backported them. Because no exact fixed release tag is provided in the input, confirm the corresponding stable-kernel version with your distribution vendor before deployment. As a compensating control on affected Rockchip devices, unbind or blacklist the spi_rockchip_sfc module if the on-board SPI-NOR flash is not required - with the trade-off that any storage or boot dependency on that flash controller will be lost; there is no network-facing service to firewall since exploitation is local and hardware-bound.

Affected ProductsAI

The Linux kernel, specifically the Rockchip Serial Flash Controller SPI driver (spi-rockchip-sfc / spi_rockchip_sfc module) on Rockchip SoC platforms such as the Hardkernel ODROID-M1. No CPE strings were provided in the source data, and no exact affected version range or fixed tagged release is specified. The fix is tracked in the stable kernel tree via two commits: https://git.kernel.org/stable/c/22810d4cb0e8a7d51b24527e73beac60afc1c693 and https://git.kernel.org/stable/c/ee795e82e10197c070efd380dc9615c73dffad6c. Affected versions must be inferred as kernels containing the spi-rockchip-sfc driver prior to these patches.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the Rockchip Serial Flash Controller SPI driver (spi-rockchip-sfc) in the Linux kernel, used to interface with SPI-NOR flash memory on Rockchip SoCs. The bug lies in rockchip_sfc_exec_mem_op(), which previously used virt_to_phys() to obtain a bus/DMA address for the transfer buffer and then called dma_sync_single_for_cpu() on it. Because the buffer was never registered through the streaming DMA-API (dma_map_single()), the kernel's DMA debug layer flags a sync on unmapped memory, and on systems with IOMMUs or non-trivial DMA topologies the physical address from virt_to_phys() is not a valid DMA handle. The fix replaces the virt_to_phys() hack with a proper dma_map_single()/dma_unmap_single() pairing. The root-cause class is improper DMA memory management (analogous to CWE-822/CWE-125-style out-of-bounds or untranslated memory access); the CWE field is marked N/A in the source data.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 4.5 MEDIUM

Local hardware-bound driver bug requiring specific Rockchip SFC hardware and privileged flash operation, so AV:L, AC:H, PR:L; real disclosure/corruption impact is uncertain, rated Low.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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 ...

Executive ViewAI

Why It Matters

The Rockchip serial flash controller driver (spi-rockchip-sfc) in Linux contains a memory corruption vulnerability (CVSS 7.8) enabling local privilege escalation on affected systems. Organizations deploying Rockchip-based platforms such as ODROID-M1 face risk of unauthorized system access; while no public exploit has been identified, the lack of vendor patch coverage requires immediate defensive action. Affected deployments must prioritize inventory, hardening controls, and patch monitoring through vendor advisories.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Deploy compensating controls: enforce least-privilege account access and disable unnecessary local users on affected systems; deploy mandatory access control (AppArmor or SELinux) profiles restricting spi-rockchip-sfc driver access; disable SPI-NOR flash write operations if not operationally critical; isolate affected systems to networks with strict access controls; monitor system logs for DMA API debug warnings and privilege escalation attempts; evaluate alternative hardware platforms to reduce production Rockchip deployments where feasible.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
Linux kernel is ubiquitous, but this driver is specific to Rockchip SoC hardware
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy