Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 228562FDC5F for ; Tue, 19 Aug 2025 17:19:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755623964; cv=none; b=UgDa8DhDbGd3tNxJwGZ6+6wsBaKcXkp1tB/hMtp/3QELA8Kh4gCdB7Xg/DSWHa36892KDIxwplykOpzxEhHjf7EGV4LgpxXz36JU0Cq3h+tokYlZA4Yrh0eVPiFipp8GXKMXYgFZabxZbeBKX17svnI9w8bC08MRj6S7srIW0cI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755623964; c=relaxed/simple; bh=Pln3ecqJZ04YXJP8SkXNgWks8xpGvhyWtpBqJADxmJc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S4YsSVQAHiP3YEB9eVz/pGokfl+hHeEqurpJs+tm4tkAU0UDsVzANmi+QVgjnVYw/Oi/te5pmnDyPnG6m2H2d7rdTYgDDcnJ8UW4BTnNhY+M4t7fCwSnd4kYPnqo4G3hleBQAqjudOzwgaA5Vu/Puqpp33XH+iwndCP3+Nyn8Js= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K1AIw1vR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="K1AIw1vR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E1D6C4CEF1; Tue, 19 Aug 2025 17:19:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755623963; bh=Pln3ecqJZ04YXJP8SkXNgWks8xpGvhyWtpBqJADxmJc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=K1AIw1vRS5HVkAvbXxKzO+pRlh18FLL6lXw9W27j1jXA1mNKhfMOp9fR1JnT7D9aT C0Z0E239XOIZ6GOiZNwellBZNvBav1KtiuO7gGnqj6MrLMSRV6Khjnh4rXcxNvqDjG jf7krUZofnvrzaiebVFc47ICeoutc5DOWd3WfWRo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38571: sunrpc: fix client side handling of tls alerts Date: Tue, 19 Aug 2025 19:18:18 +0200 Message-ID: <2025081910-CVE-2025-38571-ba2a@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3148; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pKLH+Ig/mNL/hTz0iSL/nsTht65C00VVGYF7Egtfajc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNl46cEt3/vs3V2+cPNbhdNPzb+lWaT39c5mnt8eEf 3F7Mc39XkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMZJEBw1xZua37p3qJTTcp if1V9jaqL2p+twzDPKXge2qr3Q8dXfRr9YG3R1dwsZlbPQcA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: sunrpc: fix client side handling of tls alerts A security exploit was discovered in NFS over TLS in tls_alert_recv due to its assumption that there is valid data in the msghdr's iterator's kvec. Instead, this patch proposes the rework how control messages are setup and used by sock_recvmsg(). If no control message structure is setup, kTLS layer will read and process TLS data record types. As soon as it encounters a TLS control message, it would return an error. At that point, NFS can setup a kvec backed control buffer and read in the control message such as a TLS alert. Scott found that a msg iterator can advance the kvec pointer as a part of the copy process thus we need to revert the iterator before calling into the tls_alert_recv. The Linux kernel CVE team has assigned CVE-2025-38571 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit dea034b963c8901bdcc3d3880c04f0d75c95112f and fixed in 6.6.102 with commit a55b3d15331859d9fdd261cfa6d34ca2aeb0fb95 Issue introduced in 6.5 with commit dea034b963c8901bdcc3d3880c04f0d75c95112f and fixed in 6.12.42 with commit c36b2fbd60e8f9c6f975522130998608880c93be Issue introduced in 6.5 with commit dea034b963c8901bdcc3d3880c04f0d75c95112f and fixed in 6.15.10 with commit 3ee397eaaca4fa04db21bb98c8f1d0c6cc525368 Issue introduced in 6.5 with commit dea034b963c8901bdcc3d3880c04f0d75c95112f and fixed in 6.16.1 with commit 3feada5baf4dc96e151ff2ca54630e1d274e5458 Issue introduced in 6.5 with commit dea034b963c8901bdcc3d3880c04f0d75c95112f and fixed in 6.17-rc1 with commit cc5d59081fa26506d02de2127ab822f40d88bc5a 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-38571 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: net/sunrpc/xprtsock.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/a55b3d15331859d9fdd261cfa6d34ca2aeb0fb95 https://git.kernel.org/stable/c/c36b2fbd60e8f9c6f975522130998608880c93be https://git.kernel.org/stable/c/3ee397eaaca4fa04db21bb98c8f1d0c6cc525368 https://git.kernel.org/stable/c/3feada5baf4dc96e151ff2ca54630e1d274e5458 https://git.kernel.org/stable/c/cc5d59081fa26506d02de2127ab822f40d88bc5a