PT-2026-166867

CVE-2026-143012

·

Publicado

2026-12-03

·

Atualizado

2026-12-03

Descrição por

Pontuação
N/A
Não disponível

Não há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.

In the Linux kernel, the following vulnerability has been resolved:
dm-raid: bound array position before indexing failed devices
super init validation() reads role = le32 to cpu(sb2->array position) out of an on-disk dm raid superblock and then uses it as a bit index into the failed devices bitmap via test bit(role, (void *)failed devices). failed devices is a uint64 t[DISKS ARRAY ELEMS] (DISKS ARRAY ELEMS == 4, i.e. 256 bits) living on the stack. The only guard is role < 0, so any on-disk array position >= 256 makes test bit() read past the end of the stack array (array position == 256 reads failed devices[4], 8 bytes past the object). For a raid1 set the role != raid disk reorder branch falls through to the same test bit().
A crafted dm-raid superblock therefore causes a stack out-of-bounds read during table load. Reachable by anyone able to issue a dmsetup create with attacker-controlled metadata (CAP SYS ADMIN in the target namespace); the crash fires in the constructor / analyse superblocks path, before any md run or array sizing.
BUG: KASAN: stack-out-of-bounds in super validate+0x1cd0/0x3390 Read of size 8 at addr ffff888007b17828 by task poc/152 Call Trace: dump stack lvl+0x64/0x80 print report+0xd0/0x630 kasan report+0xe5/0x120 kasan check range+0x105/0x1b0 super validate+0x1cd0/0x3390 (super init validation, inlined) raid ctr+0x2c4b/0xa0f0 dm table add target+0x66f/0xf80 table load+0x2ee/0x780 ctl ioctl+0x362/0x9f0 dm ctl ioctl+0x9/0x10 x64 sys ioctl+0x134/0x1c0 do syscall 64+0xe2/0x4b0 entry SYSCALL 64 after hwframe+0x77/0x7f
role is a device position that must refer to an actual member of the array, so reject anything outside [0, rs->raid disks) instead of only the negative case. rs->raid disks is always <= the 256-bit capacity of failed devices, so this both closes the out-of-bounds access and matches the intended semantics.
This bug was discovered by Artiphishell's vTriage pipeline, which generated a crafted raid1 superblock (magic "DmRd", compat features=1, num devices=2, array position=256, level=1) and a dmsetup-create reproducer that reliably triggers the KASAN report on an unpatched kernel (the precursor DMINFO "raid device #256 now at position #0" is visible in the serial log just before the splat). The fix below was drafted with the Claude coding assistant; a userspace reproducer is available on request.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