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 D43EF1A8407 for ; Wed, 26 Feb 2025 01:58: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=1740535102; cv=none; b=cP93IQpBlqAGRnhMw+AwQp1C6UEPDnqhl1iQEmT6Vng5G1R2j/LfIuHIL3QO+Bssk6sGhL691elfbV06VKPxmLY09OmNldFBDYzcbIhob6cfOY2LpcwT2o5b8ofguzkZI2zRnBWeM+ZQNKXMGYbQ5IvZ6tndWAaUf4IvX9c1Dz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535102; c=relaxed/simple; bh=CTko5xsenzh6/FeadAxhOSxiQIiIAFqVL+CHUSzepxo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=L9tRA4ewAxJyw0NagkygRfRnbVcjJtw4jZva/Fz9AzLUaERBkhvBInqlg7UGTjf+Ut0T8FDuVe4Guj3VUMg92H3FqFnFq73hHISMQusuS99dFYdox6Caz0HwixdTpejYGROJHPatd9nA4azCcIisQO5JjngTtnSXMKkixHGnUFI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vNDfFGsC; 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="vNDfFGsC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA4C5C4CEDD; Wed, 26 Feb 2025 01:58:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535102; bh=CTko5xsenzh6/FeadAxhOSxiQIiIAFqVL+CHUSzepxo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vNDfFGsC3v0gmZXGWx7FUS4E2JH3yMsoKUg+Rj4NcfIEcp33KTkKV345eUmJE4bRH ci5SSsKjWir2DaKQvYgVDmq4XdyhoYNZWlKvcP8NgfT7mNB2vO+50u7uAOTEvd6obE mYYjXWU7lcjDlOiVCX0/DXv32cF+7Lu19p8TUQcE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49110: netfilter: conntrack: revisit gc autotuning Date: Wed, 26 Feb 2025 02:55:15 +0100 Message-ID: <2025022602-CVE-2022-49110-5519@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=2607; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CTko5xsenzh6/FeadAxhOSxiQIiIAFqVL+CHUSzepxo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SqzW5W3+bHCj5U3k2vaeljo+9p3Fq3+4thR9Ydzfw zEzxndxRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkQpVhfny3tqBB5IdDieJ7 NYMeFF1SrFrhzrBgT7Ipy8pTXvkyF6q3O2ncXz3lP98XAA== 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: netfilter: conntrack: revisit gc autotuning as of commit 4608fdfc07e1 ("netfilter: conntrack: collect all entries in one cycle") conntrack gc was changed to run every 2 minutes. On systems where conntrack hash table is set to large value, most evictions happen from gc worker rather than the packet path due to hash table distribution. This causes netlink event overflows when events are collected. This change collects average expiry of scanned entries and reschedules to the average remaining value, within 1 to 60 second interval. To avoid event overflows, reschedule after each bucket and add a limit for both run time and number of evictions per run. If more entries have to be evicted, reschedule and restart 1 jiffy into the future. The Linux kernel CVE team has assigned CVE-2022-49110 to this issue. Affected and fixed versions =========================== Fixed in 5.15.34 with commit 58d52743ae85d28c9335c6034d6ce350b8689951 Fixed in 5.16.20 with commit 7cd361d5e6d986c0d4cafb9ceaa803359048ae15 Fixed in 5.17.3 with commit 592e57591826f3d09c28d755a39ea8e9d13705ad Fixed in 5.18 with commit 2cfadb761d3d0219412fd8150faea60c7e863833 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-49110 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/netfilter/nf_conntrack_core.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/58d52743ae85d28c9335c6034d6ce350b8689951 https://git.kernel.org/stable/c/7cd361d5e6d986c0d4cafb9ceaa803359048ae15 https://git.kernel.org/stable/c/592e57591826f3d09c28d755a39ea8e9d13705ad https://git.kernel.org/stable/c/2cfadb761d3d0219412fd8150faea60c7e863833