VDB

CVE-2026-64320

CVE-2026-64320 PUBLISHED CVSS 9.1 CRITICAL

nvmet: fix pre-auth out-of-bounds heap read in Discovery Get Log Page

Reported by linux · Published July 25, 2026

In the Linux kernel, the following vulnerability has been resolved: nvmet: fix pre-auth out-of-bounds heap read in Discovery Get Log Page nvmet_execute_disc_get_log_page() validates only the dword alignment of the host-supplied Log Page Offset (lpo). The 64-bit offset is then added to a small kzalloc'd buffer that holds the discovery log page and the result is passed straight to nvmet_copy_to_sgl(), which memcpy()s data_len bytes out to the host with no source-side bound check: u64 offset = nvmet_get_log_page_offset(req->cmd); /* 64-bit host */ size_t data_len = nvmet_get_log_page_len(req->cmd); /* 32-bit host */ ... if (offset & 0x3) { ... } /* only check */ ... alloc_len = sizeof(*hdr) + entry_size * discovery_log_entries(req); buffer = kzalloc(alloc_len, GFP_KERNEL); ... status = nvmet_copy_to_sgl(req, 0, buffer + offset, data_len); The Discovery controller is unauthenticated -- nvmet_host_allowed() returns true unconditionally for the discovery subsystem -- so the call is reachable pre-authentication by any TCP/RDMA/FC peer that can reach the nvmet target. With a discovery log page of ~1 KiB, an attacker requesting up to 4 KiB starting at offset == alloc_len reads the next slab page out and gets its content returned over the fabric (an empirical run on a default nvmet-tcp loopback target leaked 81 canonical kernel pointers in one Get Log Page response). Pointing the offset at unmapped kernel memory faults the in-kernel memcpy and crashes (or panics, on panic_on_oops=1) the target host instead. The attacker-controlled source-side offset pattern "nvmet_copy_to_sgl(req, 0, buffer + ATTACKER_OFFSET, ...)" is unique to nvmet_execute_disc_get_log_page in the entire nvmet codebase: every other Get Log Page handler in admin-cmd.c either ignores lpo (and silently starts every response at offset 0) or tracks a local destination offset with a fixed source pointer. Validate the host-supplied offset against the log page size, cap the copy length to what is actually available, and zero-fill any remainder of the host transfer buffer. The zero-fill matches the existing short-response pattern in nvmet_execute_get_log_changed_ns() (admin-cmd.c) and prevents leaking transport SGL contents when the host asks for more bytes than the log page contains.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-rt-debug-coreerrata.rockylinux.org6.12.0-211.50.1.el10, 4.18.0-553.158.1.rt7.499.el8
kernel-64k-debug-develerrata.rockylinux.org5.14.0-687.45.1.el9
python3-perf-debuginfoerrata.rockylinux.org6.12.0-211.50.1.el10
kernel-debug-modules-extraerrata.rockylinux.org6.12.0-211.50.1.el10, 5.14.0-687.45.1.el9, 4.18.0-553.158.1.el8
kernelerrata.rockylinux.org6.12.0-211.50.1.el10, 4.18.0-553.158.1.el8
kernel-devel-matchederrata.rockylinux.org6.12.0-211.50.1.el10, 5.14.0-687.45.1.el9
kernel-debug-uki-virterrata.rockylinux.org5.14.0-687.45.1.el9
kernel-modules-coreerrata.rockylinux.org5.14.0-687.45.1.el9
kernel-debug-develerrata.rockylinux.org6.12.0-211.50.1.el10, 5.14.0-687.45.1.el9
rtlaerrata.rockylinux.org6.12.0-211.50.1.el10, 5.14.0-687.45.1.el9
kernel-64k-debug-debuginfoerrata.rockylinux.org5.14.0-687.45.1.el9
kernel-debugerrata.rockylinux.org6.12.0-211.50.1.el10, 5.14.0-687.45.1.el9, 4.18.0-553.158.1.el8

41 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Affected products

VendorProductVersions
LinuxLinuxa07b4970f464f13640e28e16dad6cfa33647cc99, a07b4970f464f13640e28e16dad6cfa33647cc99, a07b4970f464f13640e28e16dad6cfa33647cc99
LinuxLinux4.8, 0, 6.1.191
linuxlinux_kernel4.8, 4.8, 4.8
LinuxLinux*, *, *

Timeline

  • Jul 25, 2026 EPSS Score (30 in total, the first dated here)
  • Jul 25, 2026 Coalition ESS Score
  • Jul 25, 2026 CVE Published
  • Jul 26, 2026 Security Advisory (27 in total, the first dated here)
  • Aug 12, 2026 Distribution Patch (32 in total, the first dated here)
  • Oct 30, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-64320
vulnetix vdb fixes CVE-2026-64320

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64320/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›