lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025040133-CVE-2025-21927-36d6@gregkh>
Date: Tue,  1 Apr 2025 16:39:51 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2025-21927: nvme-tcp: fix potential memory corruption in nvme_tcp_recv_pdu()

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.

The Linux kernel CVE team has assigned CVE-2025-21927 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 6.12.19 with commit 9fbc953d6b38bc824392e01850f0aeee3b348722
	Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 6.13.7 with commit 22b06c89aa6b2d1ecb8aea72edfb9d53af8d5126
	Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 6.14 with commit ad95bab0cd28ed77c2c0d0b6e76e03e031391064

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2025-21927
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/nvme/host/tcp.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/9fbc953d6b38bc824392e01850f0aeee3b348722
	https://git.kernel.org/stable/c/22b06c89aa6b2d1ecb8aea72edfb9d53af8d5126
	https://git.kernel.org/stable/c/ad95bab0cd28ed77c2c0d0b6e76e03e031391064

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