AZL-117274: CVE-2026-139657 affecting package kernel 6.6.161.1-1

Published Nov 30, 2026
·
Updated

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

mm/gup: honour FOLLPIN in NOMMU getuserpageslocked()

The !CONFIGMMU implementation of getuserpageslocked() takes a bare getpage() reference for each page regardless of follflags: if (pages[i]) getpage(pages[i]);

This is reached from pinuserpages() with FOLLPIN set. unpinuserpage() is shared between MMU and NOMMU configurations and unconditionally calls gupputfolio(..., FOLLPIN), which subtracts GUPPINCOUNTINGBIAS (1024) from the folio refcount.

This means that pin adds 1, and then unpin will subtract 1024.

If a user maps a page (refcount 1), registers it 1023 times as an iouring fixed buffer (1023 pinuserpages calls -> refcount 1024), then unregisters: the first unpinuserpage subtracts 1024, refcount hits 0, the page is freed and returned to the buddy allocator. The remaining 1022 unpins write into whatever was reallocated, and the user's VMA still maps the freed page (NOMMU has no MMU to invalidate it). Reallocating the page for an iouring pbufring then lets userspace corrupt the new owner's data through the stale mapping.

Use trygrabfolio() which adds GUPPINCOUNTINGBIAS for FOLLPIN and 1 for FOLLGET, mirroring the CONFIGMMU path so pin and unpin are symmetric. Keep supporting the traditional behavior where users specify a pages array but don't set FOLLGET.

While at it, don't return NULL pointers in the page array, as this is really not expected for GUP users; instead, just fail and return -EFAULT.

[ david: support traditional behavior with no FOLLGET, extend description ]

Affected Software

1 affected component
azure-linux/kernel<=6.6.161.1-1

Event History

Nov 30, 2026
Advisory Published
via OSV·02:19 PM
Data Sourced
via OSV·02:19 PM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which systems are exposed to this flaw?

The affected path is the !CONFIG_MMU implementation of __get_user_pages_locked(). Systems built with CONFIG_MMU are not described as using the vulnerable implementation.

2

What does an attacker need to do to trigger the refcount error?

An attacker needs to map a page and register it repeatedly as an io_uring fixed buffer, causing pin_user_pages calls with FOLL_PIN set. On unregister, unpin_user_page can subtract the pin-counting bias even though the original pins added only ordinary page references.

3

What is the practical impact after the page is freed?

The first unpin can free the page while it remains mapped in the user's VMA, and later unpins can modify whatever object receives that reallocated memory. If the page is reallocated for an io_uring pbuf_ring, userspace can corrupt the new owner's data through the stale mapping.

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