Skip to content
Heist/ feed
Back to feed
CriticalFix available

seg6: separate dst_cache for input and output paths in seg6 lwtunnel

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: seg6: separate dst_cache for input and output paths in seg6 lwtunnel The seg6 lwtunnel uses a single dst_cache per encap route, shared between seg6_input_core() and seg6_output_core(). These two paths can perform the post-encap SID lookup in different routing contexts (e.g., ip rules matching on the ingress interface, or VRF table separation). Whichever path runs first populates the cache, and the other reuses it blindly, bypassing its own lookup. Fix this by splitting the cache into cache_input and cache_output, so each path maintains its own cached dst independently.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.253, 5.15.203, 6.1.169, 6.12.82, 6.18.23, 6.19.13, 6.6.135
CVEs
CVE-2026-31668
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 01:48 UTC · Revision 1

Source evidence

seg6: separate dst_cache for input and output paths in seg6 lwtunnel

core-osv · Original source

Published 24 Apr 2026, 14:45 UTC

In the Linux kernel, the following vulnerability has been resolved: seg6: separate dst_cache for input and output paths in seg6 lwtunnel The seg6 lwtunnel uses a single dst_cache per encap route, shared between seg6_input_core() and seg6_output_core(). These two paths can perform the post-encap SID lookup in different routing contexts (e.g., ip rules matching on the ingress interface, or VRF table separation). Whichever path runs first populates the cache, and the other reuses it blindly, bypassing its own lookup. Fix this by splitting the cache into cache_input and cache_output, so each path maintains its own cached dst independently.

osv:CVE-2026-31668

Kernel

Fixed versions: 5.10.253, 5.15.203, 6.1.169, 6.6.135, 6.12.82, 6.18.23, 6.19.13

Complete source record
{
  "id": "4546bff99e96f1118bea094c89eb7e0eecbdcdbc6e48abbf6e2936fb67b167d6",
  "url": "https://osv.dev/vulnerability/CVE-2026-31668",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "seg6: separate dst_cache for input and output paths in seg6 lwtunnel",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: seg6: separate dst_cache for input and output paths in seg6 lwtunnel The seg6 lwtunnel uses a single dst_cache per encap route, shared between seg6_input_core() and seg6_output_core(). These two paths can perform the post-encap SID lookup in different routing contexts (e.g., ip rules matching on the ingress interface, or VRF table separation). Whichever path runs first populates the cache, and the other reuses it blindly, bypassing its own lookup. Fix this by splitting the cache into cache_input and cache_output, so each path maintains its own cached dst independently.",
    "evidence": "osv:CVE-2026-31668",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.253",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.203",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.169",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.135",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.82",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.23",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.19.13",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-31668",
      "aliases": [
        "CVE-2026-31668"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6c8702c60b88651072460f3f4026c7dfe2521d12"
                },
                {
                  "fixed": "1dec91d3b1cefb82635761b7812154af3ef46449"
                },
                {
                  "fixed": "750569d6987a0ff46317a4b86eb3907e296287bf"
                },
                {
                  "fixed": "57d0374d14fa667dec6952173b93e7e84486d5c9"
                },
                {
                  "fixed": "84d458018b147176b259347103fccb7e93abd2b1"
                },
                {
                  "fixed": "6305ad032b03d2ea4181b953a66e19a9a6ed053c"
                },
                {
                  "fixed": "fb56de5d99218de49d5d43ef3a99e062ecd0f9a1"
                },
                {
                  "fixed": "17d87d42874f5d6c1a0ccc6d9190dfe82a9a7a6a"
                },
                {
                  "fixed": "c3812651b522fe8437ebb7063b75ddb95b571643"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31668.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.10.0"
                },
                {
                  "fixed": "5.10.253"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.203"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.169"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.135"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.82"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.23"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "6.19.13"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31668.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.680957345Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/17d87d42874f5d6c1a0ccc6d9190dfe82a9a7a6a",
        "https://git.kernel.org/stable/c/1dec91d3b1cefb82635761b7812154af3ef46449",
        "https://git.kernel.org/stable/c/57d0374d14fa667dec6952173b93e7e84486d5c9",
        "https://git.kernel.org/stable/c/6305ad032b03d2ea4181b953a66e19a9a6ed053c",
        "https://git.kernel.org/stable/c/750569d6987a0ff46317a4b86eb3907e296287bf",
        "https://git.kernel.org/stable/c/84d458018b147176b259347103fccb7e93abd2b1",
        "https://git.kernel.org/stable/c/c3812651b522fe8437ebb7063b75ddb95b571643",
        "https://git.kernel.org/stable/c/fb56de5d99218de49d5d43ef3a99e062ecd0f9a1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31668.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-31668",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31668.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-31668",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517107,
  "published_at": "2026-04-24T14:45:16.63+00:00"
}