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 3BA5F1114 for ; Wed, 21 Aug 2024 06:12:01 +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=1724220721; cv=none; b=Cam+Dvb4qEcsTwKzYWYVdEk9W+F23lGLLu9LmGsTkXtjKkATLHUt3kU9pvlzUVssUabZ9U0UOTB8Xqex/qxIcGd8d4iUdPsoZMa3P+CG6tWeNfX8ukbx5RMhPHsVVVNScDdltKsjzA7eALqBcObdt2mXi8sZrFxaeYPSrG6JB4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220721; c=relaxed/simple; bh=2xxJ31Ey785LTnMACLqcMQMMPPw5aDliLXovL4MIdME=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LQemXrV39vLZsZwwQLkA4/LKdlVq7AknfjgL2DhhNv7JQAn0uc/HBkKQu+kebmETOHQupTBKYO3VxB9TnD4leGiZDZLbCZ478Ag8ujKRqI/+kzi3dh0ODUuwIQ6YV+ZKtQzOX5ajBuS84G7ng+oYzqOt1uZrsw2p/8JjQMZTidY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Yevo/pXJ; 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="Yevo/pXJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD934C32782; Wed, 21 Aug 2024 06:12:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220721; bh=2xxJ31Ey785LTnMACLqcMQMMPPw5aDliLXovL4MIdME=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Yevo/pXJWiyCfsurSAZqMEY9ZSwMmD5gX2JABG1hlB2O0hl8TdmzUlhd7tpxy63f1 /wPnklEsQta4sfALseKKiKEoiEo+y/AmSkRIDA2x8unBe5k2uPOJXhb5wXAgt0zZ1t n8BUiSh4T8zX72Hwm4rVu0O0+7NNFfftwvtY8iXo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48882: net/mlx5e: Fix macsec possible null dereference when updating MAC security entity (SecY) Date: Wed, 21 Aug 2024 14:11:16 +0800 Message-ID: <2024082108-CVE-2022-48882-2b80@gregkh> X-Mailer: git-send-email 2.46.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=2134; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2xxJ31Ey785LTnMACLqcMQMMPPw5aDliLXovL4MIdME=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW/4YdK1IfbEm1l4mYhVXgY+X6ez2ubwbefVkDnyf+ Ylnd+zdjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIugjDguM30rdF/1IU4RO5 u4LlptqCf2af1zAs2PTyyUElrZPXzT/J2CRr2T0svzeFAwA= 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: Fix macsec possible null dereference when updating MAC security entity (SecY) Upon updating MAC security entity (SecY) in hw offload path, the macsec security association (SA) initialization routine is called. In case of extended packet number (epn) is enabled the salt and ssci attributes are retrieved using the MACsec driver rx_sa context which is unavailable when updating a SecY property such as encoding-sa hence the null dereference. Fix by using the provided SA to set those attributes. The Linux kernel CVE team has assigned CVE-2022-48882 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 4411a6c0abd3 and fixed in 6.1.7 with commit 514d9c6a3921 Issue introduced in 6.1 with commit 4411a6c0abd3 and fixed in 6.2 with commit 9828994ac492 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-2022-48882 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/macsec.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/514d9c6a39213d8200884e70f60ce7faef1ee597 https://git.kernel.org/stable/c/9828994ac492e8e7de47fe66097b7e665328f348