{"id":"CVE-2026-68415","published":"2026-08-10T12:04:35Z","modified":"2026-08-17T05:05:09Z","title":"xfrm: clear mode callbacks after failed mode setup","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: clear mode callbacks after failed mode setup\n\nxfrm_state_gc_task can run long after a failed IPTFS state setup. In the\nreproduced case, __xfrm_init_state() cached x->mode_cbs, IPTFS setup\nreturned -ENOMEM before publishing mode_data, and the temporary module\nreference from xfrm_get_mode_cbs() was dropped immediately. The dead state\nthen kept x->mode_cbs until deferred GC ran after xfrm_iptfs had been\nunloaded.\n\nClear x->mode_cbs when mode init or clone fails before publishing\nmode_data. Those states never installed mode-specific state or the\nlong-term IPTFS module pin, so deferred GC has nothing mode-specific to\ndestroy and must not retain a callback table pointer past the temporary\nlookup reference.\n\nThe buggy scenario involves two paths, with each column showing the order\nwithin that path:\n\nfailed setup path:\n1. cache x->mode_cbs\n2. mode setup fails before mode_data\n3. drop the temporary module ref\n4. dead state keeps x->mode_cbs cached\n\nGC/unload path:\n1. xfrm_state_put() queues GC work\n2. xfrm_iptfs unloads later\n3. xfrm_state_gc_task runs\n4. GC dereferences stale x->mode_cbs\n\nThis also covers the failed clone path where clone_state() returns before\npublishing mode_data.\n\nValidation reproduced this kernel report:\nKernel panic - not syncing: Fatal exception\nCONFIG_FAULT_INJECTION_STACKTRACE_FILTER=y\nfailslab_stacktrace_filter matched xfrm_iptfs frames\nack_error=-12\nFAULT_INJECTION: forcing a failure\nBUG: unable to handle page fault\nWorkqueue: events xfrm_state_gc_task\nRIP: xfrm_state_gc_task+0x142/0x650\nModules linked in: esp4_offload xfrm_user [last unloaded: xfrm_iptfs]\nKernel panic - not syncing: Fatal exception","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00134,"percentile":0.02881,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/9845a35986a658816f7752f7ebd7c455a4c7dfdf","tags":[]},{"url":"https://git.kernel.org/stable/c/c37a079230128a5237f45fb4e181bc069a5c2955","tags":[]},{"url":"https://git.kernel.org/stable/c/2538bd3cd1ff5af655908469544ac7b7ae259386","tags":[]}],"priority":{"score":6.0,"factors":[{"name":"EPSS percentile","points":0.58},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 4b3faf610cc63bfac972711635eafbca5e7d7117, < 9845a35986a658816f7752f7ebd7c455a4c7dfdf",">= 4b3faf610cc63bfac972711635eafbca5e7d7117, < c37a079230128a5237f45fb4e181bc069a5c2955",">= 4b3faf610cc63bfac972711635eafbca5e7d7117, < 2538bd3cd1ff5af655908469544ac7b7ae259386"]},{"vendor":"Linux","product":"Linux","versions":["6.14"]}],"euvd":{"id":"EUVD-2026-55601","exploited":false,"provenance":"source"}}