CVE-2026-99618: nvmet: don't return memory contents beyond valid data when reading ANA log page
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nvmet: don't return memory contents beyond valid data when reading ANA log page
The host side does not know how much valid data will be returned by the target so it will typically provide a buffer larger than the amount of valid data in the ANA log page. The memory allocation used by the target does not guarantee that prior kernel memory contents will not be returned past the end of the valid page data. Fix this to ensure that the SGL is zeroed before copying the data.
The Linux kernel CVE team has assigned CVE-2026-99618 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.19 with commit 72efd25dcf4f6310e9e6fa85620aa443b27c23fe and fixed in 6.12.118 with commit e129e8b31c8d8d4022d70627b42fae2b9af90a13 Issue introduced in 4.19 with commit 72efd25dcf4f6310e9e6fa85620aa443b27c23fe and fixed in 6.18.64 with commit 65187c29bb45c967f79bccc5ba46479fd32195c0 Issue introduced in 4.19 with commit 72efd25dcf4f6310e9e6fa85620aa443b27c23fe and fixed in 7.3.5 with commit 73bbd572a0a8c05f38eb9f0d046c583ba7f62f15 Issue introduced in 4.19 with commit 72efd25dcf4f6310e9e6fa85620aa443b27c23fe and fixed in 7.4-rc2 with commit 29b8758b4700357909f06705a0c48c7a60c556d5
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-99618
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/target/admin-cmd.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/e129e8b31c8d8d4022d70627b42fae2b9af90a13 https://git.kernel.org/stable/c/65187c29bb45c967f79bccc5ba46479fd32195c0 https://git.kernel.org/stable/c/73bbd572a0a8c05f38eb9f0d046c583ba7f62f15 https://git.kernel.org/stable/c/29b8758b4700357909f06705a0c48c7a60c556d5