{"id":"CVE-2026-89790","aliases":["CVE-2026-89790"],"related":[],"kind":"vulnerability","state":"published","title":"ipv6: avoid divide by zero in rt6_multipath_rebalance","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: avoid divide by zero in rt6_multipath_rebalance\n\nrt6_multipath_rebalance() calculates the total eligible nexthop weight\nin one pass and programs upper bounds in a second pass. Since\nRTM_NEWROUTE is RTNL-free, a concurrent\nignore_routes_with_linkdown update can make the first pass return zero\nwhile the second sees an eligible nexthop, causing\nrt6_upper_bound_set() to divide by zero.\n\nUBSAN: division-overflow in net/ipv6/route.c:4845:17\nOops: divide error: 0000 [#1] SMP KASAN NOPTI\n  rt6_upper_bound_set() net/ipv6/route.c:4845\n  rt6_multipath_rebalance()\n  fib6_add_rt2node()\n  ip6_route_multipath_add()\n  inet6_rtm_newroute()\n\nSkip upper-bound calculation when the first pass reports a zero total.\nThis respects the lock-free performance considerations here and solves\ninsecure scenarios.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: avoid divide by zero in rt6_multipath_rebalance\n\nrt6_multipath_rebalance() calculates the total eligible nexthop weight\nin one pass and programs upper bounds in a second pass. Since\nRTM_NEWROUTE is RTNL-free, a concurrent\nignore_routes_with_linkdown update can make the first pass return zero\nwhile the second sees an eligible nexthop, causing\nrt6_upper_bound_set() to divide by zero.\n\nUBSAN: division-overflow in net/ipv6/route.c:4845:17\nOops: divide error: 0000 [#1] SMP KASAN NOPTI\n  rt6_upper_bound_set() net/ipv6/route.c:4845\n  rt6_multipath_rebalance()\n  fib6_add_rt2node()\n  ip6_route_multipath_add()\n  inet6_rtm_newroute()\n\nSkip upper-bound calculation when the first pass reports a zero total.\nThis respects the lock-free performance considerations here and solves\ninsecure scenarios.","source":"cvelist"}],"published":"2026-09-16T08:48:26.343Z","modified":"2026-10-19T09:18:22.690Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"bd11ff421d36abdb585b9104fa70057bf01b3110","fixed":"f30cf8fd9872299c0c27f9916252ba2b9f422dce","status":"affected"},{"type":"git","introduced":"bd11ff421d36abdb585b9104fa70057bf01b3110","fixed":"f82b5dbb2fef65b52a62d5ffe05e0483c4385a83","status":"affected"},{"type":"git","introduced":"bd11ff421d36abdb585b9104fa70057bf01b3110","fixed":"d2c26c2911dd1a363c488add4fb63eb5f0f28f87","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f30cf8fd9872299c0c27f9916252ba2b9f422dce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f82b5dbb2fef65b52a62d5ffe05e0483c4385a83","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d2c26c2911dd1a363c488add4fb63eb5f0f28f87","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89790","url":"https://www.cve.org/CVERecord?id=CVE-2026-89790","licence":"CVE Terms of Use","modified":"2026-10-19T08:52:44.129Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89790","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89790","licence":"Public domain","modified":"2026-10-19T09:18:22.690Z"}],"updatedAt":"2026-11-25T22:59:38.926Z","epss":{"score":0.00198,"percentile":0.10038,"date":"2026-12-01T12:00:22.000Z"}}