{"id":"CVE-2026-142926","summary":"md/raid5: give the io_unit slab caches per-array names","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5: give the io_unit slab caches per-array names\n\nBoth raid5 log backends create their io_unit slab cache per array but\nname it after the struct:\n\n\tppl_conf-\u003eio_kc = KMEM_CACHE(ppl_io_unit, 0);\n\tlog-\u003eio_kc      = KMEM_CACHE(r5l_io_unit, 0);\n\nKMEM_CACHE() passes the stringified type as the cache name, so every\narray that enables PPL or attaches a journal asks for a cache called\n\"ppl_io_unit\" or \"r5l_io_unit\".  With two such arrays live at the same\ntime the second one trips kmem_cache_sanity_check():\n\n  kmem_cache of name 'ppl_io_unit' already exists\n  WARNING: mm/slab_common.c:112 at __kmem_cache_create_args+0xae/0x460\n   ppl_init_log+0x285/0x1310 drivers/md/raid5-ppl.c:1363\n   log_init drivers/md/raid5-log.h:138 [inline]\n   raid5_change_consistency_policy+0x255/0x740 drivers/md/raid5.c:9141\n   consistency_policy_store+0x7f/0x230 drivers/md/md.c:5883\n   md_attr_store+0x3b7/0x640 drivers/md/md.c:6158\n\nwhich is reachable by any user that can write \"ppl\" to\nmd/consistency_policy on two arrays, and equally by assembling two\njournalled arrays.  The cache is created and destroyed correctly on\nevery path, so this is a name collision only - duplicate names confuse\nslabtop and /proc/slabinfo, which is what the check is there to catch.\n\nBuild the name from the array instead, the way grow_stripes() already\ndoes for the stripe_head cache in this driver, and fall back to the\nmddev pointer for dm-raid where mdname() is the constant \"mdX\".  The\nbuffer is sized like conf-\u003ecache_name[] because mdname() can return up\nto DISK_NAME_LEN bytes.\n\nThe explicit size/align arguments keep what KMEM_CACHE() expanded to,\nso object layout does not change.","modified":"2026-12-03T05:01:10.787279052Z","published":"2026-12-03T03:26:02.725Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142926.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/22144451431b8f8e507b66d4ddbd183ae0658620"},{"type":"WEB","url":"https://git.kernel.org/stable/c/96858e2308431ff5678e0e6fab1a06e19f3d95da"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e1e94f812edfdd0fe05b21ce1737763d6e005b3e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f3a61fafd0f785a98796fdc3af652a8b1f4432d5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142926.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142926"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f6bed0ef0a808164f51197de062e0450ce6c1f96"},{"fixed":"f3a61fafd0f785a98796fdc3af652a8b1f4432d5"},{"fixed":"22144451431b8f8e507b66d4ddbd183ae0658620"},{"fixed":"e1e94f812edfdd0fe05b21ce1737763d6e005b3e"},{"fixed":"96858e2308431ff5678e0e6fab1a06e19f3d95da"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142926.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.4.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142926.json"}}],"schema_version":"1.9.2"}