Skip to main content
VulnerabilityPublished Updated

CVE-2025-38434: Linux kernel · Revert "riscv: Define TASK_SIZE_MAX for __access_ok()

Source GCVE Database

0
Compare

Not known to be exploited · CVSS 5.5 Medium.

Data as of 13 Nov 2026, 20:34 UTC

CVSS 3.1 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

Community reviews

Loading reviews…