PT-2026-163698

CVE-2026-139657

·

تاريخ النشر

2026-11-30

·

تاريخ التحديث

2026-11-30

الوصف من

CVSS 3.1
7.8
عالية
المقاييسAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
In the Linux kernel, the following vulnerability has been resolved:
mm/gup: honour FOLL PIN in NOMMU get user pages locked()
The !CONFIG MMU implementation of get user pages locked() takes a bare get page() reference for each page regardless of foll flags: if (pages[i]) get page(pages[i]);
This is reached from pin user pages*() with FOLL PIN set. unpin user page() is shared between MMU and NOMMU configurations and unconditionally calls gup put folio(..., FOLL PIN), which subtracts GUP PIN COUNTING BIAS (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 io uring fixed buffer (1023 pin user pages calls -> refcount 1024), then unregisters: the first unpin user page 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 io uring pbuf ring then lets userspace corrupt the new owner's data through the stale mapping.
Use try grab folio() which adds GUP PIN COUNTING BIAS for FOLL PIN and 1 for FOLL GET, mirroring the CONFIG MMU path so pin and unpin are symmetric. Keep supporting the traditional behavior where users specify a pages array but don't set FOLL GET.
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 FOLL GET, extend description ]
قابلية الاستغلال
إصلاح
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