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 9194C2F4A for ; Wed, 18 Jun 2025 09:29:11 +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=1750238951; cv=none; b=qoIRt2wK5xvEp3XXvoFQQiaTlEjMRRRZSG1V0K7ZL/qgDZCSP7Fu1tAp/Z5U+d67AD/kxUFMxs5vDpfjI85juey5tpWwQuLfV5Rulzkjj8ycc9YU1ZNaCv2FlfyMW5+jmME66Pc1NEJ1z6NWuh9EN/xrSzo6fhxpI6jcuyMxq3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750238951; c=relaxed/simple; bh=X5CGNA3fg2I2QE+Z/xd2IjvsQIhedLhcleqhVqDo2ZI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GnA7mr43/5ZYxwD9n+MPbmk52P3PM1m/2o8Gb2Bzr0H1Y3xULPMRU/t3ZsP/pZmhFUnm3NZl1zmApaNOrvzy2H6UpqV/1C9OAtAvhIP0dUzYEfj0lt6VtaAl4j+lwlr4/kFiCQ9+bhc6RXth2hWxYzid3rP2gz02hsbyxLUbh30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W8bCdIz5; 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="W8bCdIz5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B243C4CEE7; Wed, 18 Jun 2025 09:29:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750238951; bh=X5CGNA3fg2I2QE+Z/xd2IjvsQIhedLhcleqhVqDo2ZI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=W8bCdIz5FvIH5Q+vHH/IduqpXOFEeZ9bLXcaJds85Q3pAAIrUAL9qGO9lfFU4joGg XRAHO3GTjrsQIp2RotG6M4wpUr11t6RN5Q01Wv22NwdkDYgujtYokmDL3QnCdwguL4 SqD8/evqmTgAo7fZkRDuFroTIkaAFpsWE2sE6ykI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38018: net/tls: fix kernel panic when alloc_page failed Date: Wed, 18 Jun 2025 11:28:52 +0200 Message-ID: <2025061845-CVE-2025-38018-0c91@gregkh> X-Mailer: git-send-email 2.49.0 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=3126; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aNwTXqxuoVqv0EKLu3/gOVeWCuzlQ9csQg/SMXsVG1k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBbWddBSYruXBYeXi8TNd8fInjyr78UjHHk0ufatpc/ 1ItFO/fEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNJC2SYxWTz63vgfkmHxcsm /d1oK7icfZXfI4Z5CreSt+X9Sb0c9DnkR9i0bpcZXR0HAA== 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: net/tls: fix kernel panic when alloc_page failed We cannot set frag_list to NULL pointer when alloc_page failed. It will be used in tls_strp_check_queue_ok when the next time tls_strp_read_sock is called. This is because we don't reset full_len in tls_strp_flush_anchor_copy() so the recv path will try to continue handling the partial record on the next call but we dettached the rcvq from the frag list. Alternative fix would be to reset full_len. Unable to handle kernel NULL pointer dereference at virtual address 0000000000000028 Call trace: tls_strp_check_rcv+0x128/0x27c tls_strp_data_ready+0x34/0x44 tls_data_ready+0x3c/0x1f0 tcp_data_ready+0x9c/0xe4 tcp_data_queue+0xf6c/0x12d0 tcp_rcv_established+0x52c/0x798 The Linux kernel CVE team has assigned CVE-2025-38018 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 84c61fe1a75b4255df1e1e7c054c9e6d048da417 and fixed in 6.1.140 with commit 8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4 Issue introduced in 6.0 with commit 84c61fe1a75b4255df1e1e7c054c9e6d048da417 and fixed in 6.6.92 with commit 406d05da26835943568e61bb751c569efae071d4 Issue introduced in 6.0 with commit 84c61fe1a75b4255df1e1e7c054c9e6d048da417 and fixed in 6.12.30 with commit a11b8c0be6acd0505a58ff40d474bd778b25b93a Issue introduced in 6.0 with commit 84c61fe1a75b4255df1e1e7c054c9e6d048da417 and fixed in 6.14.8 with commit 5f1f833cb388592bb46104463a1ec1b7c41975b6 Issue introduced in 6.0 with commit 84c61fe1a75b4255df1e1e7c054c9e6d048da417 and fixed in 6.15 with commit 491deb9b8c4ad12fe51d554a69b8165b9ef9429f 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-38018 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_strp.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/8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4 https://git.kernel.org/stable/c/406d05da26835943568e61bb751c569efae071d4 https://git.kernel.org/stable/c/a11b8c0be6acd0505a58ff40d474bd778b25b93a https://git.kernel.org/stable/c/5f1f833cb388592bb46104463a1ec1b7c41975b6 https://git.kernel.org/stable/c/491deb9b8c4ad12fe51d554a69b8165b9ef9429f