REDHAT-BUG-2577656: High severity Linux Linux kernel vulnerability

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

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In GUP-fast, use check_shl_overflow() to detect overflow when converting nr_pages to bytes and reject it early with -EOVERFLOW.

Event History

Nov 20, 2026
Data Sourced
via Red Hat·06:06 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which systems are realistically exposed to this issue?

The described truncation occurs on 32-bit systems when a page count is converted to bytes. The example affected user is RapidIO's rio_dma_transfer(), where the page count can originate from a 64-bit userspace length.

2

What does an attacker need to trigger the vulnerable path?

They need a path that passes a sufficiently large userspace length into code that derives nr_pages and uses GUP-fast, such as the cited RapidIO DMA transfer path. The length must cause nr_pages << PAGE_SHIFT to overflow on a 32-bit system.

3

How does the fix change behavior for oversized requests?

The fix checks the left shift for overflow before the conversion can truncate. 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