CVE-2025-38434: Linux kernel · Revert "riscv: Define TASK_SIZE_MAX for __access_ok()
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 13 Nov 2026, 20:34 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 25 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
AI-suggested
A fix is available that reverts the problematic commit, restoring TASK_SIZE_MAX to TASK_SIZE to ensure correct address validation. Users should apply this revert patch to their Linux kernel to mitigate the issue. No other mitigation is indicated.
Description
CVE-2025-38434 is a vulnerability in the Linux kernel related to the incorrect definition of TASK_SIZE_MAX in the riscv architecture. A previous commit changed TASK_SIZE_MAX to LONG_MAX to optimize the access_ok() function, but this allowed addresses between TASK_SIZE and LONG_MAX, which are invalid user addresses, to pass unchecked. This caused issues with functions like get_user_pages_fast() used by futex(), potentially leading to denial of service. The fix reverts the commit, restoring TASK_SIZE_MAX to TASK_SIZE to ensure correctness at the cost of some performance.
References
- nvd.nist.gov/vuln/detail/CVE-2025-38434 (opens in a new tab)
- git.kernel.org/stable/c/890ba5be6335dbbbc99af14ea007befb5f83f174 (opens in a new tab)
- git.kernel.org/stable/c/f8b1898748dfeb4f9b67b6a6d661f354b9de3523 (opens in a new tab)
- git.kernel.org/stable/c/fe30c30bf3bb68d4a4d8c7c814769857b5c973e6 (opens in a new tab)