AZL-117736: CVE-2026-142926 affecting package kernel 6.6.161.1-1
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.
- Compensating control
Build each raid5 log backend’s io_unit slab-cache name from its array, as grow_stripes() does, rather than using the stringified type name.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems with more than one RAID5 array using the PPL consistency policy or with more than one journalled RAID5 array can trigger the slab-cache name collision. A single such array does not meet the described trigger condition.
What level of access is needed to trigger the PPL path?
An attacker or local user needs permission to write "ppl" to the md/consistency_policy attribute on two arrays. The journalled-array path is triggered by assembling two journalled arrays.
What is the observable impact?
Creating the second affected array configuration causes kmem_cache_sanity_check() to report that a cache named "ppl_io_unit" or "r5l_io_unit" already exists. The description characterizes this as a cache-name collision; cache creation and destruction otherwise occur correctly.