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 BBB1410A1F for ; Wed, 26 Feb 2025 02:27:21 +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=1740536841; cv=none; b=H5AwGNeakqdLfB112FFGag3WFL089g5K/5trNpxpjNbo+Du9ilMSpADekkDuQR/cnCb01gxFh4PkhoL6JVZH6MqzNuqsDf6jMm/S9Qz8geCgoMGL0SPdxN8Fos0uDytwOhV7ZjGdQW4kX2BTW1dA2onYOCz0sUKV7PUSglB3Xyk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536841; c=relaxed/simple; bh=/yLBfKm+47nY2jabbeJheFoC9jWkCWqoX8srdz4yOBs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ofOF8AmEcgkgl3bacr4i/H6jOYxE3BXmA/mIuAUncLsQG5eysxyf2RqwYF5yLMJlMrC6D+fIjsvWC5lmOomr64DtfR7fqYJ7QY+oDpPrMMDWb4XePdJ+p8h2bwe7yrDQWWsMB/9gkID3+vbmR4cR8cRloungZfzICXdL1r5E/dc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jdKNSAs2; 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="jdKNSAs2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38CE0C4CEDD; Wed, 26 Feb 2025 02:27:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536841; bh=/yLBfKm+47nY2jabbeJheFoC9jWkCWqoX8srdz4yOBs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jdKNSAs2iGproU6Gh9wA20gv/R+MGWY+ghWOnUz6Z+jHtcsgB6QyasuzY3qfSQCkD RoGtoGc51ig3NpbxTMaf5tfA3qx/OydR3D9H8gBrbEnIw9acB+BDD1jxHeu9sWY/oC 8/tyRtQGzXQVMDqppLpe2+jZcGTU+T7W2TDkVvOY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49637: ipv4: Fix a data-race around sysctl_fib_sync_mem. Date: Wed, 26 Feb 2025 03:23:20 +0100 Message-ID: <2025022618-CVE-2022-49637-402f@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=2556; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/yLBfKm+47nY2jabbeJheFoC9jWkCWqoX8srdz4yOBs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qm7NbNf74vHuSvnh6qXvb31MifOsUT6f2P5uX2woe 4JoYm1oRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk8SSG+RnVGRscNx/sFfOx rJWzqPj/0OFxB8NsVj2eguQli7b+NVuwbG/zDm7Jx46PAA== 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: ipv4: Fix a data-race around sysctl_fib_sync_mem. While reading sysctl_fib_sync_mem, it can be changed concurrently. So, we need to add READ_ONCE() to avoid a data-race. The Linux kernel CVE team has assigned CVE-2022-49637 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 9ab948a91b2c2abc8e82845c0e61f4b1683e3a4f and fixed in 5.4.207 with commit 7c1acd98fb221dc0d847451b9ab86319f8b9916c Issue introduced in 5.2 with commit 9ab948a91b2c2abc8e82845c0e61f4b1683e3a4f and fixed in 5.10.132 with commit 418b191d5f223a8cb6cab09eae1f72c04ba6adf2 Issue introduced in 5.2 with commit 9ab948a91b2c2abc8e82845c0e61f4b1683e3a4f and fixed in 5.15.56 with commit 9be8aac91960ea32fd0e874758c9afee665c57d2 Issue introduced in 5.2 with commit 9ab948a91b2c2abc8e82845c0e61f4b1683e3a4f and fixed in 5.18.13 with commit 190cd4ff128373271e065afb20f1d2247b3f10c3 Issue introduced in 5.2 with commit 9ab948a91b2c2abc8e82845c0e61f4b1683e3a4f and fixed in 5.19 with commit 73318c4b7dbd0e781aaababff17376b2894745c0 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-49637 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/ipv4/fib_trie.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/7c1acd98fb221dc0d847451b9ab86319f8b9916c https://git.kernel.org/stable/c/418b191d5f223a8cb6cab09eae1f72c04ba6adf2 https://git.kernel.org/stable/c/9be8aac91960ea32fd0e874758c9afee665c57d2 https://git.kernel.org/stable/c/190cd4ff128373271e065afb20f1d2247b3f10c3 https://git.kernel.org/stable/c/73318c4b7dbd0e781aaababff17376b2894745c0