# CVE-2025-71128: erspan: Initialize options\_len before referencing options.

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.41% (percentile 27, 2026-11-26)
- **CWE:** CWE-665
- **Published:** 2026-01-14T15:07:44.941Z
- **Modified:** 2026-10-19T19:17:14.537Z

## Who should check

- Anyone running Linux \>= bb5e62f2d547c4de6d1b144cbce2373a76c33f18, \< b282b2a9eed848587c1348abdd5d83fa346a2743; \>= bb5e62f2d547c4de6d1b144cbce2373a76c33f18, \< 35ddf66c65eff93fff91406756ba273600bf61a3
- Anyone running Linux 6.15

## Description

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

erspan: Initialize options\_len before referencing options.

The struct ip\_tunnel\_info has a flexible array member named
options that is protected by a counted\_by(options\_len)
attribute.

The compiler will use this information to enforce runtime bounds
checking deployed by FORTIFY\_SOURCE string helpers.

As laid out in the GCC documentation, the counter must be
initialized before the first reference to the flexible array
member.

After scanning through the files that use struct ip\_tunnel\_info
and also refer to options or options\_len, it appears the normal
case is to use the ip\_tunnel\_info\_opts\_set() helper.

Said helper would initialize options\_len properly before copying
data into options, however in the GRE ERSPAN code a partial
update is done, preventing the use of the helper function.

Before this change the handling of ERSPAN traffic in GRE tunnels
would cause a kernel panic when the kernel is compiled with
GCC 15+ and having FORTIFY\_SOURCE configured:

memcpy: detected buffer overflow: 4 byte write of buffer size 0

Call Trace:
 \<IRQ\>
 \_\_fortify\_panic+0xd/0xf
 erspan\_rcv.cold+0x68/0x83
 ? ip\_route\_input\_slow+0x816/0x9d0
 gre\_rcv+0x1b2/0x1c0
 gre\_rcv+0x8e/0x100
 ? raw\_v4\_input+0x2a0/0x2b0
 ip\_protocol\_deliver\_rcu+0x1ea/0x210
 ip\_local\_deliver\_finish+0x86/0x110
 ip\_local\_deliver+0x65/0x110
 ? ip\_rcv\_finish\_core+0xd6/0x360
 ip\_rcv+0x186/0x1a0

Reported-at: https://launchpad.net/bugs/2129580

## Affected and fixed versions

- Linux: \>= bb5e62f2d547c4de6d1b144cbce2373a76c33f18, \< b282b2a9eed848587c1348abdd5d83fa346a2743; \>= bb5e62f2d547c4de6d1b144cbce2373a76c33f18, \< 35ddf66c65eff93fff91406756ba273600bf61a3 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 35ddf66c65eff93fff91406756ba273600bf61a3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-71128. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-71128.md
Affected: Linux >= bb5e62f2d547c4de6d1b144cbce2373a76c33f18, < b282b2a9eed848587c1348abdd5d83fa346a2743; >= bb5e62f2d547c4de6d1b144cbce2373a76c33f18, < 35ddf66c65eff93fff91406756ba273600bf61a3; Linux 6.15
Fixed in: Linux 35ddf66c65eff93fff91406756ba273600bf61a3

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-71128 being exploited?

There is no confirmed exploitation: CVE-2025-71128 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.41% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-71128?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-71128?

Linux \>= bb5e62f2d547c4de6d1b144cbce2373a76c33f18, \< b282b2a9eed848587c1348abdd5d83fa346a2743; \>= bb5e62f2d547c4de6d1b144cbce2373a76c33f18, \< 35ddf66c65eff93fff91406756ba273600bf61a3; Linux 6.15.

### Is there a fix for CVE-2025-71128?

Yes. Fixed in Linux 35ddf66c65eff93fff91406756ba273600bf61a3. Upgrade Linux to 35ddf66c65eff93fff91406756ba273600bf61a3 or later.

### How do I check if I'm affected by CVE-2025-71128?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/b282b2a9eed848587c1348abdd5d83fa346a2743>
- patch: <https://git.kernel.org/stable/c/35ddf66c65eff93fff91406756ba273600bf61a3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-71128>

HTML: <https://flawdb.com/CVE-2025-71128> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-71128>
