nvmet-tcp: fix out-of-bounds write when receiving an over-long PDU
In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: fix out-of-bounds write when receiving an over-long PDU nvmet_tcp_try_recv_pdu() reads a PDU header into the fixed 128-byte queue->pdu union, then computes the remaining payload length as queue->left = hdr->hlen - queue->offset + hdgst; and reads that many more bytes into &queue->pdu + queue->offset, without ever bounding the result against sizeof(queue->pdu). A struct nvme_tcp_icreq_pdu is itself 128 bytes, exactly the size of the union. Once a header digest has been negotiated (hdgst = 4), a second ICReq passes the hlen == nvmet_tcp_pdu_size() check but yields queue->left = 128 - 8 + 4 = 124, so bytes 8..132 are written into the 128-byte buffer -- 4 bytes past its end, over queue->hdr_digest and queue->data_digest. Those bytes are attacker-controlled (an ICReq carries no digest), and the duplicate ICReq is only rejected later, after the overflow. A remote unauthenticated host can thus corrupt kernel memory adjacent to the receive buffer. Reject any PDU whose declared length would read past the end of queue->pdu before the second recv.
CVE-2026-89969
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-89969
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
"lessThan": "a3f0bcfbaf3312a5754d1ce020a07d394669eb25",
"versionType": "git"
},
{
"status": "affected",
"version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
"lessThan": "4f84d42c53c49557fb1ef285c683b0a81b576c74",
"versionType": "git"
},
{
"status": "affected",
"version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
"lessThan": "58dc6035b79c4c73c0cbf9ec9f68a7f117b2b3e6",
"versionType": "git"
},
{
"status": "affected",
"version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
"lessThan": "cf5f39d2b58f97e0cd1829c4a6aeef17f1607cca",
"versionType": "git"
},
{
"status": "affected",
"version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
"lessThan": "3a385e0c39efbe34db8edd95900c123113ae3450",
"versionType": "git"
},
{
"status": "affected",
"version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
"lessThan": "dbc4acbdb3ca8c81441368ad7409b8f77d4de8f6",
"versionType": "git"
},
{
"status": "affected",
"version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
"lessThan": "d95d342bc0ea82dc79e6362b2f1f997431750e4c",
"versionType": "git"
},
{
"status": "affected",
"version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
"lessThan": "14cc5a7e77731497d5bea70f3bb05df7eda982e4",
"versionType": "git"
}
],
"programFiles": [
"drivers/nvme/target/tcp.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.0"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.0",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.10.270",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.221",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.188",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.157",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.110",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.51",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.5",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/nvme/target/tcp.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-89969
Source reference:
/cveMetadata/cveId
Publisher severity
critical
Source reference: /containers/cna/metrics
- Event
- #36408 · Revision 1
- Added to Heist Feed
- Publisher date