CVE-2026-31516xfrm: prevent policy_hthresh.work from racing with netns teardown
- 7.8HighCVSS base score
- 0.10%Exploitation in 30 daysEPSS · top 99% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By Linux
- 44 days later
· 44 days later
Published
- 6 months later
· 6 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.10% · top 99% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected 880a6fab8f6ba5b5abe59ea68533202ddea1012c – < 56ea2257b83ee29a543f158159e3d1abc1e3e4fe
- affected 880a6fab8f6ba5b5abe59ea68533202ddea1012c – < 8854e9367465d784046362698731c1111e3b39b8
- affected 880a6fab8f6ba5b5abe59ea68533202ddea1012c – < 4e2e77843fef473ef47e322d52436d8308582a96
- affected 880a6fab8f6ba5b5abe59ea68533202ddea1012c – < 29fe3a61bcdce398ee3955101c39f89c01a8a77e
- affected 3.18
- unaffected < 3.18
- unaffected 6.12.80 – ≤ 6.12.*
- unaffected 6.18.21 – ≤ 6.18.*
- unaffected 6.19.11 – ≤ 6.19.*
- unaffected 7.0 – ≤ *
References
References4
- https://git.kernel.org/stable/c/56ea2257b83ee29a543f158159e3d1abc1e3e4fe (opens in a new tab)
- https://git.kernel.org/stable/c/8854e9367465d784046362698731c1111e3b39b8 (opens in a new tab)
- https://git.kernel.org/stable/c/4e2e77843fef473ef47e322d52436d8308582a96 (opens in a new tab)
- https://git.kernel.org/stable/c/29fe3a61bcdce398ee3955101c39f89c01a8a77e (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-24900 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-31516)Record last updated .