CVE-2026-31516
Severity CVSS v4.0:
Pending analysis
Type:
CWE-362
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Publication date:
22/04/2026
Last modified:
28/04/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
xfrm: prevent policy_hthresh.work from racing with netns teardown<br />
<br />
A XFRM_MSG_NEWSPDINFO request can queue the per-net work item<br />
policy_hthresh.work onto the system workqueue.<br />
<br />
The queued callback, xfrm_hash_rebuild(), retrieves the enclosing<br />
struct net via container_of(). If the net namespace is torn down<br />
before that work runs, the associated struct net may already have<br />
been freed, and xfrm_hash_rebuild() may then dereference stale memory.<br />
<br />
xfrm_policy_fini() already flushes policy_hash_work during teardown,<br />
but it does not synchronize policy_hthresh.work.<br />
<br />
Synchronize policy_hthresh.work in xfrm_policy_fini() as well, so the<br />
queued work cannot outlive the net namespace teardown and access a<br />
freed struct net.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 3.18.1 (including) | 6.12.80 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.18.21 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.19 (including) | 6.19.11 (excluding) |
| cpe:2.3:o:linux:linux_kernel:3.18:-:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



