CVE-2025-38320
Linux Kernel vulnerability analysis and mitigation

Overview

A stack-out-of-bounds read vulnerability was discovered in the Linux kernel's arm64/ptrace functionality, specifically in the regsgetkernelstacknth() function. The vulnerability was assigned CVE-2025-38320 and was disclosed on July 10, 2025 (NVD, CVE).

Technical details

The vulnerability manifests as a KASAN-reported stack-out-of-bounds read in the regsgetkernelstacknth() function. The issue appears to be related to the behavior of some gcc compilers and was previously fixed on the s390 architecture. The bug occurs when reading a value at *addr, even though regsgetkernelstacknth() has confirmed that addr is on the stack. The issue was detected through KASAN (Kernel Address Sanitizer) reporting a stack-out-of-bounds read at address ffff800089277c10 (NVD).

Impact

The vulnerability could potentially lead to information disclosure through unauthorized memory access, as it allows reading memory outside the intended stack boundaries. This could expose sensitive kernel information to attackers (NVD).

Mitigation and workarounds

The fix involves using the READONCENOCHECK() helper to silence the KASAN check for this case, as the addr value has already been confirmed to be on the stack. This solution was implemented based on previous fixes for similar issues in the s390 architecture (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-40258HIGH7
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-devel-matched
NoNoDec 04, 2025
CVE-2025-40259MEDIUM6.2
  • Linux KernelLinux Kernel
  • kernel-rt-64k
NoNoDec 04, 2025
CVE-2025-40264MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-modules-extra
NoNoDec 04, 2025
CVE-2025-40254MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-devel-matched
NoNoDec 04, 2025
CVE-2025-40253MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules-partner
NoNoDec 04, 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