CVE-2026-31680
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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | d3aedd5ebd4b0b925b0bcda548066803e1318499, d3aedd5ebd4b0b925b0bcda548066803e1318499, d3aedd5ebd4b0b925b0bcda548066803e1318499 |
| Linux | Linux | 3.9, 0, 5.10.253 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.6, 3.1.7, 3.1.5 |
| linux | linux_kernel | 3.9, 3.9, 3.9 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.7, 3.1.5, 3.1.6 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-livepatch-6.12.83-113.160 | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.7, 3.1.5, 3.1.6 |
| amazon:2023 | kernel-livepatch-6.1.168-202.320 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| Linux | Linux | 0, 3.9, 5.10.253 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
…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