# CVE-2026-89783: xfrm6: fix out-of-bounds write in xfrm6\_input\_addr() when secpath is full

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.76% (percentile 51, 2026-11-26)
- **Published:** 2026-09-16T08:48:21.761Z
- **Modified:** 2026-10-19T09:18:21.810Z

## Who should check

- Anyone running Linux \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 91fc387f63c00ddfb5221127a17bac97549a8343; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 68e8737fe8e72f085c608cff322b3d2de8340af1; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 8fe2c53fb81f5ad5be43af2ad09583f7c78b4b77; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< bdcda866c89f9a8b1acdabf02d26cde9fbe501d8; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 48996649222e95008cdb98cd58579e3fc8e5ee06; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 0f679e0523ddfff3fb554336ceb874b0e51e9cd3; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 5f35a29a5eed3d80befd32050843ac88dea3d61a; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 5d9e3bf34fec9a5d237e4b7cef4a707bc2e091bc
- Anyone running Linux 2.6.25

## Description

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

xfrm6: fix out-of-bounds write in xfrm6\_input\_addr() when secpath is full

The depth check in xfrm6\_input\_addr() is off by one:

  if (1 + sp-\>len == XFRM\_MAX\_DEPTH)
          goto drop;
  ...
  sp-\>xvec\[sp-\>len++\] = x;

xfrm\_input() can leave sp-\>len == XFRM\_MAX\_DEPTH, and the transport-mode
receive path re-enters IPv6 input via xfrm\_trans\_reinject() with that
secpath preserved. If the inner packet carries a destination-options HAO
option or a type-2 routing header, xfrm6\_input\_addr() is called with
sp-\>len == XFRM\_MAX\_DEPTH; the check (1 + 6 == 6) is false, so
sp-\>xvec\[sp-\>len++\] writes one slot past the 6-element xvec\[\]. The write
stays within the sec\_path allocation (invisible to KASAN); UBSAN\_BOUNDS
flags it and panics under panic\_on\_warn.

Use "sp-\>len \>= XFRM\_MAX\_DEPTH", matching xfrm\_input(). This also
restores one chain level the old check rejected at sp-\>len == 5.

  UBSAN: array-index-out-of-bounds in net/ipv6/xfrm6\_input.c:309:10
  index 6 is out of range for type 'xfrm\_state \*\[6\]'

## Affected and fixed versions

- Linux: \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 91fc387f63c00ddfb5221127a17bac97549a8343; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 68e8737fe8e72f085c608cff322b3d2de8340af1; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 8fe2c53fb81f5ad5be43af2ad09583f7c78b4b77; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< bdcda866c89f9a8b1acdabf02d26cde9fbe501d8; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 48996649222e95008cdb98cd58579e3fc8e5ee06; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 0f679e0523ddfff3fb554336ceb874b0e51e9cd3; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 5f35a29a5eed3d80befd32050843ac88dea3d61a; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 5d9e3bf34fec9a5d237e4b7cef4a707bc2e091bc (cvelist)
- Linux: 2.6.25 (cvelist)

## Mitigation

- Upgrade Linux to 5d9e3bf34fec9a5d237e4b7cef4a707bc2e091bc or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-89783.md
Affected: Linux >= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, < 91fc387f63c00ddfb5221127a17bac97549a8343; >= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, < 68e8737fe8e72f085c608cff322b3d2de8340af1; >= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, < 8fe2c53fb81f5ad5be43af2ad09583f7c78b4b77; >= 9473e1f631de339c50bde1e…
Fixed in: Linux 91fc387f63c00ddfb5221127a17bac97549a8343, Linux 68e8737fe8e72f085c608cff322b3d2de8340af1, Linux 8fe2c53fb81f5ad5be43af2ad09583f7c78b4b77, Linux 48996649222e95008cdb98cd58579e3fc8e5ee06, Linux 0f679e0523ddfff3fb554336ceb874b0e51e9cd3, Linux 5f35a29a5eed3d80befd32050843ac88dea3d61a, Linux 5d9e3…

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-2026-89783 being exploited?

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

### How serious is CVE-2026-89783?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-89783?

Linux \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 91fc387f63c00ddfb5221127a17bac97549a8343; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 68e8737fe8e72f085c608cff322b3d2de8340af1; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 8fe2c53fb81f5ad5be43af2ad09583f7c78b4b77; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< bdcda866c89f9a8b1acdabf02d26cde9fbe501d8; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 48996649222e95008cdb98cd58579e3fc8e5ee06; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 0f679e0523ddfff3fb554336ceb874b0e51e9cd3; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 5f35a29a5eed3d80befd32050843ac88dea3d61a; \>= 9473e1f631de339c50bde1e3bd09e1045fe90fd5, \< 5d9e3bf34fec9a5d237e4b7cef4a707bc2e091bc; Linux 2.6.25.

### Is there a fix for CVE-2026-89783?

Yes. Fixed in Linux 91fc387f63c00ddfb5221127a17bac97549a8343, Linux 68e8737fe8e72f085c608cff322b3d2de8340af1, Linux 8fe2c53fb81f5ad5be43af2ad09583f7c78b4b77, Linux 48996649222e95008cdb98cd58579e3fc8e5ee06, Linux 0f679e0523ddfff3fb554336ceb874b0e51e9cd3, Linux 5f35a29a5eed3d80befd32050843ac88dea3d61a, Linux 5d9e3bf34fec9a5d237e4b7cef4a707bc2e091bc. Upgrade Linux to 5d9e3bf34fec9a5d237e4b7cef4a707bc2e091bc or later.

### How do I check if I'm affected by CVE-2026-89783?

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

- other: <https://git.kernel.org/stable/c/91fc387f63c00ddfb5221127a17bac97549a8343>
- other: <https://git.kernel.org/stable/c/68e8737fe8e72f085c608cff322b3d2de8340af1>
- other: <https://git.kernel.org/stable/c/8fe2c53fb81f5ad5be43af2ad09583f7c78b4b77>
- other: <https://git.kernel.org/stable/c/bdcda866c89f9a8b1acdabf02d26cde9fbe501d8>
- other: <https://git.kernel.org/stable/c/48996649222e95008cdb98cd58579e3fc8e5ee06>
- other: <https://git.kernel.org/stable/c/0f679e0523ddfff3fb554336ceb874b0e51e9cd3>
- other: <https://git.kernel.org/stable/c/5f35a29a5eed3d80befd32050843ac88dea3d61a>
- other: <https://git.kernel.org/stable/c/5d9e3bf34fec9a5d237e4b7cef4a707bc2e091bc>

## 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-2026-89783>

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