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 ED2E52E6114 for ; Fri, 22 Aug 2025 13:01:25 +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=1755867686; cv=none; b=juH5FV/BORNhW0OXN53KbctEo+1iKrvKD1cdFyMGOe+582opoPLs34AP4/NsFdlP7a1oGbv3RoSb4/lojt8+BaxAvCgeMg+SrMgz/9lYYtULoXOrKii+QwxsSfI2aGsz5EdE3A/6B1E/7i3VFNTeTXyzRHTQ6YV6rRiA+KfWm7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755867686; c=relaxed/simple; bh=DJA97ECPI/neuTXqO094+VSJ4B/KZ70+VZW2mK5PMkA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CJwJgRkV44lK8b9pGohhZfrbclHJL3EDFFBgRoDfa1bRt0QH+G9W3/llK3qZp9iPjy/sbOt2E/o5giT4OyqiSxYdLPxSyqzSmBWWoke386k0PVL6e9PhQ1jMOyXOBJlI8uyAHy8nZB5tnO5e4rsjOm4zUTJyN3DHPB22I7v5Ohk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=STZbKbbt; 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="STZbKbbt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C223C4CEED; Fri, 22 Aug 2025 13:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755867685; bh=DJA97ECPI/neuTXqO094+VSJ4B/KZ70+VZW2mK5PMkA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=STZbKbbtwTb8MpxzTT/YDUcKp1wZP7beNPEtQiRe0qYmctHJtdpJbtS3cmLf6R/fT tO+b7RiiS2UjpyOCDC4ARguYpPAcqOLPksJEOUypzjpk8Je1THjL0YqfkuXpSX84BB mdH/+SkkbIHMEBP/J7KEMZ6wcvsGmOd4LcMx91Vo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58239: tls: stop recv() if initial process_rx_list gave us non-DATA Date: Fri, 22 Aug 2025 15:01:11 +0200 Message-ID: <2025082210-CVE-2024-58239-dd4f@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=3314; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=M3Nz2zU31j7rNKW3Hji/KpozY/XoTbv3+bQY7TXDJkE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrssS+SZ92F2HwCPGdWX2o/qjltq0vGGdbn80/cih2+ 5vYF3HGHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR76kM8zQucs458Fspzo9T +YnkTmHZK7/7fzPM0yrjmfGHPyZANpLj/xI+faMP/7L6AQ== 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: tls: stop recv() if initial process_rx_list gave us non-DATA If we have a non-DATA record on the rx_list and another record of the same type still on the queue, we will end up merging them: - process_rx_list copies the non-DATA record - we start the loop and process the first available record since it's of the same type - we break out of the loop since the record was not DATA Just check the record type and jump to the end in case process_rx_list did some work. The Linux kernel CVE team has assigned CVE-2024-58239 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit 692d7b5d1f9125a1cf0595e979e3b5fb7210547e and fixed in 5.4.270 with commit f310143961e2d9a0479fca117ce869f8aaecc140 Issue introduced in 5.1 with commit 692d7b5d1f9125a1cf0595e979e3b5fb7210547e and fixed in 5.10.211 with commit 31e10d6cb0c9532ff070cf50da1657c3acee9276 Issue introduced in 5.1 with commit 692d7b5d1f9125a1cf0595e979e3b5fb7210547e and fixed in 5.15.150 with commit 4338032aa90bd1d5b33a4274e8fa8347cda5ee09 Issue introduced in 5.1 with commit 692d7b5d1f9125a1cf0595e979e3b5fb7210547e and fixed in 6.1.80 with commit 6756168add1c6c3ef1c32c335bb843a5d1f99a75 Issue introduced in 5.1 with commit 692d7b5d1f9125a1cf0595e979e3b5fb7210547e and fixed in 6.6.19 with commit 3b952d8fdfcf6fd8ea0b8954bc9277642cf0977f Issue introduced in 5.1 with commit 692d7b5d1f9125a1cf0595e979e3b5fb7210547e and fixed in 6.7.7 with commit a4ed943882a8fc057ea5a67643314245e048bbdd Issue introduced in 5.1 with commit 692d7b5d1f9125a1cf0595e979e3b5fb7210547e and fixed in 6.8 with commit fdfbaec5923d9359698cbb286bc0deadbb717504 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-2024-58239 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/f310143961e2d9a0479fca117ce869f8aaecc140 https://git.kernel.org/stable/c/31e10d6cb0c9532ff070cf50da1657c3acee9276 https://git.kernel.org/stable/c/4338032aa90bd1d5b33a4274e8fa8347cda5ee09 https://git.kernel.org/stable/c/6756168add1c6c3ef1c32c335bb843a5d1f99a75 https://git.kernel.org/stable/c/3b952d8fdfcf6fd8ea0b8954bc9277642cf0977f https://git.kernel.org/stable/c/a4ed943882a8fc057ea5a67643314245e048bbdd https://git.kernel.org/stable/c/fdfbaec5923d9359698cbb286bc0deadbb717504