Menu

Star on GitHub · 3.3k

CVE-2025-38434

7.8 · HIGH

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 __acc…

Published Jul 25, 2025EPSS 0.19%

Overview

CVE-2025-38434 is a high-severity vulnerability. It was published on July 25, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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()").

This commit changes TASK_SIZE_MAX to be LONG_MAX to optimize access_ok(),

because the previous TASK_SIZE_MAX (default to TASK_SIZE) requires some

computation.

The reasoning was that all user addresses are less than LONG_MAX, and all

kernel addresses are greater than LONG_MAX. Therefore access_ok() can

filter kernel addresses.

Addresses between TASK_SIZE and LONG_MAX are not valid user addresses, but

access_ok() let them pass. That was thought to be okay, because they are

not valid addresses at hardware level.

Unfortunately, one case is missed: get_user_pages_fast() happily accepts

addresses between TASK_SIZE and LONG_MAX. futex(), for instance, uses

get_user_pages_fast(). This causes the problem reported by Robert [1].

Therefore, revert this commit. TASK_SIZE_MAX is changed t

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-38434?

CVE-2025-38434 is a high-severity vulnerability. It was published on July 25, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-38434?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-38434?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-38434?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-38434 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2025

View all