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

seg6: validate SRH length before reading fixed fields

seg6_validate_srh() reads fixed SRH fields such as srh->type and
srh->hdrlen before checking that the supplied length covers the fixed
struct ipv6_sr_hdr fields.

The BPF SEG6 encap path reaches this with a BPF program-supplied pointer
and length: bpf_lwt_push_encap() and the SEG6 local BPF END_B6 and
END_B6_ENCAP actions call bpf_push_seg6_encap(), which forwards the
length to seg6_validate_srh() with no minimum-size guard. A 2-byte SEG6
encap header can therefore make the validator read srh->type at offset 2
beyond the caller-supplied buffer.

Reject lengths shorter than the fixed SRH at the top of
seg6_validate_srh(), before any field is read. This fixes the BPF helper
path and keeps the common validator robust.
Published: 2026-08-15
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The bug occurs in the Linux kernel's seg6_validate_srh function, which checks the Segment Routing Header (SRH) before any fields are read. No guard ensures the supplied length covers the fixed SRH fields, so a 2‑byte SEG6 header that a BPF program can supply causes the validator to read srh->type and srh->len from beyond the provided buffer. This buffer overread and boundary violation can expose unintended data or corrupt kernel memory, an out‑of‑bounds read (CWE-125), allowing an attacker to disclose sensitive information or crash the system.

Affected Systems

Any Linux kernel that builds with the BPF Segment Routing infrastructure and has not incorporated the seg6_validate_srh patch is affected. This includes standard distributions and custom kernels that enable BPF SEG6 actions. No precise version range is listed, so all builds prior to the commit that introduced the patch are considered vulnerable.

Risk and Exploitability

The CVSS score of 7.8 classifies the flaw as high severity, indicating significant potential impact on kernel confidentiality, integrity, and availability. The EPSS score of <1% signals a low probability of active exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog, suggesting no known widespread attacks. Nevertheless, the flaw lies in a privileged kernel path and requires an adversary able to inject or load a BPF program that uses SEG6 actions to trigger the overread. If successful, the attacker could read beyond the provided buffer, potentially exposing kernel memory contents or corrupting kernel state.

Generated by OpenCVE AI on August 22, 2026 at 06:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that contains the seg6_validate_srh patch.
  • Restrict or sandbox BPF programs that use SEG6 actions, allowing only trusted sources to load them.
  • If a patch is not yet available, disable or remove SEG6 BPF actions from the configuration to eliminate the vulnerable code path.

Generated by OpenCVE AI on August 22, 2026 at 06:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 05:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Wed, 19 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 17 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Mon, 17 Aug 2026 09:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-20

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sat, 15 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-20

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: seg6: validate SRH length before reading fixed fields seg6_validate_srh() reads fixed SRH fields such as srh->type and srh->hdrlen before checking that the supplied length covers the fixed struct ipv6_sr_hdr fields. The BPF SEG6 encap path reaches this with a BPF program-supplied pointer and length: bpf_lwt_push_encap() and the SEG6 local BPF END_B6 and END_B6_ENCAP actions call bpf_push_seg6_encap(), which forwards the length to seg6_validate_srh() with no minimum-size guard. A 2-byte SEG6 encap header can therefore make the validator read srh->type at offset 2 beyond the caller-supplied buffer. Reject lengths shorter than the fixed SRH at the top of seg6_validate_srh(), before any field is read. This fixes the BPF helper path and keeps the common validator robust.
Title seg6: validate SRH length before reading fixed fields
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:43:42.988Z

Reserved: 2026-08-09T03:40:39.925Z

Link: CVE-2026-72400

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:13.567

Modified: 2026-08-17T06:19:06.633

Link: CVE-2026-72400

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72400 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T07:00:07Z

Weaknesses