CVE-2026-68415
published high CVSS 3.1 · 7.8xfrm: clear mode callbacks after failed mode setup
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux4b3faf610cc63bfac972711635eafbca5e7d7117 to < 9845a35986a658816f7752f7ebd7c455a4c7dfdf · 4b3faf610cc63bfac972711635eafbca5e7d7117 to < c37a079230128a5237f45fb4e181bc069a5c2955 · 4b3faf610cc63bfac972711635eafbca5e7d7117 to < 2538bd3cd1ff5af655908469544ac7b7ae259386 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.14 (affected) · 0 to < 6.14 (unaffected · semver) · 6.18.42 through 6.18.* (unaffected · semver) · 7.1.6 through 7.1.* (unaffected · semver) · 7.2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | noble | linux-aws-7.0 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-aws-7.0-cloud-tools-7.0.0-1014 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-aws-7.0-headers-7.0.0-1014 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-aws-7.0-tools-7.0.0-1014 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | linux-azure-7.0 | Advisory build | 7.0.0-1017.17~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-azure-7.0-cloud-tools-7.0.0-1017 | Advisory build | 7.0.0-1017.17~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-azure-7.0-headers-7.0.0-1017 | Advisory build | 7.0.0-1017.17~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-azure-7.0-tools-7.0.0-1017 | Advisory build | 7.0.0-1017.17~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-azure-fde-7.0 | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-azure-fde-7.0-cloud-tools-7.0.0-1016 | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-azure-fde-7.0-headers-7.0.0-1016 | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-azure-fde-7.0-tools-7.0.0-1016 | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1013-oracle | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1013-oracle-64k | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1014-aws | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1014-aws-64k | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1014-gcp | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1014-gcp-64k | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1016-azure-fde | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1017-azure | Advisory build | 7.0.0-1017.17~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1024-nvidia | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1024-nvidia-64k | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-38-generic | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-buildinfo-7.0.0-38-generic-64k | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1014-aws | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1014-aws-64k | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1016-azure-fde | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1017-azure | Advisory build | 7.0.0-1017.17~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-38-generic | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-gcp-7.0 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-gcp-7.0-headers-7.0.0-1014 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-gcp-7.0-tools-7.0.0-1014 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-headers-7.0.0-1013-oracle | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-headers-7.0.0-1013-oracle-64k | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-headers-7.0.0-1014-aws | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-headers-7.0.0-1014-aws-64k | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-headers-7.0.0-1014-gcp | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-headers-7.0.0-1014-gcp-64k | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-headers-7.0.0-1016-azure-fde | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-headers-7.0.0-1017-azure | Advisory build | 7.0.0-1017.17~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-headers-7.0.0-1024-nvidia | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-headers-7.0.0-1024-nvidia-64k | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-headers-7.0.0-38-generic | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-headers-7.0.0-38-generic-64k | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-hwe-7.0 | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-hwe-7.0-cloud-tools-7.0.0-38 | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-hwe-7.0-headers-7.0.0-38 | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-hwe-7.0-tools-7.0.0-38 | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-image-7.0.0-38-generic | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1013-oracle | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1013-oracle-64k | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1014-aws | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1014-aws-64k | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1014-gcp | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1014-gcp-64k | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1016-azure-fde | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1017-azure | Advisory build | 7.0.0-1017.17~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1024-nvidia | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1024-nvidia-64k | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-38-generic | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-38-generic-64k | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-lib-rust-7.0.0-38-generic | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-modules-7.0.0-1013-oracle | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-modules-7.0.0-1013-oracle-64k | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-modules-7.0.0-1014-aws | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-modules-7.0.0-1014-aws-64k | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-modules-7.0.0-1014-gcp | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-modules-7.0.0-1014-gcp-64k | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-modules-7.0.0-1016-azure-fde | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-modules-7.0.0-1017-azure | Advisory build | 7.0.0-1017.17~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-modules-7.0.0-1024-nvidia | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-modules-7.0.0-1024-nvidia-64k | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-modules-7.0.0-38-generic | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-modules-7.0.0-38-generic-64k | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-modules-iwlwifi-7.0.0-1016-azure-fde | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-modules-iwlwifi-7.0.0-1017-azure | Advisory build | 7.0.0-1017.17~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-modules-nvidia-fs-7.0.0-1024-nvidia | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-modules-nvidia-fs-7.0.0-1024-nvidia-64k | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-nvidia-7.0 | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-nvidia-7.0-headers-7.0.0-1024 | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-nvidia-7.0-tools-7.0.0-1024 | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-oracle-7.0 | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-oracle-7.0-headers-7.0.0-1013 | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-oracle-7.0-tools-7.0.0-1013 | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-tools-7.0.0-1013-oracle | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-tools-7.0.0-1013-oracle-64k | Advisory build | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-tools-7.0.0-1014-aws | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-tools-7.0.0-1014-aws-64k | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-2 |
| Ubuntu | noble | linux-tools-7.0.0-1014-gcp | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-tools-7.0.0-1014-gcp-64k | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8887-3 |
| Ubuntu | noble | linux-tools-7.0.0-1016-azure-fde | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-tools-7.0.0-1017-azure | Advisory build | 7.0.0-1017.17~24.04.1 | USN-8888-2 |
| Ubuntu | noble | linux-tools-7.0.0-1024-nvidia | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-tools-7.0.0-1024-nvidia-64k | Advisory build | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu | noble | linux-tools-7.0.0-38-generic | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | noble | linux-tools-7.0.0-38-generic-64k | Advisory build | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu | resolute | bpftool | Advisory build | 7.7.0+7.0.0-38.38 | USN-8887-1 |
| Ubuntu | resolute | linux | Advisory build | 7.0.0-38.38 | USN-8887-1 |
| Ubuntu | resolute | linux-aws | Advisory build | 7.0.0-1014.14 | USN-8887-1 |
| Ubuntu | resolute | linux-aws-cloud-tools-7.0.0-1014 | Advisory build | 7.0.0-1014.14 | USN-8887-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable paths are reached only through the XFRM configuration interface — netlink XFRM_MSG_NEWSA/XFRM_MSG_MIGRATE handled by xfrm_user.c — which requires a local socket on the machine; no remote peer data reaches this code. AC:L - The attacker fully controls SA creation and the failing allocation size (XFRMA_IPTFS_REORDER_WINDOW up to 65535 slots, ~1MB order-8 kmalloc), so the -ENOMEM setup failure is attacker-inducible and repeatable, and unlimited poisoned dead states can be armed so the stale x->mode_cbs dereference in xfrm_state_gc_task is hit deterministically once xfrm_iptfs is unloaded. PR:L - xfrm_user_rcv_msg() gates on netlink_net_capable(skb, CAP_NET_ADMIN), which is evaluated against the net namespace's user_ns, so any unprivileged local user obtains it with `unshare -Urn`; the IPTFS module is auto-loaded on demand by xfrm_get_mode_cbs(). UI:N - The attacker performs the entire sequence with netlink messages from its own process; no victim action, mount, or file open is needed to arm or trigger the dead state's deferred GC. S:U - The stale callback dereference occurs in kernel context within the same security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - xfrm_state_gc_task loads x->mode_cbs->destroy_state from module memory that was freed by module unload and can be reoccupied by attacker-influenced allocations, giving a stale-pointer read/indirect-call primitive that can be leveraged to disclose arbitrary kernel memory. I:H - Calling a function pointer read out of freed module text/rodata is a control-flow hijack primitive; combined with the missing module reference that lets the memory be recycled, this permits arbitrary kernel-state modification rather than a benign fault. A:H - The commit's reproducer shows the direct outcome is "BUG: unable to handle page fault" in the events workqueue running xfrm_state_gc_task, escalating to "Kernel panic - not syncing: Fatal exception" — a full system crash.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 4b3faf610cc63bfac972711635eafbca5e7d7117 to < 9845a35986a658816f7752f7ebd7c455a4c7dfdf (affected · git)4b3faf610cc63bfac972711635eafbca5e7d7117 to < c37a079230128a5237f45fb4e181bc069a5c2955 (affected · git)4b3faf610cc63bfac972711635eafbca5e7d7117 to < 2538bd3cd1ff5af655908469544ac7b7ae259386 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.14 (affected)0 to < 6.14 (unaffected · semver)6.18.42 through 6.18.* (unaffected · semver)7.1.6 through 7.1.* (unaffected · semver)7.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
xfrm: clear mode callbacks after failed mode setup
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6546caa425bc97f011341a980b0be67e9ea48fa6c304b28966dd0b5bc37e890d
- Ingested
- 23 Sep 2026, 09:27:38 UTC
- Source record
- Official CVE record