nvme-multipath: fix underflow in ANA log bounds checks
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0d0b660f214dc4905db7b6bc998bad0c16dfb1ba · < 49e8a3224c91fd5fbf22f4adcca6c8209cfdd6fe| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's nvme-multipath ANA log parser can read beyond its buffer when ANA data contains inconsistent group or namespace ID sizes. The input does not specify who can supply that data or whether authentication or user interaction is required.
Engineers running Linux kernels with nvme-multipath should check their versions; affected versions are not specified.