Skip to main content

Linux Kernel CVE-2025-40182

HIGH
2025-11-12 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-privileged shell
  2. Delivery
    Open AF_ALG skcipher socket
  3. Exploit
    Select vulnerable cra_reqsize algorithm
  4. Execution
    Submit crypto request with undersized reqsize
  5. Persist
    Trigger out-of-bounds kernel write
  6. Impact
    Crash kernel or corrupt memory

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access and the ability to invoke an skcipher (symmetric block cipher) operation through the kernel Crypto API - typically via the AF_ALG/algif_skcipher userspace interface, which is reachable by unprivileged local users when CONFIG_CRYPTO_USER_API_SKCIPHER is enabled. The decisive prerequisite is that the targeted skcipher algorithm/driver declares its request size using the new cra_reqsize field (from commit afddce13ce81d) rather than crypto_skcipher_set_reqsize(); only such algorithms undersize the request buffer and corrupt memory. Limiting factors: the attack is local only (AV:L - no remote/network path), requires the vulnerable cra_reqsize-based skcipher to actually be present and selectable in the running kernel (a narrow, recent-regression configuration, not all Linux builds), and requires the crypto path to be exercisable by the attacker; kernels still using crypto_skcipher_set_reqsize() for their skciphers are not affected.

Impact

Signals are broadly consistent but point to modest real-world priority. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H = 7.8 High) reflects that a local, low-privileged user can trigger full-impact kernel memory corruption without user interaction - a serious local flaw but not remotely reachable. Countering the high CVSS, EPSS is 0.03% (10th percentile), the CVE is absent from CISA KEV, and no POC/exploit is identified, so there is no evidence of active or imminent exploitation. There is a notable nuance: the CVSS C:H/I:H/A:H implies full confidentiality/integrity compromise, but the supplied tags and the bug's nature suggest the realistic outcome is denial of service (crash) rather than reliable code execution - weaponizing kernel heap corruption for privilege escalation is non-trivial and configuration-dependent. No SSVC decision data, KEV entry, or CWE was provided, so automatable/technical-impact scoring cannot be independently corroborated. Net: real but low-urgency; patch during normal kernel maintenance rather than emergency response.

Exploit ScenarioDerived

A low-privileged local user on a system running a vulnerable kernel opens an AF_ALG socket and requests an skcipher algorithm whose driver declared cra_reqsize, then submits an encryption/decryption request; the framework allocates an undersized request buffer and the algorithm writes past it, corrupting adjacent kernel memory and crashing the system (or, with careful heap grooming, potentially escalating privileges). No user interaction or elevated privileges are required, but local access to the machine is. No public exploit code has been identified.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jul 30, 2026

Local privilege-escalation and memory-corruption in the Linux kernel's crypto skcipher (symmetric block cipher) framework allows a low-privileged local user to corrupt kernel memory by exercising an skcipher algorithm that declares its request size via the new cra_reqsize field. The regression stems from commit afddce13ce81d, which added cra_reqsize for ahash/acomp but left skcipher's framework paths unaware of it, so per-request scratch buffers are undersized. EPSS is negligible (0.03%), the issue is not on the CISA KEV list, and no public exploit is identified - the tags characterize the practical outcome as denial of service (kernel crash), though memory corruption leaves privilege escalation theoretically possible.

Earlier versions of this analysis (2)
v2 Jul 30, 2026 - 08:36 cvss changed CVSS 7.8

Memory corruption in the Linux kernel's crypto skcipher framework arises from a regression introduced by commit afddce13ce81d, which added the cra_reqsize field to crypto_alg for ahash/acomp but left the skcipher framework unable to translate that value into a correctly sized request context. When an skcipher algorithm sets reqsize via cra_reqsize instead of crypto_skcipher_set_reqsize(), the framework under-allocates request state, causing memory corruption and kernel crashes reachable by a local user driving the crypto API. EPSS is 0.03% (10th percentile) and there is no public exploit identified at time of analysis; the issue is tagged as Denial of Service.

v1 Mar 28, 2026 - 19:21

In the Linux kernel, the following vulnerability has been resolved: crypto: skcipher - Fix reqsize handling Commit afddce13ce81d ("crypto: api - Add reqsize to crypto_alg") introduced cra_reqsize. No vendor patch available.

RemediationAI

