CVE-2026-139086: Linux kernel NVMe target reads past a two-byte DHCHAP negotiate message

ByLinuxtastic

December 2, 2026 #CVE, #Linux Kernel

The kernel’s NVMe over Fabrics target (nvmet) can require in-band DH-HMAC-CHAP authentication from initiators, and the AUTH_SEND command carries the handshake messages. An earlier fix in the same cycle, CVE-2026-139401, made nvmet_execute_auth_send() check that the two-byte common header is present before parsing, “but the DHCHAP path reads t_id before it verifies message lengths. A two-byte DHCHAP NEGOTIATE payload can therefore still trigger an OOB read”, a two-byte slab read past the allocation that KASAN caught. An initiator that has reached the authentication step, which needs no credentials, can send it. Red Hat rates it Important at 7.5 as a remote denial of service. On hosts that act as NVMe-oF targets with authentication enabled, move to 7.4-rc2 or a stable release that carries both nvmet-auth fixes, and keep the target’s listener on the storage network only.

CVE-2026-139086 at a glance.

ComponentLinux kernel, NVMe target fabrics authentication (drivers/nvme/target/fabrics-cmd-auth.c, nvmet_execute_auth_send() and its DH-HMAC-CHAP message parsing), module nvmet with CONFIG_NVME_TARGET_AUTH
Affected versionsthe record names 7.4-rc1 only: its git ranges start at commit c9359401 (the CVE-2026-139401 fix) and its five stable backports, and end at the companion commits that went into the same stable releases, so no numbered stable release is listed as affected. A tree that carries the first nvmet-auth fix without this one, such as a vendor backport of only c9359401, is in the affected range
Fixed inmainline 7.4-rc2 (commit 29e02777, “require the payload to cover the minimum DHCHAP message length before parsing it”) and the stable backports a4c65a7d, 8392df9e, 97f42480, 41dd730f, dc8fd2f8, one for each of the five stable series that took the first fix (6.1, 6.6, 6.12, 6.18 and 7.3); the record lists no numbered stable release as affected
SeverityRed Hat Important, CVSS 3.1 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, draft, CWE-125), bug 2586917 “Denial of Service via out-of-bounds read in nvmet authentication”; the kernel CNA gives no score and NVD (Received, 30 November) carries none; Ubuntu Medium; SUSE could not be read on 2 December 2026
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00363 (32nd percentile) on 1 December 2026
Who is exposedHosts that export NVMe namespaces over TCP, RDMA or Fibre Channel with the in-kernel target and have DH-HMAC-CHAP enabled on a subsystem (attr_dhchap_key set on a host entry in /sys/kernel/config/nvmet); anything that can open a connection to the listener can send the handshake. Red Hat’s statement: the target subsystem is not enabled by default, so “only hosts configured as NVMe targets with in-band authentication are exposed”; initiators are not affected
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

DH-HMAC-CHAP authentication runs as a sequence of fabrics commands: the initiator sends AUTH_SEND with a negotiate message, the target replies through AUTH_RECEIVE with a challenge, and so on until success or failure. Each message starts with a two-byte common header, auth_type and auth_id, followed by the message-specific body, and the DH-HMAC-CHAP negotiate body begins with a transaction identifier, t_id. The initiator states the payload length itself, in the command’s transfer length, and the target allocates that many bytes and copies them in before parsing.

The first fix, c9359401, rejected a transfer length too short to hold the common header, which closed a one-byte read reported as CVE-2026-139401. It did not close the next one: once the header passes, the DH-HMAC-CHAP branch reads t_id from the body before it has compared the transfer length with the minimum negotiate message size, so a payload of exactly two bytes places t_id in the bytes just past the allocation. KASAN reports a two-byte slab out-of-bounds read in nvmet_execute_auth_send. The practical effect is the same as the first bug: a target kernel that can be made to read freed or neighbouring slab memory, and crash, by a peer that has not authenticated and does not need to.

The fix in drivers/nvme/target/fabrics-cmd-auth.c checks the payload against the minimum DH-HMAC-CHAP message length before any field is read. It landed in 7.4-rc2 as a follow-up to the rc1 fix, and the record’s git ranges show the two travelling together into the stable trees. git.kernel.org refuses automated readers, so the diff is described from the CNA’s copy of the commit message.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. Only hosts running the NVMe target with authentication enabled exercise the code.

