# CVE-2026-52989: nvmet-tcp: propagate nvmet_tcp_build_pdu_iovec() errors to its callers

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-06-24T16:29:03.398Z
- Modified: 2026-08-24T12:07:11.778Z
- Weaknesses: CWE-390, CWE-908
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

nvmet-tcp: propagate nvmet_tcp_build_pdu_iovec() errors to its callers

Currently, when nvmet_tcp_build_pdu_iovec() detects an out-of-bounds
PDU length or offset, it triggers nvmet_tcp_fatal_error(cmd->queue)
and returns early. However, because the function returns void, the
callers are entirely unaware that a fatal error has occurred and
that the cmd->recv_msg.msg_iter was left uninitialized.

Callers such as nvmet_tcp_handle_h2c_data_pdu() proceed to blindly
overwrite the queue state with queue->rcv_state = NVMET_TCP_RECV_DATA
Consequently, the socket receiving loop may attempt to read incoming
network data into the uninitialized iterator.

Fix this by shifting the error handling responsibility to the callers.

(As written by CVE List.)

## Affected

- Linux Linux: from 1385be357e8acd09b36e026567f3a9d5c61139de before 3df42a854686fa06484e37ac1a3931c8e3e3453c; from dca1a6ba0da9f472ef040525fab10fd9956db59f before d7c8f95f599b3b38a717d2e771c3f8c174f657c3; from 19672ae68d52ff75347ebe2420dde1b07adca09f before f9204a2b78dd18374d3bcf9bf93d9021ce22de1b; from ab200d71553bdcf4de554a5985b05b2dd606bc57 before c2a11441538bdbbc5aa003f190995eba93a89b88; from 52a0a98549344ca20ad81a4176d68d28e3c05a5c before 046fa5c72d15cd8e2d592e275697ea399d8f76b0; from 52a0a98549344ca20ad81a4176d68d28e3c05a5c before ea8e356acb165cb1fd75537a52e1f66e5e76c538; 043b4307a99f902697349128fde93b2ddde4686c; 42afe8ed8ad2de9c19457156244ef3e1eca94b5d; from 6.1.163 before 6.1.175; from 6.6.124 before 6.6.141; from 6.12.70 before 6.12.91; from 6.18.10 before 6.18.33; and 3 more (not affected: before 6.19; from 6.1.175 up to 6.1.*; from 6.6.141 up to 6.6.*; from 6.12.91 up to 6.12.*; from 6.18.33 up to 6.18.*; from 7.0.10 up to 7.0.*; from 7.1 up to *)
- kernel: no versions given
- kernel-rt: no versions given
- linux linux_kernel: from 5.10.250 before 5.11; from 5.15.200 before 5.16; from 6.1.163 before 6.1.175; from 6.6.124 before 6.6.141; from 6.12.70 before 6.12.91; from 6.18.10 before 6.18.33; from 6.19.1 before 7.0.10; 6.19; 7.1

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/3df42a854686fa06484e37ac1a3931c8e3e3453c> (patch)
- <https://git.kernel.org/stable/c/d7c8f95f599b3b38a717d2e771c3f8c174f657c3> (patch)
- <https://git.kernel.org/stable/c/f9204a2b78dd18374d3bcf9bf93d9021ce22de1b> (patch)
- <https://git.kernel.org/stable/c/c2a11441538bdbbc5aa003f190995eba93a89b88> (patch)
- <https://git.kernel.org/stable/c/046fa5c72d15cd8e2d592e275697ea399d8f76b0> (patch)
- <https://git.kernel.org/stable/c/ea8e356acb165cb1fd75537a52e1f66e5e76c538> (patch)
- <https://access.redhat.com/security/cve/CVE-2026-52989> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2492443> (issue-tracking, third-party-advisory)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52989.json> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-52989](https://www.cve.org/CVERecord?id=CVE-2026-52989), CVE Terms of Use, modified 2026-08-24
- NVD: [CVE-2026-52989](https://nvd.nist.gov/vuln/detail/CVE-2026-52989), Public domain, modified 2026-08-21

---

Page: https://cve.day/CVE-2026-52989 · Whole record: https://cve.day/CVE-2026-52989.json · Rebuilt by cve.day 2026-11-25T22:59:25.643Z
