CVE-2025-21927
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by Linux
Exploit likelihood
0.62% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 5.0 before 6.12.19, from 6.13 before 6.13.7, 6.14NVD

All scores

Linux9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nvme-tcp: se corrige una posible corrupción de memoria en nvme_tcp_recv_pdu(). nvme_tcp_recv_pdu() no comprueba la validez de la longitud del encabezado. Cuando se habilitan los resúmenes de encabezado, un destino podría enviar un paquete con una longitud de encabezado no válida (p. ej., 255), lo que provoca que nvme_tcp_verify_hdgst() acceda a memoria fuera del área asignada y provoque corrupciones de memoria al sobrescribirla con el resumen calculado. Para solucionar esto, rechace los paquetes con una longitud de encabezado inesperada.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21927 changed 2026-10-30CVE Terms of Use
NVDCVE-2025-21927 changed 2026-10-30Public domain