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 2EB14478847 for ; Wed, 16 Sep 2026 08:48:58 +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=1789548540; cv=none; b=u02kK0WIiws3dPzfOfMPaghhIRP6aarQtDxhj3UPHtyzHEe3Ukk8Fdsyh1Wi8Mb317SLsDNFb2eoTdRs7j9+VYBzbp+tsKhZhhqGp1Hem3/I73pDNwd0Xf4Vqdwnr3jR/gM8/bHTkcKfJYNAM/CDvlIuW4WBRqPPk7PDb6WKZp4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789548540; c=relaxed/simple; bh=obbDSaTaTID/8XgbcxLF/MuftFAovm7+aKtUCJmCYz4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Sw3ddRhLS9KLrq9kaL/R0jhrIeQPaZtvyRfuDK8xEj7BXbSxCawARk2X2nU+vTq0yypROfrVGLdgUI1cUDSe6pTjMj7i0MiW6CDkKgzJFcvU3K1rcPlHJPtLuFthV0R2Qgou9P/DlrgRhdveOSmNVZm4hdPmyLEXJn6qIgLgelo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HzMuNvKF; 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="HzMuNvKF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 423CE1F000FF; Wed, 16 Sep 2026 08:48:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789548538; bh=Y7p4NWCF7zeqqYS9Ir19+TT5fzg1SMrEuCOUEP34ZBM=; h=From:To:Cc:Subject:Date:Reply-To; b=HzMuNvKF6n/mlAG12aI2J8CS1oUknSIjuYCfxD6s9+MkELp4nuLge/SoTlbyle/Qy t95oPwgIqWKOhKK9kHrJwjn0LfRbRf1w5h6BQHA9/VAa+7JaGNyDTo5vVwsMTyr4Qy +9qccxzRtqbEzIop8TGW8T3Tn3viKMLWPv8qkQ3c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89790: ipv6: avoid divide by zero in rt6_multipath_rebalance Date: Wed, 16 Sep 2026 09:46:54 +0100 Message-ID: <2026091642-CVE-2026-89790-3d41@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=2745; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2PuIVN7/LaEeHKXshAREbSWdt+6zxdKjx6Y5T7G3fwo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmrwosMnG/Obc2usWz4FsElUHnvc0fui4V9Lu0TfJQav s/y2HC9I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSlcyw4Fz4kh7dtKeS9yT8 V5uvuyHNfXn6QoYFS1exLzIxfv4yflds4nG5K9kXLoruBgA= 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: ipv6: avoid divide by zero in rt6_multipath_rebalance rt6_multipath_rebalance() calculates the total eligible nexthop weight in one pass and programs upper bounds in a second pass. Since RTM_NEWROUTE is RTNL-free, a concurrent ignore_routes_with_linkdown update can make the first pass return zero while the second sees an eligible nexthop, causing rt6_upper_bound_set() to divide by zero. UBSAN: division-overflow in net/ipv6/route.c:4845:17 Oops: divide error: 0000 [#1] SMP KASAN NOPTI rt6_upper_bound_set() net/ipv6/route.c:4845 rt6_multipath_rebalance() fib6_add_rt2node() ip6_route_multipath_add() inet6_rtm_newroute() Skip upper-bound calculation when the first pass reports a zero total. This respects the lock-free performance considerations here and solves insecure scenarios. The Linux kernel CVE team has assigned CVE-2026-89790 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit bd11ff421d36abdb585b9104fa70057bf01b3110 and fixed in 6.18.52 with commit f30cf8fd9872299c0c27f9916252ba2b9f422dce Issue introduced in 6.16 with commit bd11ff421d36abdb585b9104fa70057bf01b3110 and fixed in 7.2.6 with commit f82b5dbb2fef65b52a62d5ffe05e0483c4385a83 Issue introduced in 6.16 with commit bd11ff421d36abdb585b9104fa70057bf01b3110 and fixed in 7.3-rc1 with commit d2c26c2911dd1a363c488add4fb63eb5f0f28f87 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-89790 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/ipv6/route.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/f30cf8fd9872299c0c27f9916252ba2b9f422dce https://git.kernel.org/stable/c/f82b5dbb2fef65b52a62d5ffe05e0483c4385a83 https://git.kernel.org/stable/c/d2c26c2911dd1a363c488add4fb63eb5f0f28f87