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 6EC831AAA2F for ; Wed, 26 Feb 2025 01:59:13 +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=1740535153; cv=none; b=KMfz0pfyca5jG8MfphEwbBW324lRaZG+46B8Fo9iaM7NpBu+J6YWyCokLpc7NRUPIOar1NmtqwEFwb5QkJziU+LeladfbIQ1Fb0PCylVED3Trx1wtAQX4JsrgqHwN0B8AwYoqbSHRpxYQO2ISwz5oguhlndAo+b+xml/Ta+D1u0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535153; c=relaxed/simple; bh=WoX7dkILjsH/eQsDh68WttCgAWAGqC9XsbdNneweuok=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gxSlnM0T+W920pHvpcacf8CMVYREezoBHStwnNqL+/Ct/s6j889aVbnJb4i5RFHI2wFdemyGyVs8mrQhtbs5+H8PLd/tTMwairr66hT2LOvy4dDKowm6cKgXx9NRV5xHbVvkPUPS3UgoDsAgccpm41oCncs579P5nM/hLwpFnqA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E1ErSEbc; 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="E1ErSEbc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4024CC4CEDD; Wed, 26 Feb 2025 01:59:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535153; bh=WoX7dkILjsH/eQsDh68WttCgAWAGqC9XsbdNneweuok=; h=From:To:Cc:Subject:Date:Reply-to:From; b=E1ErSEbcI6Fm/FJ9ApU1wzhiMAH1wZ4tABhtezLsY0ClCsdFCRH6ACqVuPtNRUW69 ON/KYEdpydyx72x2cu8XT8xJqhDe1CPZgAPh3GtUGonsrcUyzWlp7iJcJ9QBJMZIl4 vV7KiSWv6A1FD0vev0eU2iY/415AFvsfqK5dwvkE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49183: net/sched: act_ct: fix ref leak when switching zones Date: Wed, 26 Feb 2025 02:56:28 +0100 Message-ID: <2025022614-CVE-2022-49183-1962@gregkh> X-Mailer: git-send-email 2.48.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=2642; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WoX7dkILjsH/eQsDh68WttCgAWAGqC9XsbdNneweuok=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Sty6Vzfk7+6WnVIgfJ0j/Fxf5PX0pMi5L9T2Xeh+9 txwse7KjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIRguGBbvcTyz2+7XFknFa aaDkt+r+3mIHI4b5tctdV7GafTe8vMnhIr/9pfC165+fAgA= 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: act_ct: fix ref leak when switching zones When switching zones or network namespaces without doing a ct clear in between, it is now leaking a reference to the old ct entry. That's because tcf_ct_skb_nfct_cached() returns false and tcf_ct_flow_table_lookup() may simply overwrite it. The fix is to, as the ct entry is not reusable, free it already at tcf_ct_skb_nfct_cached(). The Linux kernel CVE team has assigned CVE-2022-49183 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.26 with commit a95ea90deb3071c1ded77a05e91cfebc5238d908 and fixed in 5.15.33 with commit bcbf4e5c3b5b373cd61528392dd1ec8e9c0fd33d Issue introduced in 5.16.12 with commit e9408de00e5ecd0dbe91cf061c7da23711c4febb and fixed in 5.16.19 with commit 4bb42d73def9411e5cad885b9811987d72431df1 Issue introduced in 5.17 with commit 2f131de361f6d0eaff17db26efdb844c178432f8 and fixed in 5.17.2 with commit b24793a37d91aacad7cb9893b226a7924a89636a Issue introduced in 5.17 with commit 2f131de361f6d0eaff17db26efdb844c178432f8 and fixed in 5.18 with commit bcb74e132a76ce0502bb33d5b65533a4ed72d159 Issue introduced in 5.10.103 with commit 0fc1847359964e95e521cf2bb2b10f8e33dd0970 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-49183 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/act_ct.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/bcbf4e5c3b5b373cd61528392dd1ec8e9c0fd33d https://git.kernel.org/stable/c/4bb42d73def9411e5cad885b9811987d72431df1 https://git.kernel.org/stable/c/b24793a37d91aacad7cb9893b226a7924a89636a https://git.kernel.org/stable/c/bcb74e132a76ce0502bb33d5b65533a4ed72d159