CVE-2026-31516
Last modified
CVE-2026-31516 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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.. EPSS estimates a 0.10% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 3.18.1, < 6.12.80 | — |
| Linux | Linux Kernel | >= 6.13, < 6.18.21 | — |
| Linux | Linux Kernel | >= 6.19, < 6.19.11 | — |
| Linux | Linux Kernel | 3.18 | — |
| Linux | Linux Kernel | 7.0 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-31516?
How severe is CVE-2026-31516?
How do I fix CVE-2026-31516?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-31510In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31511In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-31512In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31513In the Linux kernel, the following vulnerability has been re…8.1
- CVE-2026-31514In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31515In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31517In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31518In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31519In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-3152A flaw has been found in itsourcecode College Management Sys…9.8
- CVE-2026-31520In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31521In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2026-31516?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
