| Summary | In the Linux kernel, the following vulnerability has been resolved: slub: fix data loss and overflow in krealloc() Commit 2cd8231796b5 ("mm/slub: allow to set node and align in This introduced two bugs in the reallocation fallback path: 1. Data loss during NUMA migration: The jump to 'alloc_new' happens 2. Buffer overflow during shrinking: When shrinking an object while The same overflow bug exists in the kvrealloc() fallback path, where the A simple reproducer: // e.g. add to lkdtm as KREALLOC_SHRINK_OVERFLOW demonstrates the issue: ================================================================== Out-of-bounds write at 0xffff8883ad757038 (120B right of kfence-#47): kfence-#47: 0xffff8883ad756fc0-0xffff8883ad756fff, size=64, cache=kmalloc-64 allocated by task 316 on cpu 7 at 97.680481s (0.021813s ago): Fix it by moving the old size calculation to the top of __do_krealloc() |
|---|---|
| Publication Date | May 27, 2026, 11:17 p.m. |
| Registration Date | May 28, 2026, 4:12 a.m. |
| Last Update | May 27, 2026, 11:48 p.m. |