CVE-2025-40008
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-40008 is a vulnerability discovered in the Linux kernel related to an out-of-bounds access to shadow memory. The issue was identified and disclosed on October 20, 2025, affecting the Linux kernel version 6.17.0-rc3 and earlier versions. The vulnerability specifically occurs in the kmsaninternalsetshadoworigin function when handling memory operations (NVD CVE).

Technical details

The vulnerability manifests when memset() is called on a buffer that is not 4-byte aligned and extends to the end of a guard page. The core issue lies in kmsaninternalsetshadoworigin() function, which incorrectly accesses shadow memory bytes when the address is not 4-byte aligned. While the function rounds the address and size to access origins containing the buffer, it erroneously uses the original unrounded shadow address, resulting in reads beyond the buffer's shadow memory boundary. This leads to a crash when accessing unmapped memory (NVD CVE, Red Hat).

Impact

The vulnerability results in a system crash due to accessing unmapped memory regions, causing a denial of service condition. According to Red Hat's assessment, this vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Moderate) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating local access required and high impact on availability (Red Hat).

Mitigation and workarounds

The vulnerability has been fixed in various Linux distributions. Debian has marked it as fixed in versions bullseye (5.10.223-1), forky (6.16.12-2), and sid (6.17.7-1). The fix involves correctly aligning the shadow address before accessing the 4 shadow bytes corresponding to each origin (Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59030HIGH7.5
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-59029MEDIUM5.3
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
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