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 1A06B12C499 for ; Mon, 21 Oct 2024 20:10:22 +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=1729541423; cv=none; b=p/qqfz6SxGBK74/AMhDooCpWlNQcw0rdlCdzMkW+9kWsQBgC5Y6z2WFTDLakwSVOKDjusi1LK/0C+6jJaOr+igv5y9o3H3zUJPl6hKSwupdIUi5fNfDowAl0ZLjPMAbIgKb9qZ1ZxjheHvaWspNcGa4hkCnDseyPScpdfhdzykY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541423; c=relaxed/simple; bh=lM2SVTcqiYExkWvEVhPddQBGYjXYGm5gC0ejWFn7DRQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=McDRDz6WU88a8uf0axemK6okjpAu06d6mRHyoe/dskdwJ/AFgoF5KTqRXA7bv/2HNMaudUC8XkL9DuUckPr6hT5Jg0Uss/PbBtyZvyOCIeJ1j3Hy5Y19YRk3bYXYBuOdZHIaHepoDZYM0bg2Q8ubPl7o4vjoJ8G7jhZTsR1SzPU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Sh0oLf0b; 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="Sh0oLf0b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41055C4CEC3; Mon, 21 Oct 2024 20:10:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541422; bh=lM2SVTcqiYExkWvEVhPddQBGYjXYGm5gC0ejWFn7DRQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Sh0oLf0bKOTLJAheSWxvGrF0A3hqcjW8IYx3FOYLHR35rmLfJC6iwg+kJKLAhbkyf iVbbH6HJKCpO8A+T6e09revWRXpbvPcDkLqpX0w/41nC0RuyJOJHZ51TyZAf/IB/X8 nISpPhPf/SZRLiVFDwuiUZwa/nGz6aQ9Sl+BS7kg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48959: net: dsa: sja1105: fix memory leak in sja1105_setup_devlink_regions() Date: Mon, 21 Oct 2024 22:05:51 +0200 Message-ID: <2024102142-CVE-2022-48959-6120@gregkh> X-Mailer: git-send-email 2.47.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=2133; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lM2SVTcqiYExkWvEVhPddQBGYjXYGm5gC0ejWFn7DRQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW8S8nv1wWz6rJ+DRutfvdn3uqXv/YKr0q/L4PlOml xsunL62riOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmoreUYcFU6/TY1wc2mVRM WFR4smtZpSl75hGGebpTGsPUNRkYc5btW/E/58JO88kpWwE= 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: dsa: sja1105: fix memory leak in sja1105_setup_devlink_regions() When dsa_devlink_region_create failed in sja1105_setup_devlink_regions(), priv->regions is not released. The Linux kernel CVE team has assigned CVE-2022-48959 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit bf425b82059e and fixed in 5.10.159 with commit 4be43e46c3f9 Issue introduced in 5.10 with commit bf425b82059e and fixed in 5.15.83 with commit f3b5dda26cd0 Issue introduced in 5.10 with commit bf425b82059e and fixed in 6.0.13 with commit e5e59629654b Issue introduced in 5.10 with commit bf425b82059e and fixed in 6.1 with commit 78a9ea43fc1a 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-48959 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/dsa/sja1105/sja1105_devlink.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/4be43e46c3f945fc7dd9e23c73a7a66927a3b814 https://git.kernel.org/stable/c/f3b5dda26cd0535aac09ed09c5d83f19b979ec9f https://git.kernel.org/stable/c/e5e59629654b8826f0167dae480d0e3fa0f8f038 https://git.kernel.org/stable/c/78a9ea43fc1a7c06a420b132d2d47cbf4344a5df