# CVE-2026-68415: xfrm: clear mode callbacks after failed mode setup

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **Published:** 2026-08-10T12:04:35.425Z
- **Modified:** 2026-08-17T06:17:50.483Z

## Who should check

- Anyone running Linux \>= 4b3faf610cc63bfac972711635eafbca5e7d7117, \< 9845a35986a658816f7752f7ebd7c455a4c7dfdf; \>= 4b3faf610cc63bfac972711635eafbca5e7d7117, \< c37a079230128a5237f45fb4e181bc069a5c2955; \>= 4b3faf610cc63bfac972711635eafbca5e7d7117, \< 2538bd3cd1ff5af655908469544ac7b7ae259386
- Anyone running Linux 6.14

## Description

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

xfrm: clear mode callbacks after failed mode setup

xfrm\_state\_gc\_task can run long after a failed IPTFS state setup. In the
reproduced case, \_\_xfrm\_init\_state() cached x-\>mode\_cbs, IPTFS setup
returned -ENOMEM before publishing mode\_data, and the temporary module
reference from xfrm\_get\_mode\_cbs() was dropped immediately. The dead state
then kept x-\>mode\_cbs until deferred GC ran after xfrm\_iptfs had been
unloaded.

Clear x-\>mode\_cbs when mode init or clone fails before publishing
mode\_data. Those states never installed mode-specific state or the
long-term IPTFS module pin, so deferred GC has nothing mode-specific to
destroy and must not retain a callback table pointer past the temporary
lookup reference.

The buggy scenario involves two paths, with each column showing the order
within that path:

failed setup path:
1. cache x-\>mode\_cbs
2. mode setup fails before mode\_data
3. drop the temporary module ref
4. dead state keeps x-\>mode\_cbs cached

GC/unload path:
1. xfrm\_state\_put() queues GC work
2. xfrm\_iptfs unloads later
3. xfrm\_state\_gc\_task runs
4. GC dereferences stale x-\>mode\_cbs

This also covers the failed clone path where clone\_state() returns before
publishing mode\_data.

Validation reproduced this kernel report:
Kernel panic - not syncing: Fatal exception
CONFIG\_FAULT\_INJECTION\_STACKTRACE\_FILTER=y
failslab\_stacktrace\_filter matched xfrm\_iptfs frames
ack\_error=-12
FAULT\_INJECTION: forcing a failure
BUG: unable to handle page fault
Workqueue: events xfrm\_state\_gc\_task
RIP: xfrm\_state\_gc\_task+0x142/0x650
Modules linked in: esp4\_offload xfrm\_user \[last unloaded: xfrm\_iptfs\]
Kernel panic - not syncing: Fatal exception

## Affected and fixed versions

- Linux: \>= 4b3faf610cc63bfac972711635eafbca5e7d7117, \< 9845a35986a658816f7752f7ebd7c455a4c7dfdf; \>= 4b3faf610cc63bfac972711635eafbca5e7d7117, \< c37a079230128a5237f45fb4e181bc069a5c2955; \>= 4b3faf610cc63bfac972711635eafbca5e7d7117, \< 2538bd3cd1ff5af655908469544ac7b7ae259386 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 2538bd3cd1ff5af655908469544ac7b7ae259386 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-68415. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-68415.md
Affected: Linux >= 4b3faf610cc63bfac972711635eafbca5e7d7117, < 9845a35986a658816f7752f7ebd7c455a4c7dfdf; >= 4b3faf610cc63bfac972711635eafbca5e7d7117, < c37a079230128a5237f45fb4e181bc069a5c2955; >= 4b3faf610cc63bfac972711635eafbca5e7d7117, < 2538bd3cd1ff5af655908469544ac7b7ae259386; Linux 6.14
Fixed in: Linux 9845a35986a658816f7752f7ebd7c455a4c7dfdf, Linux 2538bd3cd1ff5af655908469544ac7b7ae259386

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

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

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

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

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

Linux \>= 4b3faf610cc63bfac972711635eafbca5e7d7117, \< 9845a35986a658816f7752f7ebd7c455a4c7dfdf; \>= 4b3faf610cc63bfac972711635eafbca5e7d7117, \< c37a079230128a5237f45fb4e181bc069a5c2955; \>= 4b3faf610cc63bfac972711635eafbca5e7d7117, \< 2538bd3cd1ff5af655908469544ac7b7ae259386; Linux 6.14.

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

Yes. Fixed in Linux 9845a35986a658816f7752f7ebd7c455a4c7dfdf, Linux 2538bd3cd1ff5af655908469544ac7b7ae259386. Upgrade Linux to 2538bd3cd1ff5af655908469544ac7b7ae259386 or later.

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

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/9845a35986a658816f7752f7ebd7c455a4c7dfdf>
- other: <https://git.kernel.org/stable/c/c37a079230128a5237f45fb4e181bc069a5c2955>
- other: <https://git.kernel.org/stable/c/2538bd3cd1ff5af655908469544ac7b7ae259386>

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

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