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 5BB633002DD for ; Tue, 19 Aug 2025 17:22:15 +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=1755624135; cv=none; b=ub2yzSxQtXo7Wnaw1jHtbVrgl54CxGBYQoCaCjkrOeLmas6RvIYHb59eQHVNAzI8hWPSgoKL6QUVjRl2ExcrpmSnaQ4OY3Xkz6/VAUpPtOo6RAX1AUCTGJk4wwG8EjMX7DurDbv9IwcoNyDzSakw70P1/9+0Bv8qcRxcXZk5jMQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624135; c=relaxed/simple; bh=YBo4HXk4pseDj1E1nFb1eMHZ3xH3xaoeqxL4xpvdYSQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=F8Vgh82wFDxmHI7w1l973IW1/jYyyCWaG5BsC9JUenqO27ts8cL++bfCKKzNYmYNW6tbMlXx2Edh/OexNsz7FIZuim7zm3kicN4v103qbB7lnnNkqGTBf1Jmg9UBUpJU94E+c/0aIDq4TIJYJlvY4mTC/iw/c7AmYVcPXBjWV1M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W0pPxvXv; 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="W0pPxvXv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B9B9C4CEF4; Tue, 19 Aug 2025 17:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624135; bh=YBo4HXk4pseDj1E1nFb1eMHZ3xH3xaoeqxL4xpvdYSQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=W0pPxvXvZvqgjSUXBoTUfsFDdzjwCsG1Y9kuN+D96eptcO5xJ0PAXXqfSqt+tRopj cG9+kwbvB9sCBNU1412uNVffz1Y0SN6GCW+jk3fUizCwAiuIgHT162/WOnoZiczUZL Iz1w//tUf37dkvbGSrNOyGX6aYJY1zUy4zLehANM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38608: bpf, ktls: Fix data corruption when using bpf_msg_pop_data() in ktls Date: Tue, 19 Aug 2025 19:18:54 +0200 Message-ID: <2025081923-CVE-2025-38608-e829@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=3164; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pz5n8YD0jpxfhyEmr0u/W1sKWQUZzDXlPBAVs4PzVV4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNt4Xf+LT+G+ruj6v+cb/XFPLZxjnhM2VWJqi1yCgf fM0zwLpjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjInXMMC9Y//7HhiFWmB8PD DYeVbxpbOsj5RDDM4UydF/25fVPxG8X6hO/PvtezF66bBgA= 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: bpf, ktls: Fix data corruption when using bpf_msg_pop_data() in ktls When sending plaintext data, we initially calculated the corresponding ciphertext length. However, if we later reduced the plaintext data length via socket policy, we failed to recalculate the ciphertext length. This results in transmitting buffers containing uninitialized data during ciphertext transmission. This causes uninitialized bytes to be appended after a complete "Application Data" packet, leading to errors on the receiving end when parsing TLS record. The Linux kernel CVE team has assigned CVE-2025-38608 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit d3b18ad31f93d0b6bae105c679018a1ba7daa9ca and fixed in 6.1.148 with commit 16aca8bb4ad0d8a13c8b6da4007f4e52d53035bb Issue introduced in 4.20 with commit d3b18ad31f93d0b6bae105c679018a1ba7daa9ca and fixed in 6.6.102 with commit 0e853c1464bcf61207f8b5c32d2ac5ee495e859d Issue introduced in 4.20 with commit d3b18ad31f93d0b6bae105c679018a1ba7daa9ca and fixed in 6.12.42 with commit ee03766d79de0f61ea29ffb6ab1c7b196ea1b02e Issue introduced in 4.20 with commit d3b18ad31f93d0b6bae105c679018a1ba7daa9ca and fixed in 6.15.10 with commit 90d6ef67440cec2a0aad71a0108c8f216437345c Issue introduced in 4.20 with commit d3b18ad31f93d0b6bae105c679018a1ba7daa9ca and fixed in 6.16.1 with commit 1e480387d4b42776f8957fb148af9d75ce93b96d Issue introduced in 4.20 with commit d3b18ad31f93d0b6bae105c679018a1ba7daa9ca and fixed in 6.17-rc1 with commit 178f6a5c8cb3b6be1602de0964cd440243f493c9 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-38608 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/tls/tls_sw.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/16aca8bb4ad0d8a13c8b6da4007f4e52d53035bb https://git.kernel.org/stable/c/0e853c1464bcf61207f8b5c32d2ac5ee495e859d https://git.kernel.org/stable/c/ee03766d79de0f61ea29ffb6ab1c7b196ea1b02e https://git.kernel.org/stable/c/90d6ef67440cec2a0aad71a0108c8f216437345c https://git.kernel.org/stable/c/1e480387d4b42776f8957fb148af9d75ce93b96d https://git.kernel.org/stable/c/178f6a5c8cb3b6be1602de0964cd440243f493c9