CVE-2017-16939 Use after free in n/a

High 7.8 Published Updated

Local attackers can exploit a use-after-free in the Linux kernel XFRM policy implementation to gain privileges or cause a denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2017-16939?

CVE-2017-16939 is a high-severity use after free vulnerability in Debian Debian Linux, published on 24 Nov 2017. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The XFRM dump policy implementation in net/xfrm/xfrm_user.c in the Linux kernel before 4.13.11 allows local users to gain privileges or cause a denial of service (use-after-free) via a crafted SO_RCVBUF setsockopt system call in conjunction with XFRM_MSG_GETPOLICY Netlink messages.

Weakness: CWE-416

Which versions are affected by CVE-2017-16939?

It affects 2 products.

Linux distribution packages (2)
kgraft-patch-SLE12-SP1_Update_22 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions2-2.1
kgraft-patch-SLE12-SP1_Update_22 SUSE:Linux Enterprise Server for SAP Applications 12 SP1All versions2-2.1

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2017-16939?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2017-16939 being exploited?

There is no known exploitation of CVE-2017-16939 in the wild and no public exploit code.

Public exploit code: 1 Exploit-DB entry.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2017-16939, GHSA-87xr-wmm8-4mx3, SUSE-SU-2017:3338-1, UBUNTU-CVE-2017-16939.

Is CVE-2017-16939 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free