CVE-2026-31406
kernel: xfrm: Fix work re-schedule after cancel in xfrm_nat_keepalive_net_fini()
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 6, 2026
Updated · June 30, 2026
Description
A flaw was found in the Linux kernel, specifically within its xfrm (IP eXtensible FRamework) component. This vulnerability arises from a race condition during network cleanup, where a scheduled task (nat_keepalive_work) can be re-activated and attempt to operate on memory that has already been freed. This 'use-after-free' condition could allow a local attacker to cause the system to crash, leading to a denial of service, or potentially execute unauthorized code.
Statement
After cancel_delayed_work_sync() in xfrm_nat_keepalive_net_fini(), state deletion could reschedule nat_keepalive_work on a net being torn down. Replacing with disable_delayed_work_sync() prevents new schedules. Trigger is network namespace teardown with xfrm NAT keepalive in use.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-825 · Expired Pointer Dereference