CVE-2026-99661: mm/gup: check for overflow when converting nr_pages to bytes in GUP-fast

Published Nov 20, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mm/gup: check for overflow when converting nrpages to bytes in GUP-fast

The overflow check in gupfastfallback() only covers the addition to start. The preceding nrpages << PAGESHIFT can already have truncated the length on 32bit.

Users such as RapidIO's riodmatransfer() can derive such page counts from a 64-bit userspace length.

Let's just checkshloverflow() to reject any such overflow with -EOVERFLOW early.

Affected Software

4 affected componentsFixes available
linux/kernel>=5.10.4<5.11
5.11
linux/kernel>=5.11.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.11
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5

Frequently Asked Questions

1

Which systems are exposed to this issue?

The issue affects 32-bit Linux kernel environments where GUP-fast handles a page count that is converted to bytes. It is particularly relevant to callers that derive page counts from a 64-bit userspace length, such as RapidIO's rio_dma_transfer().

2

What input is needed to trigger the overflow?

A caller must supply or derive an nr_pages value large enough that shifting it by PAGE_SHIFT overflows during conversion to a byte length on 32-bit systems. A 64-bit userspace length that is converted into a page count can provide such a value.

3

What happens after the fix is applied?

The kernel checks the shift conversion for overflow before using the resulting byte length. Requests that would overflow are rejected early with -EOVERFLOW.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203