CVE-2026-46029: mm/slab: return NULL early from kmalloc_nolock() in NMI on UP

Published May 27, 2026
·
Updated

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

mm/slab: return NULL early from kmallocnolock() in NMI on UP

On UP kernels (!CONFIGSMP), spintrylock() is a no-op that unconditionally succeeds even when the lock is already held. As a result, kmallocnolock() called from NMI context can re-enter the slab allocator and acquire n->listlock that the interrupted context is already holding, corrupting slab state.

With CONFIGDEBUGSPINLOCK on UP, the following BUG is triggered with the slubkunit test module:

BUG: spinlock trylock failure on UP on CPU#0, kunittrycatch/243 [...] Call Trace: <NMI> dumpstacklvl+0x3f/0x60 dorawspintrylock+0x41/0x50 rawspintrylock+0x24/0x50 getfrompartialnode+0x120/0x4d0 slaballoc+0x8a/0x4c0 kmallocnolocknoprof+0x164/0x310 [...] </NMI>

Fix this by returning NULL early when invoked from NMI on a UP kernel.

Affected Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=6.18<6.18.27
Linux Linux kernel>=6.19<7.0.4
Linux Linux kernel=7.1-rc1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel mm/slub to a version that resolves this vulnerability.

    Patch return NULL early from kmalloc_nolock() in NMI on UP
  2. Configuration

    Ensure the fix is applied for UP kernels where CONFIG_SMP is not enabled by returning NULL early when kmalloc_nolock() is invoked from NMI on an UP kernel.

    Linux kernel (CONFIG_SMP) CONFIG_SMP = disabled (!CONFIG_SMP)

Event History

May 27, 2026
CVE Published
via MITRE·12:56 PM
Data Sourced
via MITRE·12:56 PM
DescriptionSeverity
Data Sourced
via NVD·02:17 PM
RemedyDescriptionSeverityAffected Software

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