CVE-2025-38434
published high CVSS 3.1 · 7.8Revert "riscv: Define TASK_SIZE_MAX for __access_ok()"
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxad5643cf2f699989daa85d909403febd6712fccb to < fe30c30bf3bb68d4a4d8c7c814769857b5c973e6 · ad5643cf2f699989daa85d909403febd6712fccb to < f8b1898748dfeb4f9b67b6a6d661f354b9de3523 · ad5643cf2f699989daa85d909403febd6712fccb to < 890ba5be6335dbbbc99af14ea007befb5f83f174 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.10 (affected) · 0 to < 6.10 (unaffected · semver) · 6.12.36 through 6.12.* (unaffected · semver) · 6.15.5 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | noble | linux-aws-6.14 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-aws-6.14-cloud-tools-6.14.0-1015 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-aws-6.14-headers-6.14.0-1015 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-aws-6.14-tools-6.14.0-1015 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
Show 92 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | linux-azure-6.14 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-azure-6.14-cloud-tools-6.14.0-1014 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-azure-6.14-headers-6.14.0-1014 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-azure-6.14-tools-6.14.0-1014 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-azure-nvidia-6.14 | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-azure-nvidia-6.14-cloud-tools-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-azure-nvidia-6.14-headers-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-azure-nvidia-6.14-tools-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1015-oracle | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1015-oracle-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1018-gcp-64k | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-gcp-6.14 | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-gcp-6.14-headers-6.14.0-1018 | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-gcp-6.14-tools-6.14.0-1018 | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-headers-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-headers-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-headers-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-headers-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-headers-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-headers-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-headers-6.14.0-1015-oracle | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-headers-6.14.0-1015-oracle-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-headers-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-headers-6.14.0-1018-gcp-64k | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1015-oracle | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1015-oracle-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1018-gcp-64k | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-lib-rust-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-modules-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-modules-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-modules-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-modules-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-modules-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-modules-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-modules-6.14.0-1015-oracle | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-modules-6.14.0-1015-oracle-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-modules-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-modules-6.14.0-1018-gcp-64k | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1015-oracle | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1015-oracle-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1018-gcp-64k | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-modules-ipu6-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-modules-ipu7-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-modules-iwlwifi-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-modules-iwlwifi-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-modules-usbio-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-modules-vision-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-oem-6.14 | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-oem-6.14-headers-6.14.0-1014 | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-oem-6.14-tools-6.14.0-1014 | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-oracle-6.14 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-oracle-6.14-headers-6.14.0-1015 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-oracle-6.14-tools-6.14.0-1015 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-realtime-6.14 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-realtime-6.14-cloud-tools-6.14.0-1014 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-realtime-6.14-headers-6.14.0-1014 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-realtime-6.14-tools-6.14.0-1014 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-tools-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-tools-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-tools-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-tools-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-tools-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-tools-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-tools-6.14.0-1015-oracle | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-tools-6.14.0-1015-oracle-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-tools-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-tools-6.14.0-1018-gcp-64k | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
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 to the default: TASK_SIZE. This unfortunately reduces performance, because TASK_SIZE is more expensive to compute compared to LONG_MAX. But correctness first, we can think about optimization later, if required.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is reached only through local syscalls (futex(), read()/write() with user iovecs, io_uring fixed-buffer registration) in which the attacker supplies a crafted userspace virtual address; there is no network path to the vulnerable get_user_pages_fast() check. AC:L - Exploitation is fully deterministic — the attacker simply passes an address in [TASK_SIZE, LONG_MAX] to a gup_fast user; there is no race and no attacker-uncontrolled condition on an affected RISC-V 64-bit kernel. PR:L - Any unprivileged local user can invoke the affected syscalls (futex, read/write, io_uring); no capabilities or elevated privileges are required. UI:N - The attacker triggers the flaw entirely through their own syscalls with no action required from any other user. S:U - The vulnerability and its impact are both contained within the OS kernel's security authority; this is a standard in-kernel memory-safety boundary bug, not a VM/sandbox escape. C:H - The flaw lets an unprivileged user pin present kernel PTEs (the generic pte_access_permitted() does not check _PAGE_USER) and read arbitrary kernel memory out via write()-style transfers, a full kernel-memory disclosure primitive. I:H - Using FOLL_WRITE paths (e.g. read() into the crafted buffer) the same walk pins writable kernel pages, allowing attacker-controlled data to be written into kernel memory — an arbitrary kernel write enabling privilege escalation. A:H - Walking into the kernel half of the page tables and corrupting or dereferencing kernel structures can trivially oops/panic the kernel.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | ad5643cf2f699989daa85d909403febd6712fccb to < fe30c30bf3bb68d4a4d8c7c814769857b5c973e6 (affected · git)ad5643cf2f699989daa85d909403febd6712fccb to < f8b1898748dfeb4f9b67b6a6d661f354b9de3523 (affected · git)ad5643cf2f699989daa85d909403febd6712fccb to < 890ba5be6335dbbbc99af14ea007befb5f83f174 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.10 (affected)0 to < 6.10 (unaffected · semver)6.12.36 through 6.12.* (unaffected · semver)6.15.5 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
Revert "riscv: Define TASK_SIZE_MAX for __access_ok()"
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6f42566327d5593d9624d782df5876469d7214f39376e9f084315084ec86a546
- Ingested
- 23 Sep 2026, 08:46:47 UTC
- Source record
- Official CVE record