Skip to contentSkip to conversation

CVE-2026-98726: nvme-multipath: fix underflow in ANA log bounds checks

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-98726 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.19 with commit 0d0b660f214dc4905db7b6bc998bad0c16dfb1ba and fixed in 6.12.113 with commit 03a0c21f0fd7a872953aae5714303d8f38d1e567
	Issue introduced in 4.19 with commit 0d0b660f214dc4905db7b6bc998bad0c16dfb1ba and fixed in 6.18.56 with commit 49e8a3224c91fd5fbf22f4adcca6c8209cfdd6fe
	Issue introduced in 4.19 with commit 0d0b660f214dc4905db7b6bc998bad0c16dfb1ba and fixed in 7.2.10 with commit e5cdb0c0a51e8ff49914ae16ef5360010c40cc85
	Issue introduced in 4.19 with commit 0d0b660f214dc4905db7b6bc998bad0c16dfb1ba and fixed in 7.3-rc6 with commit 63fa2d9c9c37020bd2703fe2a6a38027b5abeb15

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98726

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/nvme/host/multipath.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/03a0c21f0fd7a872953aae5714303d8f38d1e567
	https://git.kernel.org/stable/c/49e8a3224c91fd5fbf22f4adcca6c8209cfdd6fe
	https://git.kernel.org/stable/c/e5cdb0c0a51e8ff49914ae16ef5360010c40cc85
	https://git.kernel.org/stable/c/63fa2d9c9c37020bd2703fe2a6a38027b5abeb15