Back to CVE records
High 7.8Published Apr 22, 2026

CVE-2026-31516xfrm: prevent policy_hthresh.work from racing with netns teardown

Updated under an hour ago ()

Does this affect you?

It affects Linux and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

In the Linux kernel, the following vulnerability has been resolved: xfrm: prevent policy_hthresh.work from racing with netns teardown A XFRM_MSG_NEWSPDINFO request can queue the per-net work item policy_hthresh.work onto the system workqueue. The queued callback, xfrm_hash_rebuild(), retrieves the enclosing struct net via container_of(). If the net namespace is torn down before that work runs, the associated struct net may already have been freed, and xfrm_hash_rebuild() may then dereference stale memory. xfrm_policy_fini() already flushes policy_hash_work during teardown, but it does not synchronize policy_hthresh.work. Synchronize policy_hthresh.work in xfrm_policy_fini() as well, so the queued work cannot outlive the net namespace teardown and access a freed struct net.

CVSS
7.8 HIGH (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
Not given
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Linux
NVD analysis
Analyzed
Record last updated
Oct 16, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
Linux Linux
linux:linux (from the name)
880a6fab8f6ba5b5abe59ea68533202ddea1012c builds before 56ea2257b83ee29a543f158159e3d1abc1e3e4fe; from 880a6fab8f6ba5b5abe59ea68533202ddea1012c before 8854e9367465d784046362698731c1111e3b39b8; 880a6fab8f6ba5b5abe59ea68533202ddea1012c builds before 4e2e77843fef473ef47e322d52436d8308582a96; 880a6fab8f6ba5b5abe59ea68533202ddea1012c builds before 29fe3a61bcdce398ee3955101c39f89c01a8a77e
CNA record
linux linux_kernel
linux:linux_kernel
from 3.18.1 before 6.12.80; from 6.13 before 6.18.21; from 6.19 before 6.19.11; 3.18; 7.0; 7.0; 7.0; 7.0; and 3 more ranges
NVD

References

  • patch
  • patch
  • patch
  • patch

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.