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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.83% (percentile 55, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2026-07-25T08:49:48.908Z
- **Modified:** 2026-10-30T13:19:34.130Z

## Who should check

- Anyone running Linux \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< ff815b5e8688dcf68529b7f0fde8de5847f63f1e; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 8ae9bb92fc9a712a8d32da9c5fd657101f9b260b; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 33b974eb626154ae9348f2bac7de84cb2a3d9dd4; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 56c021a0869260d04c4b65d1471936aaf9177114; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< a29b316b9bbfd269f323ab4ba9906a894025680f; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 53cd102a7a56079b11b897835bd9b94c14e6322c
- Anyone running Linux 4.8

## Description

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.

## Affected and fixed versions

- Linux: \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< ff815b5e8688dcf68529b7f0fde8de5847f63f1e; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 8ae9bb92fc9a712a8d32da9c5fd657101f9b260b; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 33b974eb626154ae9348f2bac7de84cb2a3d9dd4; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 56c021a0869260d04c4b65d1471936aaf9177114; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< a29b316b9bbfd269f323ab4ba9906a894025680f; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 53cd102a7a56079b11b897835bd9b94c14e6322c (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- Upgrade Linux to 53cd102a7a56079b11b897835bd9b94c14e6322c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64320. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64320.md
Affected: Linux >= a07b4970f464f13640e28e16dad6cfa33647cc99, < ff815b5e8688dcf68529b7f0fde8de5847f63f1e; >= a07b4970f464f13640e28e16dad6cfa33647cc99, < 8ae9bb92fc9a712a8d32da9c5fd657101f9b260b; >= a07b4970f464f13640e28e16dad6cfa33647cc99, < 33b974eb626154ae9348f2bac7de84cb2a3d9dd4; >= a07b4970f464f13640e28e1…
Fixed in: Linux 8ae9bb92fc9a712a8d32da9c5fd657101f9b260b, Linux 33b974eb626154ae9348f2bac7de84cb2a3d9dd4, Linux 56c021a0869260d04c4b65d1471936aaf9177114, Linux 53cd102a7a56079b11b897835bd9b94c14e6322c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64320 being exploited?

There is no confirmed exploitation: CVE-2026-64320 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.83% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64320?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-64320?

Linux \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< ff815b5e8688dcf68529b7f0fde8de5847f63f1e; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 8ae9bb92fc9a712a8d32da9c5fd657101f9b260b; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 33b974eb626154ae9348f2bac7de84cb2a3d9dd4; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 56c021a0869260d04c4b65d1471936aaf9177114; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< a29b316b9bbfd269f323ab4ba9906a894025680f; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 53cd102a7a56079b11b897835bd9b94c14e6322c; Linux 4.8.

### Is there a fix for CVE-2026-64320?

Yes. Fixed in Linux 8ae9bb92fc9a712a8d32da9c5fd657101f9b260b, Linux 33b974eb626154ae9348f2bac7de84cb2a3d9dd4, Linux 56c021a0869260d04c4b65d1471936aaf9177114, Linux 53cd102a7a56079b11b897835bd9b94c14e6322c. Upgrade Linux to 53cd102a7a56079b11b897835bd9b94c14e6322c or later.

### How do I check if I'm affected by CVE-2026-64320?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/33b974eb626154ae9348f2bac7de84cb2a3d9dd4>
- patch: <https://git.kernel.org/stable/c/56c021a0869260d04c4b65d1471936aaf9177114>
- patch: <https://git.kernel.org/stable/c/a29b316b9bbfd269f323ab4ba9906a894025680f>
- patch: <https://git.kernel.org/stable/c/53cd102a7a56079b11b897835bd9b94c14e6322c>
- other: <https://git.kernel.org/stable/c/ff815b5e8688dcf68529b7f0fde8de5847f63f1e>
- other: <https://git.kernel.org/stable/c/8ae9bb92fc9a712a8d32da9c5fd657101f9b260b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64320>

HTML: <https://flawdb.com/CVE-2026-64320> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64320>
