CVE-2025-40201
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability in the Linux kernel's sysprlimit64() function was discovered and assigned CVE-2025-40201. The issue was disclosed on November 12, 2025, affecting the kernel/sys.c component. This vulnerability involves a race condition in the usage of tasklock(tsk->groupleader) in sysprlimit64() paths (NVD).

Technical details

The vulnerability stems from a broken implementation in the sysprlimit64()->doprlimit() path. While sysprlimit64() obtains taskstruct(tsk), this only protects the taskstruct itself. When tsk is not the current process or leader, process exit/exec operations can lead to using an already freed taskstruct. Additionally, there's a race condition with mt-exec that modifies groupleader, potentially causing doprlimit() to take the wrong lock or experience groupleader changes between tasklock() and task_unlock() operations (NVD).

Impact

The vulnerability could lead to use-after-free conditions and race conditions in the Linux kernel, potentially affecting system stability and security. The issue is particularly concerning as it involves core kernel functionality related to process management (NVD).

Mitigation and workarounds

The fix involves modifying sysprlimit64() to take tasklistlock when necessary. While this solution is noted as not being ideal, it was deemed the most appropriate 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-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-iot
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-devel-matched
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-hwe
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesDec 09, 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