CVE-2025-40052
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40052 is a vulnerability in the Linux kernel affecting the SMB client implementation. The issue was discovered and disclosed on October 28, 2025, and involves improper handling of crypto buffers in non-linear memory (NVD).

Technical details

The vulnerability stems from the crypto API's expectation of input buffers to be in linear memory through the scatterlist API. While the cifs_sg_set_buf() helper converts vmalloc'd memory to corresponding pages, the allocation of aead_request buffer (@creq in smb2ops.c::crypt_message()) using kvzalloc() can place aead_request->__ctx in vmalloc area. This becomes problematic when tasks' stacks are vmalloc'd by default (CONFIG_VMAP_STACK=y), causing virt_addr_valid(buf) to fail when stack addresses increment beyond a certain point (NVD).

Impact

When triggered, this vulnerability causes a kernel BUG() in sg_set_buf(), leading to system crashes. The issue manifests particularly during parallel reads and writes on an encrypted mount, potentially affecting system stability and availability (NVD).

Mitigation and workarounds

The fix involves modifying the allocation method for @creq to always use kmalloc() instead of kvzalloc(). Additionally, the @sensitive_size variable/arguments have been removed as kfree_sensitive() doesn't require them (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-68753HIGH7.8
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68756HIGH7.1
  • Linux KernelLinux Kernel
  • linux-oracle
NoYesJan 05, 2026
CVE-2025-68764MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68758MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel
NoYesJan 05, 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