CVE-2026-31680 (GCVE-0-2026-31680)

Vulnerability from cvelistv5 – Published: 2026-04-25 08:46 – Updated: 2026-04-27 14:05
VLAI?
Title
net: ipv6: flowlabel: defer exclusive option free until RCU teardown
Summary
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.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: d3aedd5ebd4b0b925b0bcda548066803e1318499 , < 4b6798024f7b2d535f3db1002c760143cdbd1bd3 (git)
Affected: d3aedd5ebd4b0b925b0bcda548066803e1318499 , < 3c54b66c83fb8fcbde8e6a7bf90b65856e39f827 (git)
Affected: d3aedd5ebd4b0b925b0bcda548066803e1318499 , < 5a6b15f861b7c1304949e3350d23490a5fe429fd (git)
Affected: d3aedd5ebd4b0b925b0bcda548066803e1318499 , < 6c7fbdb8ffde6413640de7cfbd7c976c353e89f8 (git)
Affected: d3aedd5ebd4b0b925b0bcda548066803e1318499 , < 8027964931785cb73d520ac70a342a3dc16c249b (git)
Affected: d3aedd5ebd4b0b925b0bcda548066803e1318499 , < 414726b69921fe6355ae453f5b35e68dd078342a (git)
Affected: d3aedd5ebd4b0b925b0bcda548066803e1318499 , < 572ce62778519a7d4d1c15f55dd2e45a474133c4 (git)
Affected: d3aedd5ebd4b0b925b0bcda548066803e1318499 , < 9ca562bb8e66978b53028fa32b1a190708e6a091 (git)
Create a notification for this product.
    Linux Linux Affected: 3.9
