CVE-2026-100043: ipc, msg: Account msg_msg allocations with GFP_KERNEL_ACCOUNT again
In the Linux kernel, the following vulnerability has been resolved:
ipc, msg: Account msgmsg allocations with GFPKERNELACCOUNT again
Since commit 734bbc1c97ea7 ("ipc, msg: Use dedicated slab buckets for allocmsg()"), allocmsg() allocates with GFPKERNEL, and a msgmsg is accounted only through SLABACCOUNT on its bucket caches. With CONFIGSLABBUCKETS=n, kmembucketscreate() creates no caches and kmembucketsalloc() is a GFPKERNEL kmalloc() from the general caches, which do not account it; the same happens when kmembucketscreate() fails. Either way, the allocation is not charged to the sender's memory cgroup.
Allocate with GFPKERNELACCOUNT again, as before that commit, so the allocation is charged whichever cache serves it.
Build tested ARCH=x8664 defconfig with GCC 16.2.0, with CONFIGSLABBUCKETS as y and n.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Allocate msg_msg objects with GFP_KERNEL_ACCOUNT again in alloc_msg() so the allocation is charged to the sender's memory cgroup.
Linux kernel alloc_msg() allocation GFP flag = GFP_KERNEL_ACCOUNT