Skip to main content

Linux Kernel CVE-2025-40201

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
    Obtain unprivileged local shell
  2. Delivery
    Call prlimit64 on non-leader task
  3. Exploit
    Race target through exit/mt-exec
  4. Execution
    Trigger use-after-free on group_leader
  5. Persist
    Corrupt kernel memory or leak data
  6. Impact
    Escalate privileges or crash host

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local code execution as an unprivileged user (CVSS PR:L, AV:L) and the ability to call prlimit64() against a target task that is NOT the thread-group leader (tsk != current and tsk not a leader). The attacker must win a timing race in which the target process exits, execs, or performs a multithreaded exec that frees or reassigns ->group_leader concurrently with the syscall. Limiting factors: no remote vector (local access is mandatory), no privilege beyond a normal account, and no user interaction, but success is probabilistic and depends on hitting the narrow exit/exec window, so exploitation is non-deterministic and may require many attempts. Systems whose only local users are trusted have substantially reduced real-world exposure.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.8 HIGH) indicates a local, low-complexity, low-privilege attack with full CIA impact - consistent with a kernel use-after-free that can lead to memory disclosure, corruption, or crash. Counterbalancing signals are strong: EPSS is only 0.03% (10th percentile), there is no CISA KEV listing, and no public exploit is identified at time of analysis, so this is not a widespread or actively exploited threat. However, races of this class are non-deterministic and can be difficult but not impossible to weaponize into local privilege escalation, so the low EPSS likely reflects exploitation effort/reliability rather than harmlessness. One inconsistency to flag: the input tags this 'Information Disclosure' while the CVSS asserts I:H and A:H - the integrity and availability impact should not be dismissed; treat the tag as incomplete. Also note the CVSS marks AC:L whereas the race-window dependency arguably implies higher attack complexity. Overall this is a real but non-urgent priority: patch on normal kernel-update cadence, prioritizing multi-tenant and untrusted-local-user hosts.

Exploit ScenarioDerived

A logged-in local user with an unprivileged account invokes prlimit64() against a target process it can address, then races that target through an exit or multithreaded exec so the kernel operates on a freed or reassigned group_leader task_struct. By winning the race repeatedly, the attacker turns the use-after-free into kernel memory corruption or information disclosure, potentially escalating privileges or crashing the host. No public exploit is identified at time of analysis, and reliable exploitation requires precise timing against the exit/exec window.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – Jul 30, 2026

Local memory corruption in the Linux kernel's resource-limit syscall (prlimit64) stems from unsafe locking in the sys_prlimit64()->do_prlimit() path, where task_lock(tsk->group_leader) can operate on an already-freed or concurrently-changed task_struct. When a low-privileged local user targets another process that exits, execs, or performs a multithreaded exec, the kernel may take the wrong lock or dereference freed memory, enabling a use-after-free race. No public exploit is identified at time of analysis and EPSS exploitation probability is very low (0.03%), but the CVSS 3.1 score of 7.8 reflects high confidentiality, integrity, and availability impact via local access.

Earlier versions of this analysis (1)
v1 Mar 28, 2026 - 19:21

In the Linux kernel, the following vulnerability has been resolved: kernel/sys.c: fix the racy usage of task_lock(tsk->group_leader) in sys_prlimit64() paths The usage of task_lock(tsk->group_leader).

RemediationAI

Patch available per vendor advisory: apply the fixed kernel packages from your distribution. Ubuntu users should update to the kernel versions specified in USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1) and reboot into the new kernel. Users building from source should incorporate the upstream stable fixes referenced by the git.kernel.org commits (e.g. 132f827e7bac7373e1522e89709d70b43cae5342 and the related backports) that change sys_prlimit64() to take tasklist_lock; a specific tagged release version is not independently confirmed from the input, so match the backport to your maintained stable branch. Because exploitation requires a local unprivileged account, an effective interim compensating control is to minimize untrusted local users and restrict shell access on multi-tenant systems; there is no practical way to disable the prlimit64 syscall globally without breaking legitimate resource-limit management, so reducing local attack surface (fewer local accounts, containerizing untrusted workloads and using seccomp to filter prlimit64 for them) is the realistic mitigation, at the cost of blocking legitimate use of that syscall inside those sandboxes.

