CVE-2025-39756
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability has been identified in the Linux kernel (CVE-2025-39756) related to file descriptor table allocations. The issue was discovered and reported on September 11, 2025, affecting systems where sysctlnropen is set to very high values. When processes attempt to use file descriptors near the limit, they can trigger massive memory allocation attempts that exceed INT_MAX (NVD).

Technical details

The vulnerability occurs when sysctlnropen is set to a high value (e.g., 1073741816) and processes attempt to use file descriptors near this limit. The kernel attempts to allocate memory for the file descriptor array (1073741880 * 8 bytes = 8,589,935,040 bytes) plus additional bitmaps (~400MB), resulting in a total allocation size exceeding 8GB and INTMAX (2,147,483,647). This triggers a WARNING in mm/slub.c due to kvmallocarray() and kvmalloc() checks (NVD).

Impact

When exploited, this vulnerability can cause the kernel to attempt impractical memory allocations exceeding 8GB, which will always fail. This can lead to system warnings and potential resource exhaustion, particularly affecting programs and tests that legitimately test file descriptor limits (NVD).

Mitigation and workarounds

The fix involves adding a check in allocfdtable() to ensure the requested allocation size does not exceed INTMAX. This causes the operation to fail with -EMFILE instead of triggering a kernel warning, preventing the impractical memory allocation request (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-40258HIGH7
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-devel-matched
NoNoDec 04, 2025
CVE-2025-40259MEDIUM6.2
  • Linux KernelLinux Kernel
  • kernel-rt-64k
NoNoDec 04, 2025
CVE-2025-40264MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-modules-extra
NoNoDec 04, 2025
CVE-2025-40254MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-devel-matched
NoNoDec 04, 2025
CVE-2025-40253MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules-partner
NoNoDec 04, 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