# CVE-2025-21927: nvme-tcp: fix potential memory corruption in nvme_tcp_recv_pdu()

- 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.62%, higher than 51% of CVEs (2026-12-01)
- Published: 2025-04-01T15:40:58.432Z
- Modified: 2026-10-30T13:17:54.157Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

nvme-tcp: fix potential memory corruption in nvme_tcp_recv_pdu()

nvme_tcp_recv_pdu() doesn't check the validity of the header length.
When header digests are enabled, a target might send a packet with an
invalid header length (e.g. 255), causing nvme_tcp_verify_hdgst()
to access memory outside the allocated area and cause memory corruptions
by overwriting it with the calculated digest.

Fix this by rejecting packets with an unexpected header length.

(As written by CVE List.)

## Affected

- Linux Linux: from 3f2304f8c6d6ed97849057bd16fee99e434ca796 before 3b54109b2f771f74fd53b027429796326f84ab36; from 3f2304f8c6d6ed97849057bd16fee99e434ca796 before 9d22cf5cc94cd7dee84773ec41db78a46107dfa3; from 3f2304f8c6d6ed97849057bd16fee99e434ca796 before 9fbc953d6b38bc824392e01850f0aeee3b348722; from 3f2304f8c6d6ed97849057bd16fee99e434ca796 before 22b06c89aa6b2d1ecb8aea72edfb9d53af8d5126; from 3f2304f8c6d6ed97849057bd16fee99e434ca796 before ad95bab0cd28ed77c2c0d0b6e76e03e031391064; 5.0 (not affected: before 5.0; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.19 up to 6.12.*; from 6.13.7 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 5.0 before 6.12.19; from 6.13 before 6.13.7; 6.14

## 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`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/3b54109b2f771f74fd53b027429796326f84ab36>
- <https://git.kernel.org/stable/c/9d22cf5cc94cd7dee84773ec41db78a46107dfa3>
- <https://git.kernel.org/stable/c/9fbc953d6b38bc824392e01850f0aeee3b348722> (patch)
- <https://git.kernel.org/stable/c/22b06c89aa6b2d1ecb8aea72edfb9d53af8d5126> (patch)
- <https://git.kernel.org/stable/c/ad95bab0cd28ed77c2c0d0b6e76e03e031391064> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-21927 · Whole record: https://cve.day/CVE-2025-21927.json · Rebuilt by cve.day 2026-11-25T22:58:55.890Z
