CVE-2017-16939: Linux Kernel XFRM Policy Dump Use-After-Free Privilege Escalation
- Vendors
- Debian ProjectLinux
CVE-2017-16939 is a use-after-free vulnerability in the Linux kernel IPsec/XFRM policy-dump implementation in net/xfrm/xfrm_user.c, affecting kernels before 4.13.11. When CONFIG_XFRM_USER is enabled, cleanup of an XFRM Netlink socket in xfrm_dump_policy_done can mishandle the lifetime of policy-dump state. A local process can trigger the flaw using a crafted SO_RCVBUF setsockopt call in conjunction with XFRM_MSG_GETPOLICY Netlink messages.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can corrupt kernel memory and may allow an unprivileged local attacker to elevate privileges. The use-after-free can also cause a kernel crash and denial of service; use-after-free conditions can potentially enable sensitive-memory disclosure or arbitrary kernel-mode code execution depending on exploitability.
Mitigation
If you can’t patch tonight, do this now.
Where an immediate kernel update is not possible, prevent untrusted users and workloads from obtaining local execution on affected systems. Systems that do not require XFRM user-space configuration may be built or deployed without CONFIG_XFRM_USER, subject to operational validation, to remove the vulnerable interface.
Remediation
Patch, then assume compromise.
Upgrade to a Linux kernel version containing the fix, including upstream kernel 4.13.11 or later, or the vendor-supported patched kernel for the affected distribution. For affected Red Hat products, install the applicable updated kernel packages supplied through RHSA-2018:0654, RHSA-2018:1318, RHSA-2018:1355, RHSA-2019:1170, or RHSA-2019:1190, as appropriate, then reboot to load the updated kernel.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2017-16939 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2017-16939 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2017-16939?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2017-16939.
- Is there a patch for CVE-2017-16939?
- Upgrade to a Linux kernel version containing the fix, including upstream kernel 4.13.11 or later, or the vendor-supported patched kernel for the affected distribution. For affected Red Hat products, install the applicable updated kernel packages supplied through RHSA-2018:0654, RHSA-2018:1318, RHSA-2018:1355, RHSA-2019:1170, or RHSA-2019:1190, as appropriate, then reboot to load the updated kernel.
- What products are affected by CVE-2017-16939?
- Linux Kernel and Debian Project Debian Linux.
- How severe is CVE-2017-16939?
- CVE-2017-16939 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 2.1% (83rd percentile) as of Oct 16, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.