CVE-2025-38407
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-38407 is a vulnerability in the Linux kernel's RISC-V architecture affecting the SBI (Supervisor Binary Interface) CPU operations during hart (hardware thread) startup. When NUMA is enabled and the percpu page allocator is used (placing percpu data in the vmalloc area), sbi_hsm_hart_start() incorrectly assumes __pa() can translate the virtual address of sbi_hart_boot_data to a physical address, causing secondary CPUs to access an invalid address and hang. Affected kernel versions include 6.8 through 6.12.36 and 6.13 through 6.15.5, as well as release candidates 6.16-rc1 through 6.16-rc4. The vulnerability was published on July 25, 2025, with a CVSS v3.1 base score of 5.5 (Medium) (Red Hat Advisory, Red Hat Bugzilla).

Technical details

The root cause is an improper physical address translation (CWE-119/incorrect memory handling) introduced after commit 6b9f29b81b15 ("riscv: Enable pcpu page first chunk allocator"). When CONFIG_NUMA=y is set and the page percpu allocator is active (either automatically on sparse NUMA configurations or via the percpu_alloc=page boot parameter), percpu data is placed in the vmalloc area rather than the linear kernel mapping. The sbi_hsm_hart_start() function then calls __pa() on a vmalloc address for sbi_hart_boot_data, which is only valid for linearly-mapped addresses — resulting in an invalid physical address being passed to the newly started hart. The fix replaces the percpu allocation with a statically allocated array in the kernel image, ensuring __pa() always operates on a linearly-mapped address (Red Hat Bugzilla, Red Hat Advisory).

Impact

Exploitation of this vulnerability results in a denial of service: secondary CPUs fail to come online during SMP boot on NUMA-enabled RISC-V systems, causing the system to boot with reduced CPU count or fail to boot entirely. The impact is limited to availability (CVSS availability impact: High), with no confidentiality or integrity impact. Real-world impact is primarily observed on Sophgo SG2042 hardware and reproducible on QEMU with CONFIG_NUMA=y and percpu_alloc=page (Red Hat Bugzilla, Red Hat Advisory).

Exploitability

There is no known public proof-of-concept exploit, and no evidence of in-the-wild exploitation has been reported. The vulnerability requires local access and low privileges (CVSS: AV:L/AC:L/PR:L), and is only triggered under specific hardware/configuration conditions (NUMA-enabled RISC-V systems with page percpu allocation). The EPSS score is 0.017% (0.000170), indicating very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog (Red Hat Advisory, Red Hat Bugzilla).

Mitigation and workarounds

Update to a patched Linux kernel version: 6.12.37 or later, or 6.15.6 or later. Patches are available via the upstream kernel stable tree (kernel.org patch 1, kernel.org patch 2, kernel.org patch 3). As a temporary workaround on unpatched systems, avoid using percpu_alloc=page as a kernel boot parameter on NUMA-enabled RISC-V configurations. Ubuntu has also issued a security notice (USN-7834-1) addressing this vulnerability (Red Hat Advisory).

Community reactions

Red Hat tracked the issue via Bugzilla (Bug 2383434) and published a CVE advisory. Ubuntu issued security notice USN-7834-1 covering this vulnerability. No significant broader community discussion or media coverage has been identified beyond standard vulnerability tracking (Red Hat Bugzilla, Ubuntu Advisory).

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-2026-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-core
NoYesAug 12, 2026
CVE-2026-68449NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 12, 2026
CVE-2026-68448NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesAug 12, 2026
CVE-2026-68447NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-modules
NoYesAug 12, 2026
CVE-2026-68446NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 12, 2026

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