CVE-2026-31406: xfrm: Fix work re-schedule after cancel in xfrm_nat_keepalive_net_fini()

Published Apr 6, 2026
·
Updated

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

xfrm: Fix work re-schedule after cancel in xfrmnatkeepalivenetfini()

After canceldelayedworksync() is called from xfrmnatkeepalivenetfini(), xfrmstatefini() flushes remaining states via xfrmstatedelete(), which calls xfrmnatkeepalivestateupdated() to re-schedule natkeepalivework.

The following is a simple race scenario:

cpu0 cpu1

cleanupnet() [Round 1] opsundolist() xfrmnetexit() xfrmnatkeepalivenetfini() canceldelayedworksync(natkeepalivework); xfrmstatefini() xfrmstateflush() xfrmstatedelete(x) xfrmstatedelete(x) xfrmnatkeepalivestateupdated(x) scheduledelayedwork(natkeepalivework); rcubarrier(); netcompletefree(); netpassivedec(net); llistadd(&net->deferfreelist, &deferfreelist);

cleanupnet() [Round 2] rcubarrier(); netcompletefree() kmemcachefree(netcachep, net); natkeepalivework() // on freed net

To prevent this, canceldelayedworksync() is replaced with disabledelayedworksync().

Affected Software

9 affected components
Linux Linux kernel
Linux Linux kernel>=6.11<6.12.80
Linux Linux kernel>=6.13<6.18.21
Linux Linux kernel>=6.19<6.19.11
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
Linux Linux kernel=7.0-rc5

Event History

Apr 6, 2026
CVE Published
via MITRE·07:38 AM
Data Sourced
via MITRE·07:38 AM
DescriptionSeverity
Data Sourced
via NVD·08:16 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-31406?

CVE-2026-31406 has a medium severity rating due to potential issues with the re-scheduling of work after cancellation.

2

How do I fix CVE-2026-31406?

To fix CVE-2026-31406, you should update your Linux kernel to the latest patched version.

3

What systems are affected by CVE-2026-31406?

CVE-2026-31406 affects the Linux kernel, specifically versions that implement the xfrm_nat_keepalive feature.

4

Is CVE-2026-31406 exploitable remotely?

CVE-2026-31406 does not appear to be directly exploitable remotely, but it may impact the stability of affected systems.

5

What are the consequences of not addressing CVE-2026-31406?

Not addressing CVE-2026-31406 may lead to unpredictable behavior and instability in applications utilizing the xfrm functionalities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203