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 0F561FC0C for ; Thu, 20 Jun 2024 11:16:41 +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=1718882202; cv=none; b=Ttnd5XH4aWcY78SNNdCrQZfMvhEVERN4fKDXAMagfYXv3nE4KudgOKSYzRKiscptbDzv2o7aXqlF/xhqUCAd4CBU+CE2an5k1xP2EjRoHKTHrcaJk/zME1NIS96FIzwO7mufPUcrlfIMGf3ibB9B44Cs0YnfFlq+c1aNSnljW+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718882202; c=relaxed/simple; bh=1WhtDHBWnupAgjAs415uHOCg3rsRu7zvUePz7Z5VJEY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lr0d0c271NvLhZ/vNHdkf/eTdT+qfxHuyI/P1RWHJOun37YtYh2T8zc87B+NDMtpgQRLL2TxGWcJ6FmYtBTECPUsXURONsWZ1sMvdUdP+ynLMFKT073wldsfkYQ0Iits3P+sbDmEhy3ZqagGdMAUkCNKba9Y8yJ1ma6PS7hqNcQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fFxOiL9D; 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="fFxOiL9D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DD8CC2BD10; Thu, 20 Jun 2024 11:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718882201; bh=1WhtDHBWnupAgjAs415uHOCg3rsRu7zvUePz7Z5VJEY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fFxOiL9DXYIOF+lJ1yFmAEEAfsTgaJp0rOAI5X8s0wMISK4qwsH3iT9Qig0gLcE0c qSaADBbNTJGnEeT/iNYJqCxQaC2ivK09zDDd8tPeiv5XkrkX1LC+bYRmM3UdBWRF1Q flUUPQYUmgiG/bE00vEoRuSJKr7k5MoYB5wNT0kU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48720: net: macsec: Fix offload support for NETDEV_UNREGISTER event Date: Thu, 20 Jun 2024 13:16:00 +0200 Message-ID: <2024062056-CVE-2022-48720-5541@gregkh> X-Mailer: git-send-email 2.45.2 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=2431; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1WhtDHBWnupAgjAs415uHOCg3rsRu7zvUePz7Z5VJEY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkl/DmFL24892devrtsjWeVYvzr8qIXz6Y72WfUNy2ct zv/T//njlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhImRLDglk9GaL10/iPZvb+ m9eo/13AJyikm2FB7699a3tt2X+EZyxKtJ3j/7VPzrAPAA== 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: macsec: Fix offload support for NETDEV_UNREGISTER event Current macsec netdev notify handler handles NETDEV_UNREGISTER event by releasing relevant SW resources only, this causes resources leak in case of macsec HW offload, as the underlay driver was not notified to clean it's macsec offload resources. Fix by calling the underlay driver to clean it's relevant resources by moving offload handling from macsec_dellink() to macsec_common_dellink() when handling NETDEV_UNREGISTER event. The Linux kernel CVE team has assigned CVE-2022-48720 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 3cf3227a21d1 and fixed in 5.10.99 with commit 2e7f5b6ee1a7 Issue introduced in 5.6 with commit 3cf3227a21d1 and fixed in 5.15.22 with commit e7a0b3a0806d Issue introduced in 5.6 with commit 3cf3227a21d1 and fixed in 5.16.8 with commit 8299be160aad Issue introduced in 5.6 with commit 3cf3227a21d1 and fixed in 5.17 with commit 9cef24c8b76c 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-48720 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/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/2e7f5b6ee1a7a2c628253a95b0a95b582901ef1b https://git.kernel.org/stable/c/e7a0b3a0806dae3cc81931f0e83055ca2ac6f455 https://git.kernel.org/stable/c/8299be160aad8548071d080518712dec0df92bd5 https://git.kernel.org/stable/c/9cef24c8b76c1f6effe499d2f131807c90f7ce9a