Unaffected: 0 , < 3.9 (semver)
Unaffected: 5.10.253 , ≤ 5.10.* (semver)
Unaffected: 5.15.203 , ≤ 5.15.* (semver)
Unaffected: 6.1.168 , ≤ 6.1.* (semver)
Unaffected: 6.6.134 , ≤ 6.6.* (semver)
Unaffected: 6.12.81 , ≤ 6.12.* (semver)
Unaffected: 6.18.22 , ≤ 6.18.* (semver)
Unaffected: 6.19.12 , ≤ 6.19.* (semver)
Unaffected: 7.0 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/ipv6/ip6_flowlabel.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "4b6798024f7b2d535f3db1002c760143cdbd1bd3",
              "status": "affected",
              "version": "d3aedd5ebd4b0b925b0bcda548066803e1318499",
              "versionType": "git"
            },
            {
              "lessThan": "3c54b66c83fb8fcbde8e6a7bf90b65856e39f827",
              "status": "affected",
              "version": "d3aedd5ebd4b0b925b0bcda548066803e1318499",
              "versionType": "git"
            },
            {
              "lessThan": "5a6b15f861b7c1304949e3350d23490a5fe429fd",
              "status": "affected",
              "version": "d3aedd5ebd4b0b925b0bcda548066803e1318499",
              "versionType": "git"
            },
            {
              "lessThan": "6c7fbdb8ffde6413640de7cfbd7c976c353e89f8",
              "status": "affected",
              "version": "d3aedd5ebd4b0b925b0bcda548066803e1318499",
              "versionType": "git"
            },
            {
              "lessThan": "8027964931785cb73d520ac70a342a3dc16c249b",
              "status": "affected",
              "version": "d3aedd5ebd4b0b925b0bcda548066803e1318499",
              "versionType": "git"
            },
            {
              "lessThan": "414726b69921fe6355ae453f5b35e68dd078342a",
              "status": "affected",
              "version": "d3aedd5ebd4b0b925b0bcda548066803e1318499",
              "versionType": "git"
            },
            {
              "lessThan": "572ce62778519a7d4d1c15f55dd2e45a474133c4",
              "status": "affected",
              "version": "d3aedd5ebd4b0b925b0bcda548066803e1318499",
              "versionType": "git"
            },
            {
              "lessThan": "9ca562bb8e66978b53028fa32b1a190708e6a091",
              "status": "affected",
              "version": "d3aedd5ebd4b0b925b0bcda548066803e1318499",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/ipv6/ip6_flowlabel.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.9"
            },
            {
              "lessThan": "3.9",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.253",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.203",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.168",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.134",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.81",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.22",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.19.*",
              "status": "unaffected",
              "version": "6.19.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.253",
                  "versionStartIncluding": "3.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.203",
                  "versionStartIncluding": "3.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.168",
                  "versionStartIncluding": "3.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.134",
                  "versionStartIncluding": "3.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.81",
                  "versionStartIncluding": "3.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.22",
                  "versionStartIncluding": "3.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19.12",
                  "versionStartIncluding": "3.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0",
                  "versionStartIncluding": "3.9",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ipv6: flowlabel: defer exclusive option free until RCU teardown\n\n`ip6fl_seq_show()` walks the global flowlabel hash under the seq-file\nRCU read-side lock and prints `fl-\u003eopt-\u003eopt_nflen` when an option block\nis present.\n\nExclusive flowlabels currently free `fl-\u003eopt` as soon as `fl-\u003eusers`\ndrops to zero in `fl_release()`. However, the surrounding\n`struct ip6_flowlabel` remains visible in the global hash table until\nlater garbage collection removes it and `fl_free_rcu()` finally tears it\ndown.\n\nA concurrent `/proc/net/ip6_flowlabel` reader can therefore race that\nearly `kfree()` and dereference freed option state, triggering a crash\nin `ip6fl_seq_show()`.\n\nFix this by keeping `fl-\u003eopt` alive until `fl_free_rcu()`. That matches\nthe lifetime already required for the enclosing flowlabel while readers\ncan still reach it under RCU."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-04-27T14:05:00.799Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/4b6798024f7b2d535f3db1002c760143cdbd1bd3"
        },
        {
          "url": "https://git.kernel.org/stable/c/3c54b66c83fb8fcbde8e6a7bf90b65856e39f827"
        },
        {
          "url": "https://git.kernel.org/stable/c/5a6b15f861b7c1304949e3350d23490a5fe429fd"
        },
        {
          "url": "https://git.kernel.org/stable/c/6c7fbdb8ffde6413640de7cfbd7c976c353e89f8"
        },
        {
          "url": "https://git.kernel.org/stable/c/8027964931785cb73d520ac70a342a3dc16c249b"
        },
        {
          "url": "https://git.kernel.org/stable/c/414726b69921fe6355ae453f5b35e68dd078342a"
        },
        {
          "url": "https://git.kernel.org/stable/c/572ce62778519a7d4d1c15f55dd2e45a474133c4"
        },
        {
          "url": "https://git.kernel.org/stable/c/9ca562bb8e66978b53028fa32b1a190708e6a091"
        }
      ],
      "title": "net: ipv6: flowlabel: defer exclusive option free until RCU teardown",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-31680",
    "datePublished": "2026-04-25T08:46:56.807Z",
    "dateReserved": "2026-03-09T15:48:24.130Z",
    "dateUpdated": "2026-04-27T14:05:00.799Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-31680",
      "date": "2026-05-04",
      "epss": "0.00013",
      "percentile": "0.02408"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-31680\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-04-25T09:16:01.673\",\"lastModified\":\"2026-04-27T18:32:22.917\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: ipv6: flowlabel: defer exclusive option free until RCU teardown\\n\\n`ip6fl_seq_show()` walks the global flowlabel hash under the seq-file\\nRCU read-side lock and prints `fl-\u003eopt-\u003eopt_nflen` when an option block\\nis present.\\n\\nExclusive flowlabels currently free `fl-\u003eopt` as soon as `fl-\u003eusers`\\ndrops to zero in `fl_release()`. However, the surrounding\\n`struct ip6_flowlabel` remains visible in the global hash table until\\nlater garbage collection removes it and `fl_free_rcu()` finally tears it\\ndown.\\n\\nA concurrent `/proc/net/ip6_flowlabel` reader can therefore race that\\nearly `kfree()` and dereference freed option state, triggering a crash\\nin `ip6fl_seq_show()`.\\n\\nFix this by keeping `fl-\u003eopt` alive until `fl_free_rcu()`. That matches\\nthe lifetime already required for the enclosing flowlabel while readers\\ncan still reach it under RCU.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/3c54b66c83fb8fcbde8e6a7bf90b65856e39f827\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/414726b69921fe6355ae453f5b35e68dd078342a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/4b6798024f7b2d535f3db1002c760143cdbd1bd3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/572ce62778519a7d4d1c15f55dd2e45a474133c4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5a6b15f861b7c1304949e3350d23490a5fe429fd\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/6c7fbdb8ffde6413640de7cfbd7c976c353e89f8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8027964931785cb73d520ac70a342a3dc16c249b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9ca562bb8e66978b53028fa32b1a190708e6a091\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…