CVE-2025-40182
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-40182 is a memory corruption vulnerability in the Linux kernel's symmetric key cipher (skcipher) framework, caused by improper request size (reqsize) initialization. The flaw was introduced when commit afddce13ce81d added the cra_reqsize field to the crypto_alg struct, which was intended for ahash and acomp algorithm types but was incorrectly recommended for use in all crypto algorithms including skcipher. When cra_reqsize is used in skcipher algorithms without the corresponding framework-level initialization, memory corruptions and kernel crashes result. The vulnerability was published on November 12, 2025, and affects Linux kernel versions from commit afddce13ce81d52a13898fa0700917835c71acd6 up to the fix commits. No CVSS score has been assigned by NVD at this time; the EPSS score is 0.00018 (very low) (Feedly, NVD).

Technical details

The root cause is improper initialization of the reqsize field in the Linux kernel's skcipher algorithm framework (CWE not formally assigned by NVD). When a skcipher algorithm driver sets cra_reqsize in the crypto_alg struct instead of calling crypto_skcipher_set_reqsize(), the skcipher framework's init function does not propagate this value correctly, leaving the request context buffer undersized or uninitialized. Subsequent cryptographic operations that rely on the request context then access out-of-bounds memory, leading to memory corruption and potential kernel crashes. The fix adds proper set_reqsize calls in the skcipher init function to correctly initialize reqsize from cra_reqsize for affected algorithms. A crash reproduction case is publicly documented by the reporter (Feedly, NVD, Crash PoC).

Impact

Successful triggering of this vulnerability results in kernel memory corruption and system crashes (denial of service). Because the corruption occurs in kernel memory during cryptographic request processing, it could potentially be leveraged for privilege escalation or information disclosure depending on the specific memory layout, though no such exploitation has been demonstrated publicly. The impact is primarily an availability concern — affected systems using skcipher algorithms with cra_reqsize set may experience unexpected kernel panics or instability (Feedly, NVD).

Exploitability

There is no evidence of active in-the-wild exploitation of CVE-2025-40182. A crash reproduction proof-of-concept is publicly available via a GitHub Gist linked in the kernel commit message, demonstrating the memory corruption and crash behavior. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is 0.00018, indicating a very low probability of exploitation in the near term. Detection plugins are available from Nessus (plugin 275344) and Qualys (IDs 6031981, 6032019) (Feedly, Tenable, Crash PoC).

Mitigation and workarounds

The fix is included in Linux kernel stable commits f041339d6b9a5a46437f0c48fc7279c92af7a513 and 229c586b5e86979badb7cb0d38717b88a9e95ddd, and is present in kernel version 6.17.4 and the 6.18-rc1 release. Administrators should update to a patched kernel version as soon as it is available for their distribution. As a workaround, avoid using cra_reqsize in skcipher algorithm drivers and use crypto_skcipher_set_reqsize() instead, as recommended by the upstream fix (Feedly, Kernel Patch 1, Kernel Patch 2).

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-2026-63343CRITICAL9.9
  • Linux Debian logoLinux Debian
  • incus
NoYesAug 21, 2026
CVE-2026-63125CRITICAL9.9
  • Linux Debian logoLinux Debian
  • incus
NoYesAug 21, 2026
CVE-2026-62941CRITICAL9.9
  • Linux Debian logoLinux Debian
  • incus
NoYesAug 21, 2026
CVE-2026-62940CRITICAL9.9
  • Linux Debian logoLinux Debian
  • incus
NoYesAug 21, 2026
CVE-2026-62867CRITICAL9.9
  • Linux Debian logoLinux Debian
  • incus
NoYesAug 21, 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