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 62CBF144D00 for ; Tue, 21 May 2024 15:25:12 +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=1716305112; cv=none; b=jr+6/7QxTiqz3ghHIvTIr/LK3ZXu2IuIBpU7gdsMWAGlhwA7PEvwp9a1zf4I12vSldfxV8Jn086G/OPDxEFyAjF8KvELbxK/4rDm/MCDW5CYdg6ULubhR0mlVenjvxwByuHfD99jllLuN7HTsPjB2f/sPvibPjZ3kvIv8f+2Nxs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305112; c=relaxed/simple; bh=aapS5piivmkAGXdW+q23njG/xy1vY6mS66RIhwEYj80=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hP10++oKrN2/bhJR0aMzRwYb1WaOdECkBkQnlssgWLM+8Cr/W8o48ZHC4OwoX6zsnzBepN9GrexI7Huv0Ydh2Vog0b/Mg59SIiE/2+gq8sTqDXA4AcLfaf7lIT7mugJIb470YeiL0vabq2/b20tDLger8oLXlY0nutP1May1Xn8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=moLyGWoI; 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="moLyGWoI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD81AC2BD11; Tue, 21 May 2024 15:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305112; bh=aapS5piivmkAGXdW+q23njG/xy1vY6mS66RIhwEYj80=; h=From:To:Cc:Subject:Date:Reply-to:From; b=moLyGWoILwQZNFw3fXHY8j2QM6ExAcTxNqrUe99nsAaE5qPYFG1J91hYswdtyJERL h0jkLn4t7dgS05UFg6DiXUarKc71zeRlxccn88YjM+Ptt8pe+aOj5KYcEMBeSM6MH1 e6A01zRC7HSVdRIM1+F3enz0L+jsZwlY6cIfxQZY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48709: ice: switch: fix potential memleak in ice_add_adv_recipe() Date: Tue, 21 May 2024 17:22:57 +0200 Message-ID: <2024052155-CVE-2022-48709-4ab8@gregkh> X-Mailer: git-send-email 2.45.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=1836; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aapS5piivmkAGXdW+q23njG/xy1vY6mS66RIhwEYj80=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+ewKKHC/qijfue71L5ZOsFmfTB8kID9nFiUImDMu9s 1YoXr3YEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNZ/INhwdWGqrkeE6VTrQQC 7IUUr9/Y9Gb5TIYFPewFL5YwrZS+H5P+xex6uP5nLZ5+AA== 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: ice: switch: fix potential memleak in ice_add_adv_recipe() When ice_add_special_words() fails, the 'rm' is not released, which will lead to a memory leak. Fix this up by going to 'err_unroll' label. Compile tested only. The Linux kernel CVE team has assigned CVE-2022-48709 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 8b032a55c1bd and fixed in 6.1.12 with commit 47f4ff6f23f0 Issue introduced in 5.16 with commit 8b032a55c1bd and fixed in 6.2 with commit 4a606ce68426 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-48709 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/intel/ice/ice_switch.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/47f4ff6f23f00f5501ff2d7054c1a37c170a7aa0 https://git.kernel.org/stable/c/4a606ce68426c88ff2563382b33cc34f3485fe57