Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2017-16939: Linux Kernel XFRM Policy Dump Use-After-Free Privilege Escalation

Published Nov 24, 2017 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS2.1%83rd percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
Debian ProjectLinux
IdentifiersCVE-2017-16939CWE-416 · Use After Free

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
Candidate exploits are awaiting analysis. View them in Mallory.
Exposure surface

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.

VendorProductType
Debian ProjectDebian Linuxoperating_system
LinuxLinux Kerneloperating_system
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.