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 6E57F1114 for ; Wed, 21 Aug 2024 06:12:09 +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=1724220729; cv=none; b=HqS8mBU9Ts7BvGc3tL+QAerGd1bmwMJLG/YbEBbCnSaZOyLfX33J1LTkUP9WUGS2/PQR+Uh0rdgPdwUV+qbmO1UnREX7C7GySUZnxjJP8zSrYd+4J5qR/RjBsZOXp8HByIBMyHQ0ndgI10CNC4lphw2qBaD5Zq+iqcBhGpM/gmY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220729; c=relaxed/simple; bh=O+z8lR7b0AytKeLQNyNVKgI2HPMMOTjed6UczsbmFqY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EqHE5RlLe2DfD5/EkWXdiukFrOcOXOg5hxb530+HaZgsn9T/WnDDv0hTankNAnEIkmAgvmbxih3oq/55sbOQBAhKVJBFizhsGIcvGCQyMWjLyWBzw8RZL1L4QhG2omet2UoNP+p5K18ktr0JdUNyGllbQwQsS86B3Ksvd+CghG0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aGjh+mbx; 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="aGjh+mbx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3C0AC32782; Wed, 21 Aug 2024 06:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220729; bh=O+z8lR7b0AytKeLQNyNVKgI2HPMMOTjed6UczsbmFqY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aGjh+mbxOKTaiuZFo9UtYuZAwxHbWJixx2hGXtPdQU2UT+WpU3USF/hk1EQe17bpc uH66xoBs/S/6QMk4TjqChsAPX0BjfZDvq+8+UENSK2TUwihu2KkydqxdpYw1G73VS5 afsQsq2d7ICDv/zMx38DLpdFXF6RkTnbEaxJoOyA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48885: ice: Fix potential memory leak in ice_gnss_tty_write() Date: Wed, 21 Aug 2024 14:11:19 +0800 Message-ID: <2024082108-CVE-2022-48885-c422@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=1806; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=O+z8lR7b0AytKeLQNyNVKgI2HPMMOTjed6UczsbmFqY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW/7MtdtxYjJ/myTL6ZDG+8/0P4Y9+/uqLNiJ7eDrp iV67nvfdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE5KoZ5qf9a/HS43n/8MmU JYd235DOEJJpbmdYcFaIPVGHR9bWs1e+X5yh63qxxOalAA== 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: Fix potential memory leak in ice_gnss_tty_write() The ice_gnss_tty_write() return directly if the write_buf alloc failed, leaking the cmd_buf. Fix by free cmd_buf if write_buf alloc failed. The Linux kernel CVE team has assigned CVE-2022-48885 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit d6b98c8d242a and fixed in 6.1.7 with commit 500ca1da9d08 Issue introduced in 6.0 with commit d6b98c8d242a and fixed in 6.2 with commit f58985620f55 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-48885 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_gnss.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/500ca1da9d0876244eb4d1b0ece6fa0e9968d45d https://git.kernel.org/stable/c/f58985620f55580a07d40062c4115d8c9cf6ae27