CVE-2025-21927

published 1 Apr 2025 · updated 5 Nov 2026

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

9.8CriticalCVSS 9.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel 22b06c89aa6b2d1ecb8aea72edfb9d53af8d5126, Kernel 3b54109b2f771f74fd53b027429796326f84ab36, Kernel 9d22cf5cc94cd7dee84773ec41db78a46107dfa3 and 2 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.0, >=3f2304f8c6d6ed97849057bd16fee99e434ca796 <22b06c89aa6b2d1ecb8aea72edfb9d53af8d5126, >=3f2304f8c6d6ed97849057bd16fee99e434ca796 <3b54109b2f771f74fd53b027429796326f84ab36, >=3f2304f8c6d6ed97849057bd16fee99e434ca796 <9d22cf5cc94cd7dee84773ec41db78a46107dfa3, >=3f2304f8c6d6ed97849057bd16fee99e434ca796 <9fbc953d6b38bc824392e01850f0aeee3b348722, >=3f2304f8c6d6ed97849057bd16fee99e434ca796 <ad95bab0cd28ed77c2c0d0b6e76e03e03139106422b06c89aa6b2d1ecb8aea72edfb9d53af8d5126, 3b54109b2f771f74fd53b027429796326f84ab36, 9d22cf5cc94cd7dee84773ec41db78a46107dfa3, 9fbc953d6b38bc824392e01850f0aeee3b348722, ad95bab0cd28ed77c2c0d0b6e76e03e031391064

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-21927 severity on Zeptric[![CVE-2025-21927](https://zeptric.io/badge/cve/CVE-2025-21927.svg)](https://zeptric.io/cve/CVE-2025-21927)