---
id: CVE-2026-97940
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  ipv6: fix fib6 walker UAF on seq stop

  ipv6_route_iter_active() treats a walker in FWS_U at the table root as
  already unlinked
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  ipv6: fix fib6 walker UAF on seq stop

  ipv6_route_iter_active() treats a walker in FWS_U at the table root as
  already unlinked. fib6_del_route() can move a still-linked…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-825
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 8d2ca1d7b5c3e63b3a8a81ae99015b615c5f2bf7 <
    9a3f73d62c86271614eda4c43315230896a37018
  - >-
    Linux >= 8d2ca1d7b5c3e63b3a8a81ae99015b615c5f2bf7 <
    63407cddabc5992b5ac03af165559f4a1968a032
  - >-
    Linux >= 8d2ca1d7b5c3e63b3a8a81ae99015b615c5f2bf7 <
    05b687ee04f816658f4a9cf586f4d2f129157943
  - >-
    Linux >= 8d2ca1d7b5c3e63b3a8a81ae99015b615c5f2bf7 <
    14fdaba201fdff92a3e45994e02bccda409cb19d
  - >-
    Linux >= 8d2ca1d7b5c3e63b3a8a81ae99015b615c5f2bf7 <
    0eede1689610e9eeaf729ba86fd1321799eb91a0
  - >-
    Linux >= 8d2ca1d7b5c3e63b3a8a81ae99015b615c5f2bf7 <
    b89b691dd00bf39b9ba39ab9446f8c62f419fa7b
  - >-
    Linux >= 8d2ca1d7b5c3e63b3a8a81ae99015b615c5f2bf7 <
    4553cfafa8d05c4ce20b1d18f79d9bb3b303fc02
  - >-
    Linux >= 8d2ca1d7b5c3e63b3a8a81ae99015b615c5f2bf7 <
    19b4ed644d68098cc62ab612727f40d30f43476c
  - Linux 3.13
published: '2026-09-25'
updated: '2026-10-03'
sourceUpdated: '2026-10-03T11:18:19.610'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-97940'
references:
  - url: 'https://git.kernel.org/stable/c/05b687ee04f816658f4a9cf586f4d2f129157943'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/0eede1689610e9eeaf729ba86fd1321799eb91a0'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/14fdaba201fdff92a3e45994e02bccda409cb19d'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/19b4ed644d68098cc62ab612727f40d30f43476c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4553cfafa8d05c4ce20b1d18f79d9bb3b303fc02'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/63407cddabc5992b5ac03af165559f4a1968a032'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9a3f73d62c86271614eda4c43315230896a37018'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b89b691dd00bf39b9ba39ab9446f8c62f419fa7b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-97940.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-97940'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2541042'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-97940'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-97940'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-97940.mbox
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00169
epssPercentile: 0.06192
scores:
  nvd: 7.8
  vendor: 7
  cna: 7.8
ingestedAt: '2026-09-25T11:06:38.882Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

ipv6: fix fib6 walker UAF on seq stop

ipv6_route_iter_active() treats a walker in FWS_U at the table root as
already unlinked. fib6_del_route() can move a still-linked walker into
that same state when the current leaf is the last route at the root,
so ipv6_route_native_seq_stop() skips fib6_walker_unlink(). The seq
private object can then be freed while it remains on
net->ipv6.fib6_walkers. A later route deletion walks the dangling list
and uses the freed walker.

Use the list head as membership state and reinitialize it when
unlinking. Keep the existing w->node check so a never-started iterator
with a zeroed private object is not treated as linked.

The same stop helper is used by /proc/net/ipv6_route and by the BPF
ipv6_route iterator. The BPF show path only widens the race.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, … · updated 2026-09-29 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-97940.json)
