VDB

CVE-2026-31680

CVE-2026-31680 PUBLISHED CVSS 7.8 HIGH

net: ipv6: flowlabel: defer exclusive option free until RCU teardown

Reported by linux · Published April 25, 2026

In the Linux kernel, the following vulnerability has been resolved: net: ipv6: flowlabel: defer exclusive option free until RCU teardown `ip6fl_seq_show()` walks the global flowlabel hash under the seq-file RCU read-side lock and prints `fl->opt->opt_nflen` when an option block is present. Exclusive flowlabels currently free `fl->opt` as soon as `fl->users` drops to zero in `fl_release()`. However, the surrounding `struct ip6_flowlabel` remains visible in the global hash table until later garbage collection removes it and `fl_free_rcu()` finally tears it down. A concurrent `/proc/net/ip6_flowlabel` reader can therefore race that early `kfree()` and dereference freed option state, triggering a crash in `ip6fl_seq_show()`. Fix this by keeping `fl->opt` alive until `fl_free_rcu()`. That matches the lifetime already required for the enclosing flowlabel while readers can still reach it under RCU.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxd3aedd5ebd4b0b925b0bcda548066803e1318499, d3aedd5ebd4b0b925b0bcda548066803e1318499, d3aedd5ebd4b0b925b0bcda548066803e1318499
LinuxLinux3.9, 0, 5.10.253
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.6, 3.1.7, 3.1.5
linuxlinux_kernel3.9, 3.9, 3.9
amazon:2023kernel-modules-extra-common0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.7, 3.1.5, 3.1.6
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel-headers0
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.12-tools-devel0
amazon:2023perf6.180
amazon:2023python3-perf0
amazon:2023kernel-livepatch-6.12.83-113.1600
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.7, 3.1.5, 3.1.6
amazon:2023kernel-livepatch-6.1.168-202.3200
amazon:2023kernel6.180
amazon:2023bpftool6.180
LinuxLinux0, 3.9, 5.10.253
amazon:2023kernel6.120
amazon:2023kernel6.18-headers0

…and 23 more

Timeline

  • Apr 25, 2026 CVE Published
  • Apr 27, 2026 Security Advisory (103 in total, the first dated here)
  • May 18, 2026 EPSS Score (25 in total, the first dated here)
  • Jul 19, 2026 Coalition ESS Score
  • Aug 11, 2026 Distribution Patch (97 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-31680
vulnetix vdb fixes CVE-2026-31680

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-31680/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›