Critical Vulnerability in Linux Kernel: TASK_SIZE_MAX Reversion

linux Updated 02 Oct 2025

Summary

25/07/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2025-38434: In the Linux kernel, the following vulnerability has been resolved: Revert "riscv: Define TASK_SIZE_MAX for access_ok()" This reverts commit ad5643cf2f69 ("riscv: Define TASK_SIZE_MAX for access_ok()"). Affects linux versions < 6.12.37-1. Fixed in 6.12.37-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core component of the Linux operating system, managing system resources and facilitating communication between hardware and software. It is widely used in various distributions, including Debian. The kernel is responsible for critical functions such as process management, memory management, and device control. This vulnerability affects the Linux kernel versions in Debian 13 and 14, specifically related to the handling of user address validation, which could lead to security risks if exploited.

Vulnerability Detail

In the Linux kernel, a vulnerability was identified due to a change in the TASK_SIZE_MAX definition, which was reverted to its default value. The original change aimed to optimize the access_ok() function by setting TASK_SIZE_MAX to LONG_MAX, under the assumption that all user addresses are less than LONG_MAX. However, this led to a flaw where addresses between TASK_SIZE and LONG_MAX were incorrectly accepted by the get_user_pages_fast() function, potentially allowing unauthorized access to kernel memory. This issue was reported by Robert and highlights the importance of address validation in maintaining system security.

How To Fix

Minimum fixed version

6.12.37-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds provided for this vulnerability. The best course of action is to apply the patch by updating the Linux kernel as described above.

Conclusion

The vulnerability in the Linux kernel regarding TASK_SIZE_MAX poses significant security risks, allowing potential unauthorized access to kernel memory. Users are strongly advised to update their kernel to the patched version to ensure system integrity and security. Regular monitoring of vulnerabilities using tools like Vulert can help maintain awareness and prompt action against such issues.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability could allow unauthorized access to kernel memory, potentially leading to privilege escalation or system instability.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

The vulnerability affects the Linux kernel versions in Debian 13 and 14 prior to the patch version 6.12.37-1.

Yes, reverting TASK_SIZE_MAX to TASK_SIZE may reduce performance due to the increased computational cost compared to using LONG_MAX.

While there are no specific workarounds, it is crucial to plan for an update as soon as possible to mitigate the risks associated with this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.12.37-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback