octeontx2-af: fix out-of-bounds read setting MSI-X irq affinity
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 4e527f1e5c155ce28164ba34cad47b635d16f827 · fixed in 2f460aa0211e97c011ef0cfe5016f8f2a2ed059b; From 4e527f1e5c155ce28164ba34cad47b635d16f827 · fixed in 4d5df98369c5f45710b786499f8bd7ffc3196433
- Linux Linux
7.1
- KernelLinux
From 7.1.0 · fixed in 7.2.6