Affected ProductsAI

The affected product is the mainline and stable Linux kernel, specifically the resource-limit handling in kernel/sys.c. Exact vulnerable version ranges are not enumerated in the provided NVD data, which supplies only the stable-tree fix commits (git.kernel.org/stable/c/132f827e7bac7373e1522e89709d70b43cae5342, 19b45c84bd9fd42fa97ff80c6350d604cb871c75, 1bc0d9315ef5296abb2c9fd840336255850ded18, 6796412decd2d8de8ec708213bbc958fab72f143, and a15f37a40145c986cdf289a4b88390f35efdecc4) across multiple stable branches. Distribution exposure is confirmed for Ubuntu via advisories USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1); administrators should consult those notices for the exact Ubuntu kernel package versions fixed. No CPE strings were provided in the input.

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 flaw lives in kernel/sys.c in the implementation of the prlimit64(2) system call, which reads and modifies per-process RLIMIT resource limits. sys_prlimit64() calls get_task_struct(tsk) to pin the target task_struct, but this reference only protects that single structure - not tsk->group_leader, which is a separate task. When the target is not the thread-group leader, the target process can exit or exec and free the leader's task_struct before or during task_lock(tsk->group_leader), producing a use-after-free. A second race occurs against multithreaded exec (de_thread), which reassigns ->group_leader: do_prlimit() may lock a stale leader, or the leader pointer may change between task_lock() and task_unlock(), corrupting lock state. The upstream fix reworks sys_prlimit64() to hold tasklist_lock when necessary so the group_leader pointer and task_struct lifetime are stabilized. This is a classic concurrency/lifetime bug (use-after-free / race condition, CWE-416/CWE-362), though the input lists CWE as N/A and tags it 'Information Disclosure', which understates the integrity/availability impact.

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.0 HIGH

Local unprivileged access (AV:L/PR:L); AC:H because exploitation depends on winning a narrow exit/exec race; kernel use-after-free yields full C/I/A impact.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 5.8 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:26 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 28, 2026 - 19:31 nvd
Patch available
CVE Published
Nov 12, 2025 - 22:15 nvd
N/A

DescriptionCVE.org

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

kernel/sys.c: fix the racy usage of task_lock(tsk->group_leader) in sys_prlimit64() paths

The usage of task_lock(tsk->group_leader) in sys_prlimit64()->do_prlimit() path is very broken.

sys_prlimit64() does get_task_struct(tsk) but this only protects task_struct itself. If tsk != current and tsk is not a leader, this process can exit/exec and task_lock(tsk->group_leader) may use the already freed task_struct.

Another problem is that sys_prlimit64() can race with mt-exec which changes ->group_leader. In this case do_prlimit() may take the wrong lock, or (worse) ->group_leader may change between task_lock() and task_unlock().

Change sys_prlimit64() to take tasklist_lock when necessary. This is not nice, but I don't see a better fix for -stable.

Executive ViewAI

Why It Matters

CVE-2025-40201 is a kernel vulnerability that could disrupt Linux systems or expose sensitive data through malicious local access; no public exploit identified at time of analysis. Organizations running Linux servers should prioritize patching to maintain uptime and protect data integrity across their infrastructure.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Prevalence
Ubiquitous
Linux kernel runs on nearly all servers, containers, and cloud hosts
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 Yes
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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.1/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.127 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.114 Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.144 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.116 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.161 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.107 Affected
Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-EC2 Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-Azure-llc Image SUSE-Multi-Linux-Manager-Server-Azure-ltd Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd Affected

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