Linux: octeontx2-af: fix out-of-bounds read setting MSI-X irq affinity
What fixes it
- 2f460aa0211e97c011ef0cfe5016f8f2a2ed059bLinuxCVE List
- 4d5df98369c5f45710b786499f8bd7ffc3196433LinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
In the Linux kernel, the following vulnerability has been resolved:
octeontx2-af: fix out-of-bounds read setting MSI-X irq affinity
rvu_register_interrupts() walks every MSI-X vector and uses strstr() to match "Mbox" or "FLR" in irq_name before pinning those interrupts to CPU 0. irq_name is a per-vector NAME_SIZE buffer, but not every slot is populated before this loop runs. strstr() keeps scanning until it finds a NUL terminator, so an uninitialized slot can trigger a KASAN slab-out-of-bounds read at boot when debug options are enabled.
Use strnstr() with NAME_SIZE to bound the search within each vector's name buffer.
Text from CVE List
Affected versions 6
- Linuxaffected: 4e527f1e5c155ce28164ba34cad47b635d16f827 before 2f460aa0211e97c011ef0cfe5016f8f2a2ed059bCVE List
- Linuxaffected: 4e527f1e5c155ce28164ba34cad47b635d16f827 before 4d5df98369c5f45710b786499f8bd7ffc3196433CVE List
- Linuxaffected: 7.1CVE List
- Linuxunaffected: all versions before 7.1CVE List
- Linuxunaffected: 7.2.6 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List