# CVE-2026-68420: xfrm: reject optional IPTFS templates in outbound policies

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **Published:** 2026-08-10T12:04:40.933Z
- **Modified:** 2026-08-17T06:17:51.013Z

## Who should check

- Anyone running Linux \>= d1716d5a44c37e5743bf6ea4e5cdbdab37727f27, \< d7fc6f351c478586980a521d63b0214d9c055e78; \>= d1716d5a44c37e5743bf6ea4e5cdbdab37727f27, \< 9333f4b6f44858fc98eb12bf26b8d2959eb975d5; \>= d1716d5a44c37e5743bf6ea4e5cdbdab37727f27, \< ea528f18231ec0f33317be57f8866913b19aba6e
- Anyone running Linux 6.14

## Description

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

xfrm: reject optional IPTFS templates in outbound policies

syzbot reported a stack-out-of-bounds read in xfrm\_state\_find()
which flows from xfrm\_tmpl\_resolve\_one().

Commit 3d776e31c841 ("xfrm: Reject optional tunnel/BEET mode
templates in outbound policies") disallowed optional tunnel and
BEET in outbound policies to prevent this. Later when IPTFS
added, it was not covered by that fix and can still trigger
the out-of-bounds read;

Extend the check to disallow optional IPTFS in outbound policies
as well. IPTFS should be identical to tunnel mode.
IN and FWD policies are not affected: xfrm\_tmpl\_resolve\_one()
is only reachable via the outbound path.

Reproducer, before:

ip link add dummy0 type dummy
ip link set dummy0 up
ip addr add 10.1.1.1/24 dev dummy0
ip xfrm policy add src 10.1.1.1/32 dst 10.1.1.2/32 dir out tmpl
  src fc00::dead:1 dst fc00::dead:2 proto esp reqid 1 mode iptfs
  level use tmpl src fc00::dead:1 dst fc00::dead:2 proto esp reqid
  2 mode transport
ping -W 1 -c 1 10.1.1.2
PING 10.1.1.2 (10.1.1.2) 56(84) bytes of data.

\[   64.168420\] ==================================================================
\[   64.169977\] BUG: KASAN: stack-out-of-bounds in \_\_xfrm6\_addr\_hash+0x11e/0x170
\[   64.169977\] Read of size 4 at addr ffff88800e1ffd20 by task ping/2844

\[   64.169977\] CPU: 2 UID: 0 PID: 2844 Comm: ping Not tainted 7.1.0-rc7-00180-geb23b588430a \#98 PREEMPT(full)
\[   64.169977\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
\[   64.169977\] Call Trace:
\[   64.169977\]  \<TASK\>
\[   64.169977\]  dump\_stack\_lvl+0x47/0x70
\[   64.169977\]  ? \_\_xfrm6\_addr\_hash+0x11e/0x170
\[   64.169977\]  print\_report+0x152/0x4b0
\[   64.169977\]  ? ksys\_mmap\_pgoff+0x6d/0xa0
\[   64.169977\]  ? entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
\[   64.169977\]  ? rcu\_read\_unlock\_sched+0xa/0x20
\[   64.169977\]  ? \_\_virt\_addr\_valid+0x21b/0x230
\[   64.169977\]  ? \_\_xfrm6\_addr\_hash+0x11e/0x170
\[   64.169977\]  kasan\_report+0xa8/0xd0
\[   64.169977\]  ? \_\_xfrm6\_addr\_hash+0x11e/0x170
\[   64.169977\]  \_\_xfrm6\_addr\_hash+0x11e/0x170
\[   64.169977\]  \_\_xfrm\_dst\_hash+0x24/0xc0
\[   64.169977\]  xfrm\_state\_find+0xa2d/0x2f90
\[   64.169977\]  ? \_\_pfx\_xfrm\_state\_find+0x10/0x10
\[   64.169977\]  ? \_\_pfx\_ftrace\_graph\_ret\_addr+0x10/0x10
\[   64.169977\]  ? \_\_pfx\_ftrace\_graph\_ret\_addr+0x10/0x10
\[   64.169977\]  xfrm\_tmpl\_resolve\_one+0x210/0x570
\[   64.169977\]  ? \_\_pfx\_xfrm\_tmpl\_resolve\_one+0x10/0x10
\[   64.169977\]  ? \_\_pfx\_stack\_trace\_consume\_entry+0x10/0x10
\[   64.169977\]  ? kernel\_text\_address+0x5b/0x80
\[   64.169977\]  ? \_\_kernel\_text\_address+0xe/0x30
\[   64.169977\]  ? unwind\_get\_return\_address+0x5e/0x90
\[   64.169977\]  ? arch\_stack\_walk+0x8c/0xe0
\[   64.169977\]  xfrm\_tmpl\_resolve+0x130/0x200
\[   64.169977\]  ? \_\_pfx\_xfrm\_tmpl\_resolve+0x10/0x10
\[   64.169977\]  ? \_\_pfx\_xfrm\_policy\_inexact\_lookup\_rcu+0x10/0x10
\[   64.169977\]  ? \_\_refcount\_add\_not\_zero.constprop.0+0xb2/0x110
\[   64.169977\]  ? \_\_pfx\_\_\_refcount\_add\_not\_zero.constprop.0+0x10/0x10
\[   64.169977\]  xfrm\_resolve\_and\_create\_bundle+0xd5/0x310
\[   64.169977\]  ? \_\_pfx\_xfrm\_resolve\_and\_create\_bundle+0x10/0x10
\[   64.169977\]  ? \_\_pfx\_xfrm\_policy\_lookup\_bytype+0x10/0x10
\[   64.169977\]  ? \_\_pfx\_xfrm\_policy\_lookup\_bytype+0x10/0x10
\[   64.169977\]  xfrm\_lookup\_with\_ifid+0x3d8/0xb80
\[   64.169977\]  ? \_\_pfx\_xfrm\_lookup\_with\_ifid+0x10/0x10
\[   64.169977\]  ? ip\_route\_output\_key\_hash+0xc6/0x110
\[   64.169977\]  ? kasan\_save\_track+0x10/0x30
\[   64.169977\]  xfrm\_lookup\_route+0x18/0xe0
\[   64.169977\]  ip4\_datagram\_release\_cb+0x4c9/0x530
\[   64.169977\]  ? \_\_pfx\_ip4\_datagram\_release\_cb+0x10/0x10
\[   64.169977\]  ? do\_raw\_spin\_lock+0x71/0xc0
\[   64.169977\]  ? \_\_pfx\_do\_raw\_spin\_lock+0x10/0x10
\[   64.169977\]  release\_sock+0xb0/0x170
\[   64.169977\]  udp\_connect+0x43/0x50
\[   64.169977\]  \_\_sys\_connect+0xa6/0x100
\[   64.169977\]  ? alloc\_fd+0x2e9/0x300
\[   64.169977\]  ? \_\_pfx\_\_\_sys\_connect+0x10/0x10
\[   64.169977\]  ? preempt\_latency
---truncated---

## Affected and fixed versions

- Linux: \>= d1716d5a44c37e5743bf6ea4e5cdbdab37727f27, \< d7fc6f351c478586980a521d63b0214d9c055e78; \>= d1716d5a44c37e5743bf6ea4e5cdbdab37727f27, \< 9333f4b6f44858fc98eb12bf26b8d2959eb975d5; \>= d1716d5a44c37e5743bf6ea4e5cdbdab37727f27, \< ea528f18231ec0f33317be57f8866913b19aba6e (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-68420.md
Affected: Linux >= d1716d5a44c37e5743bf6ea4e5cdbdab37727f27, < d7fc6f351c478586980a521d63b0214d9c055e78; >= d1716d5a44c37e5743bf6ea4e5cdbdab37727f27, < 9333f4b6f44858fc98eb12bf26b8d2959eb975d5; >= d1716d5a44c37e5743bf6ea4e5cdbdab37727f27, < ea528f18231ec0f33317be57f8866913b19aba6e; Linux 6.14
Fixed in: Linux 9333f4b6f44858fc98eb12bf26b8d2959eb975d5

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-68420 being exploited?

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

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

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= d1716d5a44c37e5743bf6ea4e5cdbdab37727f27, \< d7fc6f351c478586980a521d63b0214d9c055e78; \>= d1716d5a44c37e5743bf6ea4e5cdbdab37727f27, \< 9333f4b6f44858fc98eb12bf26b8d2959eb975d5; \>= d1716d5a44c37e5743bf6ea4e5cdbdab37727f27, \< ea528f18231ec0f33317be57f8866913b19aba6e; Linux 6.14.

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

Yes. Fixed in Linux 9333f4b6f44858fc98eb12bf26b8d2959eb975d5. No fix listed yet: follow the vendor advisory.

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

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/d7fc6f351c478586980a521d63b0214d9c055e78>
- other: <https://git.kernel.org/stable/c/9333f4b6f44858fc98eb12bf26b8d2959eb975d5>
- other: <https://git.kernel.org/stable/c/ea528f18231ec0f33317be57f8866913b19aba6e>

## 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-68420>

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