DistributionStatusFixed package
AlpineNot consulted for this page—
DebianNot affected in bookworm (6.1.192-3), trixie (6.12.118-1), forky and sid (7.3.6-1): “vulnerable code not present”; no DSA—
UbuntuMedium; the linux package is needs evaluation on every release from 14.04 to 26.10 on 2 December 2026, nothing releasednothing on 2 December 2026
RHEL, Rocky, Alma, CentOS StreamImportant, 7.5 (bug 2586917, CWE-125), but kernel and kernel-rt are not affected in RHEL 6 to 10 and every OpenShift RHCOS image—
openSUSE/SLENot consulted: suse.com refused the automated reader on 2 December 2026 (client error)—
Fedora, Arch; self-built kernelsNot consulted; upstream versions apply. A 7.4-rc1 build, or any tree that backported c9359401 alone, needs 29e02777 as well7.4-rc2 or later; the stable releases named for CVE-2026-139401 carry both commits

How to check

Is the NVMe target configured on this host, does any subsystem require authentication, and where does the port listen. Most hosts stop at the first question.

# 1. is the in-kernel NVMe target loaded and configured
lsmod | grep -E '^nvmet'
ls /sys/kernel/config/nvmet/subsystems/ 2>/dev/null
ls /sys/kernel/config/nvmet/ports/*/subsystems/ 2>/dev/null

# 2. is DH-HMAC-CHAP in use: a non-empty key on any host entry
grep -H . /sys/kernel/config/nvmet/hosts/*/dhchap_key 2>/dev/null

# 3. where the target listens (trtype, address, port) and the running kernel
cat /sys/kernel/config/nvmet/ports/*/addr_trtype /sys/kernel/config/nvmet/ports/*/addr_traddr /sys/kernel/config/nvmet/ports/*/addr_trsvcid 2>/dev/null
uname -r

No nvmet module and an empty /sys/kernel/config/nvmet means the host is not a target and the page does not apply; an initiator-only host (the nvme and nvme-tcp modules, no nvmet) is in the same position. A configured target without dhchap_key on any host never enters the authentication path. A target with authentication, listening on an address reachable beyond its storage fabric, on an affected build, is the case the record describes.

How to fix it

Update the kernel and reboot; the target lives in the kernel, so there is no service to restart short of that. Until then, keep the listener off any network the initiators do not share.

# Debian: bookworm, trixie, forky and sid are not affected; nothing to do
# Ubuntu: needs evaluation on 2 December 2026; once the linux package is released
apt update && apt install linux-generic && systemctl reboot
# RHEL / Rocky / Alma: not affected; nothing to do
# Self-built or 7.4-rc1 kernels: move to 7.4-rc2 or later, or cherry-pick 29e02777 on top of c9359401
git log --oneline v7.4-rc2 -- drivers/nvme/target/fabrics-cmd-auth.c | head -3
# Interim: bind the TCP listener to the storage interface only, and fence it with nftables
cat /sys/kernel/config/nvmet/ports/*/addr_traddr        # 0.0.0.0 or :: means every interface
nft add rule inet filter input tcp dport 4420 ip saddr != 10.20.0.0/24 drop

What not to do: do not turn off DH-HMAC-CHAP to avoid this code path. The bug is in the parser that runs when a peer offers authentication; removing authentication leaves the target open to any initiator that can reach it, which is a larger exposure than a crash. Do not assume the first nvmet-auth fix covers this one: the record is explicit that c9359401 checks only the common header, and a tree carrying it alone is still in range.

Sources

  • CVE-2026-139086 at CVE.org — the kernel CNA record: the relation to commit c9359401, the two-byte negotiate payload, the KASAN report, the git ranges (30 November 2026)
  • Fix commit 29e02777 (mainline 7.4-rc2, the commit Debian cites) and the stable backports a4c65a7d, 8392df9e, 97f42480, 41dd730f, dc8fd2f8; git.kernel.org refuses automated readers, so the diff is described from the CNA’s copy of the commit message
  • NVD entry — Received on 30 November 2026; no CVSS metric, CWE or CPE on 2 December 2026
  • Distribution trackers: Debian (not affected in every suite, vulnerable code not present) · Red Hat (Important 7.5, bug 2586917, CWE-125; every RHEL kernel not affected; the statement on targets with in-band authentication) · Ubuntu (Medium, needs evaluation; read from the HTML page, the JSON endpoint refused) · SUSE (refused the automated reader on 2 December 2026)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00363 (percentile 0.321) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.