CVE-2026-22998
nvme-tcp: fix NULL pointer dereferences in nvmet_tcp_build_pdu_iovec
Check your servers for CVE-2026-22998
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-22998 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
nvme-tcp: fix NULL pointer dereferences in nvmet_tcp_build_pdu_iovec
Commit efa56305908b ("nvmet-tcp: Fix a kernel panic when host sends an invalid H2C PDU length") added ttag bounds checking and data_offset validation in nvmet_tcp_handle_h2c_data_pdu(), but it did not validate whether the command's data structures (cmd->req.sg and cmd->iov) have been properly initialized before processing H2C_DATA PDUs.
The nvmet_tcp_build_pdu_iovec() function dereferences these pointers without NULL checks. This can be triggered by sending H2C_DATA PDU immediately after the ICREQ/ICRESP handshake, before sending a CONNECT command or NVMe write command.
Attack vectors that trigger NULL pointer dereferences: 1. H2C_DATA PDU sent before CONNECT → both pointers NULL 2. H2C_DATA PDU for READ command → cmd->req.sg allocated, cmd->iov NULL 3. H2C_DATA PDU for uninitialized command slot → both pointers NULL
The fix validates both cmd->req.sg and cmd->iov before calling nvmet_tcp_build_pdu_iovec(). Both checks are required because: - Uninitialized commands: both NULL - READ commands: cmd->req.sg allocated, cmd->iov NULL - WRITE commands: both allocated
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.78%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 57.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Jun 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-476 NULL Pointer Dereference
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f775f2621c2ac5cc3a0b3a64665dad4fb146e510, before baabe43a0edefac8cd7b981ff87f967f6034dafe affected from 4cb3cf7177ae3666be7fb27d4ad4d72a295fb02d, before 76abc83a9d25593c2b7613c549413079c14a4686 affected from 2871aa407007f6f531fae181ad252486e022df42, before 7d75570002929d20e40110d6b03e46202c9d1bc7 affected from 24e05760186dc070d3db190ca61efdbce23afc88, before fdecd3b6aac10d5a18d0dc500fe57f8648b66cd4 affected from efa56305908ba20de2104f1b8508c6a7401833be, before 3def5243150716be86599c2a1767c29c68838b6d affected from efa56305908ba20de2104f1b8508c6a7401833be, before 374b095e265fa27465f34780e0eb162ff1bef913 affected from efa56305908ba20de2104f1b8508c6a7401833be, before 32b63acd78f577b332d976aa06b56e70d054cbba affected ee5e7632e981673f42a50ade25e71e612e543d9d affected 70154e8d015c9b4fb56c1a2ef1fc8b83d45c7f68 affected from 5.10.209, before 5.10.249 affected from 5.15.148, before 5.15.199 affected from 6.1.75, before 6.1.162 affected from 6.6.14, before 6.6.122 affected from 5.4.268, before 5.5 affected from 6.7.2, before 6.8
Other versions: unaffected
|
| Linux |
affected 6.8 unaffected before 6.8 unaffected from 5.10.249 up to and including 5.10.* unaffected from 5.15.199 up to and including 5.15.* unaffected from 6.1.162 up to and including 6.1.* unaffected from 6.6.122 up to and including 6.6.* unaffected from 6.12.67 up to and including 6.12.* unaffected from 6.18.7 up to and including 6.18.* unaffected 6.19 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-22998 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-22998
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-22998
trivy image --scanners vuln IMAGE | grep CVE-2026-22998
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/baabe43a0edefac8cd7b981ff87f967f6034dafe git.kernel.org
- https://git.kernel.org/stable/c/76abc83a9d25593c2b7613c549413079c14a4686 git.kernel.org
- https://git.kernel.org/stable/c/7d75570002929d20e40110d6b03e46202c9d1bc7 git.kernel.org
- https://git.kernel.org/stable/c/fdecd3b6aac10d5a18d0dc500fe57f8648b66cd4 git.kernel.org
- https://git.kernel.org/stable/c/3def5243150716be86599c2a1767c29c68838b6d git.kernel.org
- https://git.kernel.org/stable/c/374b095e265fa27465f34780e0eb162ff1bef913 git.kernel.org
- https://git.kernel.org/stable/c/32b63acd78f577b332d976aa06b56e70d054cbba git.kernel.org
Source: the record CVE-2026-22998 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse