From mboxrd@z Thu Jan 1 00:00:00 1970 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 EEC4F54BDA for ; Sun, 28 Apr 2024 13:05:57 +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=1714309558; cv=none; b=DE3fbVJ6wjByafwrljs4rr2KdDoQsvgwM6Qh5Vl8AA1SaouFt9l0Q27AD2/8Tx9uH3+QQg8hdwMUr+mbmNFB4saBAqMm/QpGX4BOhB/vR/sM9qOkzylvB7JNkiUQdtTEaPqsNOlnax4yRD4PRBZPkB2u4GoOK1wMm6KlJvXsQLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714309558; c=relaxed/simple; bh=T693V2agmvR+aTRfIR6ZwxrS6amIfGo8qcYHsLsBD1c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lF6wYU5QUmdPW9N1QEe6+7xGWmaBnHpTebW0AbNUrgNIhjfiIE7mk8AlhkWwwkdA06tbrN6neomqbVX3gaSz5uXZafooXqVx/D2U+E5nulPyhEYFlpDtB+JMTkg+8dl+nxk4FedfZ6i8QNF4qp48PrzW19FsqfOhkFgpx22MbaI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S9IoYVaR; 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="S9IoYVaR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EEB8C113CC; Sun, 28 Apr 2024 13:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714309557; bh=T693V2agmvR+aTRfIR6ZwxrS6amIfGo8qcYHsLsBD1c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=S9IoYVaRWaLheKGbBNEw1YfDfEw0nI2RYKaHbqAFhmMeEwbU9Ix6ny1iMm6HWonMX HXQ+JwyCeSTcy434Om0+GSPWOQ1E2hgzLP7CB+yex0lEZ9SAn9RvPMeN4uYnOyMhLl bNsXwltX6KrkotYlGisP7apqQQPjLLXQ35SOz9fI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48639: net: sched: fix possible refcount leak in tc_new_tfilter() Date: Sun, 28 Apr 2024 15:05:00 +0200 Message-ID: <2024042855-CVE-2022-48639-be80@gregkh> X-Mailer: git-send-email 2.44.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=2329; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=T693V2agmvR+aTRfIR6ZwxrS6amIfGo8qcYHsLsBD1c=; b=owGbwMvMwCRo6H6F97bub03G02pJDGl6nuXlWYbzX0ZeOb7whcxHAXbxzWqRl+cwf2UymP7bv ruyZrJuRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEdz7DHH7l+b65fNKZew8x Zsk0NO+rU5HOZZjDseSSg1vITO7l29amXi9/dpfLlnsxAA== 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: sched: fix possible refcount leak in tc_new_tfilter() tfilter_put need to be called to put the refount got by tp->ops->get to avoid possible refcount leak when chain->tmplt_ops != NULL and chain->tmplt_ops != tp->ops. The Linux kernel CVE team has assigned CVE-2022-48639 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit 7d5509fa0d3d and fixed in 5.4.215 with commit 903f7d322c17 Issue introduced in 5.1 with commit 7d5509fa0d3d and fixed in 5.10.146 with commit 8844c750eeb0 Issue introduced in 5.1 with commit 7d5509fa0d3d and fixed in 5.15.71 with commit f8162aed962b Issue introduced in 5.1 with commit 7d5509fa0d3d and fixed in 5.19.12 with commit 0559d91ee3a2 Issue introduced in 5.1 with commit 7d5509fa0d3d and fixed in 6.0 with commit c2e1cfefcac3 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-48639 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: net/sched/cls_api.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/903f7d322c17d8e306d766404b4604e81653902a https://git.kernel.org/stable/c/8844c750eeb03452e2b3319c27a526f447b82596 https://git.kernel.org/stable/c/f8162aed962be8fa07445b2b5928e84ab40dd8d7 https://git.kernel.org/stable/c/0559d91ee3a2cd81b15ad5cd507539d6da867f88 https://git.kernel.org/stable/c/c2e1cfefcac35e0eea229e148c8284088ce437b5