CVE-2025-38407
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a vulnerability (CVE-2025-38407) was discovered that affects the RISC-V CPU operations when using SBI (Supervisor Binary Interface). The issue was identified on July 25, 2025, and affects systems with NUMA enabled or when using specific boot configurations (NVD).

Technical details

The vulnerability stems from an issue introduced by commit 6b9f29b81b15 ("riscv: Enable pcpu page first chunk allocator"). When NUMA is enabled or when the system is booted with percpualloc=page, the page percpu allocator places data in the vmalloc area. However, sbihsmhartstart() requires the physical address of sbihartbootdata and incorrectly assumes _pa() would work correctly. This assumption causes newly started harts to access invalid addresses and hang (NVD).

Impact

The vulnerability causes system hangs during SMP boot on affected RISC-V systems, particularly impacting NUMA configurations. This has been specifically confirmed to affect Sophgo SG2042 systems and can be reproduced on QEMU virtual machines (NVD).

Mitigation and workarounds

The vulnerability has been resolved by implementing a static array for bootdata in the kernel image, as struct sbihartbootdata is small enough to be allocated statically. This ensures the data remains in a valid address space (NVD).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-iot
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-devel-matched
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-hwe
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management