CVE-2026-142926: md/raid5: give the io_unit slab caches per-array names
In the Linux kernel, the following vulnerability has been resolved:
md/raid5: give the iounit slab caches per-array names
Both raid5 log backends create their iounit slab cache per array but name it after the struct:
pplconf->iokc = KMEMCACHE(ppliounit, 0); log->iokc = KMEMCACHE(r5liounit, 0);
KMEMCACHE() passes the stringified type as the cache name, so every array that enables PPL or attaches a journal asks for a cache called "ppliounit" or "r5liounit". With two such arrays live at the same time the second one trips kmemcachesanitycheck():
kmemcache of name 'ppliounit' already exists WARNING: mm/slabcommon.c:112 at kmemcachecreateargs+0xae/0x460 pplinitlog+0x285/0x1310 drivers/md/raid5-ppl.c:1363 loginit drivers/md/raid5-log.h:138 [inline] raid5changeconsistencypolicy+0x255/0x740 drivers/md/raid5.c:9141 consistencypolicystore+0x7f/0x230 drivers/md/md.c:5883 mdattrstore+0x3b7/0x640 drivers/md/md.c:6158
which is reachable by any user that can write "ppl" to md/consistencypolicy on two arrays, and equally by assembling two journalled arrays. The cache is created and destroyed correctly on every path, so this is a name collision only - duplicate names confuse slabtop and /proc/slabinfo, which is what the check is there to catch.
Build the name from the array instead, the way growstripes() already does for the stripehead cache in this driver, and fall back to the mddev pointer for dm-raid where mdname() is the constant "mdX". The buffer is sized like conf->cachename[] because mdname() can return up to DISKNAMELEN bytes.
The explicit size/align arguments keep what KMEMCACHE() expanded to, so object layout does not change.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
Who can trigger this issue?
A user who can write "ppl" to md/consistency_policy on two RAID5 arrays can reach the issue. It can also occur when two journalled arrays are assembled.
What conditions are required for the warning to occur?
At least two arrays using the same affected RAID5 log backend must be live at the same time. The per-array slab caches use identical fixed names, causing the second cache creation to collide with the first.
How can I determine whether a system has encountered it?
Look for a kernel warning stating that a kmem_cache named "ppl_io_unit" already exists, with a stack trace involving ppl_init_log, raid5_change_consistency_policy, or consistency_policy_store.
What can be done if the fix cannot be applied immediately?
Avoid enabling PPL on a second array while another PPL-enabled array is live, and avoid assembling two journalled arrays concurrently. The described problem is a slab-cache name collision; cache creation and destruction are otherwise reported as correct.