CVE-2025-40201
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability has been identified in the Linux kernel (CVE-2025-40201) related to the racy usage of tasklock(tsk->groupleader) in sys_prlimit64() paths. The issue was discovered and published to the CVE List on November 12, 2025 (NVD).

Technical details

The vulnerability exists in kernel/sys.c where the usage of tasklock(tsk->groupleader) in sysprlimit64()->doprlimit() path is broken. While sysprlimit64() obtains gettaskstruct(tsk), this only protects the taskstruct itself. When tsk is not the current task and not a leader, the process can exit/exec, potentially leading to the use of an already freed taskstruct. Additionally, sysprlimit64() can race with mt-exec which modifies ->groupleader, potentially resulting in taking the wrong lock or having ->groupleader change between tasklock() and taskunlock() (NVD).

Impact

If exploited, this vulnerability could lead to use-after-free conditions and race conditions in the Linux kernel's process limit handling functionality, potentially affecting system stability and security (NVD).

Mitigation and workarounds

The fix involves modifying sysprlimit64() to take tasklistlock when necessary. While this solution is noted as not being optimal, it has been implemented as the best available fix for stable kernel versions (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-40206N/AN/A
  • Linux KernelLinux Kernel
  • rtla
NoYesNov 12, 2025
CVE-2025-40205N/AN/A
  • Linux KernelLinux Kernel
  • kernel-kdump-devel
NoYesNov 12, 2025
CVE-2025-40204N/AN/A
  • Linux KernelLinux Kernel
  • kernel-firmware
NoYesNov 12, 2025
CVE-2025-40203N/AN/A
  • Linux KernelLinux Kernel
  • kernel-tools-libs
NoYesNov 12, 2025
CVE-2025-40201N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-core
NoYesNov 12, 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