nvme-multipath: fix underflow in ANA log bounds checks
- 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 6.6.160, 6.12.113, 6.18.56, 7.2.10
- 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: nvme-multipath: fix underflow in ANA log bounds checks The number of ANA groups advertised through Identify Controller sizes the ANA log buffer. The ANA log header and group descriptors independently supply the number of groups and namespace IDs to parse. Both bounds checks subtract an untrusted object size from ana_log_size before comparing the current offset. If the object is larger than the buffer, the size_t subtraction underflows and lets the parser read beyond ana_log_buf. Check the current offset before the first subtraction and compare each object size with the remaining buffer instead. This rejects inconsistent ANA data before dereferencing a truncated group descriptor or walking an oversized namespace ID array.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 0d0b660f214dc4905db7b6bc998bad0c16dfb1ba · fixed in 3045128294d347fd38542ad6e174b1b34d9c0751; From 0d0b660f214dc4905db7b6bc998bad0c16dfb1ba · fixed in 03a0c21f0fd7a872953aae5714303d8f38d1e567; From 0d0b660f214dc4905db7b6bc998bad0c16dfb1ba · fixed in 49e8a3224c91fd5fbf22f4adcca6c8209cfdd6fe; From 0d0b660f214dc4905db7b6bc998bad0c16dfb1ba · fixed in e5cdb0c0a51e8ff49914ae16ef5360010c40cc85; From 0d0b660f214dc4905db7b6bc998bad0c16dfb1ba · fixed in 63fa2d9c9c37020bd2703fe2a6a38027b5abeb15
- Linux Linux
4.19
- KernelLinux
From 4.19.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.113; From 6.13.0 · fixed in 6.18.56; From 6.19.0 · fixed in 7.2.10