CVE-2026-89986: mm/mempolicy: fix sleeping allocation in alloc_pages_bulk_weighted_interleave()

Published Sep 16, 2026
·
Updated

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

mm/mempolicy: fix sleeping allocation in allocpagesbulkweightedinterleave()

syzbot reported a sleeping function called from invalid context splat in buckettablealloc().

When rhashtableinsertslow() rehashes the table under rcureadlock(), it calls buckettablealloc(..., GFPATOMIC | GFPNOWARN). If the bucket table allocation uses vmalloc, vmallocnoderangenoprof() invokes vmareaallocpages() -> allocpagesbulkmempolicynoprof() with the passed GFPATOMIC flags.

If the current task has an MPOLWEIGHTEDINTERLEAVE mempolicy, allocpagesbulkweightedinterleave() is called and currently hardcodes GFPKERNEL when allocating the temporary weights array, triggering a mightalloc() splat in atomic/RCU contexts.

Pass the gfp flags (masked with GFPRECLAIMMASK to strip page-allocator zone modifiers like GFPHIGHMEM) received by allocpagesbulkweightedinterleave() to kmalloc() instead of hardcoding GFPKERNEL. Since the weights buffer is immediately initialized in full, kmalloc() is sufficient.

Event History

Sep 16, 2026
CVE Published
via MITRE·10:33 AM
Data Sourced
via MITRE·10:33 AM
Description

Frequently Asked Questions

1

Which systems are most likely to encounter this issue?

Systems using an MPOL_WEIGHTED_INTERLEAVE memory policy are relevant. The problematic path occurs when an rhashtable rehash runs under RCU read-side protection and a bucket-table allocation falls back to vmalloc.

2

What conditions trigger the warning?

The issue is triggered when the vmalloc allocation reaches alloc_pages_bulk_mempolicy_noprof() with GFP_ATOMIC flags while the current task uses MPOL_WEIGHTED_INTERLEAVE. The weighted-interleave path then allocates its temporary weights array with GFP_KERNEL, which can sleep in an atomic or RCU context.

3

What does the fix change?

The fix passes the caller's GFP flags, masked with GFP_RECLAIM_MASK, to the temporary weights-array allocation instead of hardcoding GFP_KERNEL. This prevents that allocation from using sleeping-capable flags in the affected context.

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