Upstream fix available (commits); a released/tagged patched version is not independently confirmed from the provided data - apply the stable-tree fix referenced at https://git.kernel.org/stable/c/229c586b5e86979badb7cb0d38717b88a9e95ddd and https://git.kernel.org/stable/c/f041339d6b9a5a46437f0c48fc7279c92af7a513, or upgrade to the distribution kernel that incorporates it once your vendor (e.g., Debian, Ubuntu, RHEL, SUSE) publishes the backport. Until patched, reduce exposure by restricting unprivileged access to the userspace crypto interface: disable or block the AF_ALG socket family (CONFIG_CRYPTO_USER_API / algif_skcipher) if not required, which prevents unprivileged userspace from directly driving skcipher algorithms but will break applications that legitimately use AF_ALG; alternatively confine access with seccomp/LSM policies to deny the affected syscall paths, accepting the maintenance overhead of profiling legitimate callers. Because the flaw is local-only, hardening multi-tenant and untrusted-shell environments (avoiding shared kernels with untrusted local users) is the most effective compensating control.

Affected ProductsAI

The affected product is the Linux kernel, specifically the crypto/skcipher symmetric-cipher framework, in versions that adopted the cra_reqsize field from commit afddce13ce81d ('crypto: api - Add reqsize to crypto_alg') for skcipher algorithms. No CPE strings, exact tagged version numbers, or distribution-specific advisories were provided in the input; affected versions must be derived from the introducing commit and the stable-tree fix commits at https://git.kernel.org/stable/c/229c586b5e86979badb7cb0d38717b88a9e95ddd and https://git.kernel.org/stable/c/f041339d6b9a5a46437f0c48fc7279c92af7a513. Any kernel build or driver that registers an skcipher algorithm declaring cra_reqsize instead of calling crypto_skcipher_set_reqsize() is exposed.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Linux kernel Crypto API lets each algorithm advertise how much per-request context memory the framework must allocate. Historically skcipher used crypto_skcipher_set_reqsize(); commit afddce13ce81d introduced a generic cra_reqsize field in the crypto_alg struct intended for the ahash and acomp frameworks, whose subsequent commits taught those frameworks to honor it. Community guidance then recommended cra_reqsize for all algorithms, but the skcipher framework's init/allocation code was never updated to read cra_reqsize, so an skcipher driver that sets only cra_reqsize ends up with a request object smaller than the algorithm expects. The resulting out-of-bounds access when the algorithm writes into its request context is a classic buffer-size/initialization mismatch (root-cause class akin to CWE-131 incorrect buffer-size calculation / CWE-665 improper initialization leading to CWE-787 out-of-bounds write); CWE is listed as N/A by the source. The fix adds explicit crypto_skcipher_set_reqsize() calls in the skcipher init path so reqsize is populated correctly regardless of how the driver declared it.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local unprivileged user can reach skcipher via AF_ALG (AV:L, PR:L, AC:L) and corrupt kernel memory; realistic outcome is DoS but corruption justifies retaining C:H/I:H/A:H.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Red Hat 5.5 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Jul 30, 2026 - 08:39 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 30, 2026 - 08:36 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
CVE Published
Nov 12, 2025 - 22:15 nvd
N/A

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

crypto: skcipher - Fix reqsize handling

Commit afddce13ce81d ("crypto: api - Add reqsize to crypto_alg") introduced cra_reqsize field in crypto_alg struct to replace type specific reqsize fields. It looks like this was introduced specifically for ahash and acomp from the commit description as subsequent commits add necessary changes in these alg frameworks.

However, this is being recommended for use in all crypto algs [1] instead of setting reqsize using crypto_*_set_reqsize(). Using cra_reqsize in skcipher algorithms, hence, causes memory corruptions and crashes as the underlying functions in the algorithm framework have not been updated to set the reqsize properly from cra_reqsize. [2]

Add proper set_reqsize calls in the skcipher init function to properly initialize reqsize for these algorithms in the framework.

[1]: https://lore.kernel.org/linux-crypto/aCL8BxpHr5OpT04k@gondor.apana.org.au/ [2]: https://gist.github.com/Pratham-T/24247446f1faf4b7843e4014d5089f6b

Executive ViewAI

Why It Matters

A critical kernel vulnerability (CVE-2025-40182, CVSS 7.8) in Linux kernel cryptography allows authenticated local users to crash systems and potentially escalate privileges, impacting multi-user and cloud infrastructure stability and access controls. No vendor patch currently available; practical risk is elevated for environments permitting local user access.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: restrict unprivileged local user access on critical systems; deploy kernel crash monitoring and alerting to detect potential exploitation; apply OS-level hardening (SELinux, AppArmor) to constrain privilege escalation; isolate services using separate container security contexts; if operationally viable, disable skcipher algorithm support. Establish daily checks of vendor security advisories.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Prevalence
Ubiquitous
Linux kernel is ubiquitous, though only recent kernels with the cra_reqsize skcipher regression are affected
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy