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 6A00B1CB53B for ; Mon, 21 Oct 2024 20:12: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=1729541541; cv=none; b=JxgHeHaUZaVfgUaIxcyjg/Xez6ZMMQ4mX+nGHZBzrlKlWNHGAdGxmyWdkRL4WtD2ELREQ+OOqyAbk/lNw/x/2zZLgzP2I94FKW1vGs3H4euhSu1YHue9vR5YxjmduKFI0fWwcOdI1fhg7TL+STypSl5r5nAHYXNDMOMmV7yQOwQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541541; c=relaxed/simple; bh=nD5nKCkMJ2oA0MQbQNpWbWWO8t6lCC7qtwNPWXddO1o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ayypc0+jcL/EKIdiZSmdB1Lv+RV4td8+NJ83z5SJtoEGCkBY109e2Ss+eOM00JNgsThToL9oo69WcYkiMMmsSgf+r8KUG8tq6N0SJ82MwIsv9Xkaz2y8EsU0/7woHoccLzFJ/KReTJM2y3V1nrEdQFBs445HOUiBX76yYx45D+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O6oM4cXl; 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="O6oM4cXl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBECAC4CEC3; Mon, 21 Oct 2024 20:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541541; bh=nD5nKCkMJ2oA0MQbQNpWbWWO8t6lCC7qtwNPWXddO1o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=O6oM4cXlgIRqe4RGkfpk1qLHS5JW9UTUqOWJAOBJeV/k2zEW/k3xdU+Cgbnc+eXkP PPtUAi3qlG0CzLDMkxoSNVsco23wDyFqqIXo+XsMgpWt2/Qhd6hVDlzk1lEdV5vi5k Op7hCYdHH92FdKU5PYYIxDvG7YT6QAzGaiz2lAAE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48999: ipv4: Handle attempt to delete multipath route when fib_info contains an nh reference Date: Mon, 21 Oct 2024 22:06:31 +0200 Message-ID: <2024102150-CVE-2022-48999-c5fd@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=2758; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nD5nKCkMJ2oA0MQbQNpWbWWO8t6lCC7qtwNPWXddO1o=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW+Rqt1rmVap1l3O/c/9aX3WR/5ubmXjDFj3v3D1f9 h2YsbuhI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay05Vhfu26BlNJz22v4j+9 co9/dzWzMGzjHIYFranWJ42esHXG6i1cfSrVyf7tG94cAA== 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: Handle attempt to delete multipath route when fib_info contains an nh reference Gwangun Jung reported a slab-out-of-bounds access in fib_nh_match: fib_nh_match+0xf98/0x1130 linux-6.0-rc7/net/ipv4/fib_semantics.c:961 fib_table_delete+0x5f3/0xa40 linux-6.0-rc7/net/ipv4/fib_trie.c:1753 inet_rtm_delroute+0x2b3/0x380 linux-6.0-rc7/net/ipv4/fib_frontend.c:874 Separate nexthop objects are mutually exclusive with the legacy multipath spec. Fix fib_nh_match to return if the config for the to be deleted route contains a multipath spec while the fib_info is using a nexthop object. The Linux kernel CVE team has assigned CVE-2022-48999 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 493ced1ac47c and fixed in 5.4.226 with commit cc3cd130ecfb Issue introduced in 5.3 with commit 493ced1ac47c and fixed in 5.10.158 with commit 0b5394229eba Issue introduced in 5.3 with commit 493ced1ac47c and fixed in 5.15.82 with commit 25174d91e4a3 Issue introduced in 5.3 with commit 493ced1ac47c and fixed in 6.0.12 with commit bb20a2ae241b Issue introduced in 5.3 with commit 493ced1ac47c and fixed in 6.1 with commit 61b91eb33a69 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-48999 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_semantics.c tools/testing/selftests/net/fib_nexthops.sh 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/cc3cd130ecfb8b0ae52e235e487bae3f16a24a32 https://git.kernel.org/stable/c/0b5394229ebae09afc07aabccb5ffd705ffd250e https://git.kernel.org/stable/c/25174d91e4a32a24204060d283bd5fa6d0ddf133 https://git.kernel.org/stable/c/bb20a2ae241be846bc3c11ea4b3a3c69e41d51f2 https://git.kernel.org/stable/c/61b91eb33a69c3be11b259c5ea484505cd79f883