ipc, msg: Account msg_msg allocations with GFP_KERNEL_ACCOUNT again

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

ipc, msg: Account msg_msg allocations with GFP_KERNEL_ACCOUNT again

Since commit 734bbc1c97ea7 ("ipc, msg: Use dedicated slab buckets for alloc_msg()"), alloc_msg() allocates with GFP_KERNEL, and a msg_msg is accounted only through SLAB_ACCOUNT on its bucket caches. With CONFIG_SLAB_BUCKETS=n, kmem_buckets_create() creates no caches and kmem_buckets_alloc() is a GFP_KERNEL kmalloc() from the general caches, which do not account it; the same happens when kmem_buckets_create() fails. Either way, the allocation is not charged to the sender's memory cgroup.

Allocate with GFP_KERNEL_ACCOUNT again, as before that commit, so the allocation is charged whichever cache serves it.

Build tested ARCH=x86_64 defconfig with GCC 16.2.0, with CONFIG_SLAB_BUCKETS as y and n.

ProductVersions
Linux Linux734bbc1c97ea7e46e0e53b087de16c87c03bd65f to before 9635007b7231d656f5e0b5a047a5575b64307864 Affected734bbc1c97ea7e46e0e53b087de16c87c03bd65f to before ab36779bedcf1d0fcd309976e16f6c203f43bd8f Affected734bbc1c97ea7e46e0e53b087de16c87c03bd65f to before 9aa68be2b1981a7645872bbab6ef6c9e1e0c213e Affected734bbc1c97ea7e46e0e53b087de16c87c03bd65f to before c57fbbe42e907fa26c5ffada52d913d4ca5fa66e Affected
Linux Linux6.11 Affectedbefore 6.11 Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.