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.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux | Jul 23, 2026 | Jul 23, 2026 |
| Ubuntu | — | Upgrade linux-image-6.14.0-1014-oemUpgrade linux-image-oem-24.04Upgrade linux-image-oem-24.04aUpgrade linux-image-6.14.0-34-generic-64kUpgrade linux-image-azure-6.14Upgrade linux-image-aws-64kUpgrade linux-image-generic-64kUpgrade linux-image-generic-6.14Upgrade linux-image-oracle-64kUpgrade linux-image-raspiUpgrade linux-image-6.14.0-1018-gcp-64kUpgrade linux-image-realtime-hwe-24.04Upgrade linux-image-gcp-64k-6.14Upgrade linux-image-6.14.0-1015-oracleUpgrade linux-image-gcpUpgrade linux-image-gcp-6.14Upgrade linux-image-6.14.0-1015-oracle-64kUpgrade linux-image-6.14.0-1007-azure-nvidiaUpgrade linux-image-genericUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-raspi-6.14Upgrade linux-image-6.14.0-1014-realtimeUpgrade linux-image-azureUpgrade linux-image-gcp-64kUpgrade linux-image-azure-nvidiaUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-realtime-6.14Upgrade linux-image-realtimeUpgrade linux-image-6.14.0-1015-awsUpgrade linux-image-6.14.0-1014-azureUpgrade linux-image-oracle-6.14Upgrade linux-image-aws-64k-6.14Upgrade linux-image-virtual-6.14Upgrade linux-image-awsUpgrade linux-image-6.14.0-1016-raspiUpgrade linux-image-6.14.0-1015-aws-64kUpgrade linux-image-oem-24.04bUpgrade linux-image-azure-nvidia-6.14Upgrade linux-image-oracleUpgrade linux-image-6.14.0-1018-gcpUpgrade linux-image-generic-64k-6.14Upgrade linux-image-oem-24.04cUpgrade linux-image-aws-6.14Upgrade linux-image-6.14.0-34-genericUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-virtualUpgrade linux-image-oem-6.14Upgrade linux-image-oracle-64k-6.14 | Jul 31, 2025 | Jul 25, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub