Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 F0D4F3EC829 for ; Fri, 25 Sep 2026 10:26:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331974; cv=none; b=uYlfEJiqb8HhVHkbIx76n9TvTZW6RU1ut8jtVHOvdEPjIj0cBX7FBzLoP7AZU/u6/k19QgJSGxLfme3i4tN0UP3IOtVhiK+bDVFjsMXW3xzYZHmxTJ9VLZLGNdtAqT1zA5NY2UY1DwZapj2IIkcN0cYbG/W3DMRExT/hwrD2U8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331974; c=relaxed/simple; bh=fc15O27TeG4mi5UUygWdik5WYSsMtpoAlBFiN6/trDw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Aj9TgjnZqMMq1rfg7qbWhtZDHIcbPMrf6PCoYKLAiq2kr4hCEOx2DB+wtfp8gwsFSRvXrfw/DIJJUGNaqb/JcAm6a36l7kfFyEepzUqZFt68K/857EajVwLyLzPELoRiTA/iWtOomilYD23oJFE53OW2Mj8D4fj1WLC1kVHqq28= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aNaNQT49; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="aNaNQT49" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 575C71F000FF; Fri, 25 Sep 2026 10:26:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331972; bh=OdS6FnE9huo98NKY8bo+QxzgwDid48n5/9tO2x534BU=; h=From:To:Cc:Subject:Date:Reply-To; b=aNaNQT49MwgjQEDABS5e64amXBXu2h5avilVPgSSLrHLTe9EQR8fBMrl1lHkrCXXT FbE4bleL63lIRChYFV4sJrEz9DGxncjNeZtMblR1Sa3aDZh0DwgkReg6EaCMG7HszC CjfU6agN7gYP4fNqJlp1rdm3isHnjOF1mkFw4ogk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97598: ipv4: fib: bound automatic table ID allocation Date: Fri, 25 Sep 2026 12:22:58 +0200 Message-ID: <2026092559-CVE-2026-97598-8304@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3119; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6vEbKdYm+YHARoX7oooKwqJFXzbBA2538Z/o+AkBnsw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvN2fyO3+IvzArkOm9RzfBlXjjS7N0gWrdneu3blXq GztoXKdjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI0R8M86M4Hki3H/50Yp3N +kDDkEbr90YvZBgW9CW4s8x3733lf99LezNfHZfX+iBjAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ipv4: fib: bound automatic table ID allocation fib_empty_table() probes every table ID from 1 until it finds a free one. IPv4 tables are stored in a 256-bucket hash table, so a dense set of IDs makes each probe walk a growing hash chain while RTNL is held. Automatic table assignment ("ip rule ... table 0") is an IPv4-only legacy path. Bound the automatically allocated ID to 4096 so the RTNL hold stays bounded, without changing lookups of explicitly specified table IDs. This changes user-visible behavior. A table-0 rule previously received the lowest free ID in 1..RT_TABLE_MAX (0xFFFFFFFF). After this patch the search stops at 4096 and the rule add fails with ENOBUFS if that range is fully occupied. Explicit table IDs above 4096 remain usable. The automatic path is unused in practice: it is IPv4-only, not documented by ip-rule, uncovered by kernel selftests, and both NetworkManager and systemd refuse table 0. The Linux kernel CVE team has assigned CVE-2026-97598 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.19 with commit b801f54917b7c6e8540f877ee562cd0725e62ebd and fixed in 6.12.111 with commit bc8d01d856db106f284b19961af6112e10c3e3b4 Issue introduced in 2.6.19 with commit b801f54917b7c6e8540f877ee562cd0725e62ebd and fixed in 6.18.53 with commit fe9a906d2bff2d2707bafd6353b5e032a42aeb35 Issue introduced in 2.6.19 with commit b801f54917b7c6e8540f877ee562cd0725e62ebd and fixed in 7.2.7 with commit 2c29c053a6627dc4f12fcfe6b4860bcd9e5d7503 Issue introduced in 2.6.19 with commit b801f54917b7c6e8540f877ee562cd0725e62ebd and fixed in 7.3-rc3 with commit efdfb1e27a3328085b79540dfe781d537b576ea1 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-2026-97598 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_rules.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/bc8d01d856db106f284b19961af6112e10c3e3b4 https://git.kernel.org/stable/c/fe9a906d2bff2d2707bafd6353b5e032a42aeb35 https://git.kernel.org/stable/c/2c29c053a6627dc4f12fcfe6b4860bcd9e5d7503 https://git.kernel.org/stable/c/efdfb1e27a3328085b79540dfe781d537b576ea1