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 EA10D134CC2 for ; Wed, 10 Apr 2024 19:02:33 +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=1712775754; cv=none; b=ruDZYVYkk4FNDf+De4+ABOQdxolw0NDRc7DNDNdKZrKcySCzSxnHAMVWzaKNmWU4mVgt0u1Hr8n3T4JWWp8P/etOWC47KZVntxccmwxRl9FE74b+V9RJrCRRl1s/WAOuLbZQ5+wDrI1cNMluF9qdMBGV1hxoGfnxsEByxaA5/aE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712775754; c=relaxed/simple; bh=rtRxadVhAU5+9DS8pEMoZ8G0HNx/GnpXvrujjMI/isQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iEIc4d8c5loNyogKsQjrA3eCC0mM9HqFRR5TlwO9pP9hTNdtBJmapLd5TUCxv24KXm2irsRH01g6ZYlMRcNDZz1QBgJDADUhKOSNFb0f2HbO5mEBu8Pv68pYG2me1+j295MlWCsvL73fe2MSIho88OQmkH5Qm/HuO0I8T2wuejU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FQLteSJ2; 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="FQLteSJ2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7008DC433F1; Wed, 10 Apr 2024 19:02:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712775753; bh=rtRxadVhAU5+9DS8pEMoZ8G0HNx/GnpXvrujjMI/isQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FQLteSJ2QdPvqcBQ5teE6G47rHusENSgx1pD2Fx2ZbkNw/Sp0I4yQJ4Vctf6Ec3KO 5TOks7e9fPa9o4zdUZtz3IBlnF9DgOPYW+g7a4kafiB8nRnngFQ3ZkQkPs/GJI2V+o dAqmBwOvsq8t40GhLNlIXZ9Fmnt6J0iEHeO57QEo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47215: net/mlx5e: kTLS, Fix crash in RX resync flow Date: Wed, 10 Apr 2024 21:02:08 +0200 Message-ID: <2024041005-CVE-2021-47215-2718@gregkh> X-Mailer: git-send-email 2.44.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=1990; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rtRxadVhAU5+9DS8pEMoZ8G0HNx/GnpXvrujjMI/isQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlij3T/uf3WWjzjbfNNu8faWvYqumpK9crrIrbFfVZl+ S55JlqnI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyZQHDgvOX3rNETde2qHcM 4utN5Ga0FbQ4wrDgYmhg22vmAKt7DIvXP4zWfbdkyufVAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: kTLS, Fix crash in RX resync flow For the TLS RX resync flow, we maintain a list of TLS contexts that require some attention, to communicate their resync information to the HW. Here we fix list corruptions, by protecting the entries against movements coming from resync_handle_seq_match(), until their resync handling in napi is fully completed. The Linux kernel CVE team has assigned CVE-2021-47215 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit e9ce991bce5b and fixed in 5.15.5 with commit ebeda7a9528a Issue introduced in 5.13 with commit e9ce991bce5b and fixed in 5.16 with commit cc4a9cc03faa 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-2021-47215 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/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.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/ebeda7a9528ae690e6bf12791a868f0cca8391f2 https://git.kernel.org/stable/c/cc4a9cc03faa6d8db1a6954bb536f2c1e63bdff6