CVE-2017-15129 Use after free in Linux kernel v4.0-rc1 through v4.15-rc5
An unprivileged local user can trigger a use-after-free in network namespaces, causing kernel crashes and potentially enabling privilege escalation.
- 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-15129?
CVE-2017-15129 is a medium-severity use after free vulnerability in Canonical Ubuntu Linux, published on 9 Jan 2018. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A use-after-free vulnerability was found in network namespaces code affecting the Linux kernel before 4.14.11. The function get_net_ns_by_id() in net/core/net_namespace.c does not check for the net::count value after it has found a peer network in netns_ids idr, which could lead to double free and memory corruption. This vulnerability could allow an unprivileged local user to induce kernel memory corruption on the system, leading to a crash. Due to the nature of the flaw, privilege escalation cannot be fully ruled out, although it is thought to be unlikely.
Weakness: CWE-362
Which versions are affected by CVE-2017-15129?
It affects 20 products.
Products include Canonical Ubuntu Linux, Fedoraproject Fedora, Linux kernel, Redhat Enterprise Linux, Redhat Enterprise Linux Compute Node Eus, Redhat Enterprise Linux Desktop and 14 more.
How do I fix CVE-2017-15129?
Upgrade to a fixed version.
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-15129 being exploited?
There is no known exploitation of CVE-2017-15129 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as DEBIAN-CVE-2017-15129, GHSA-9324-w9gg-mxf6, UBUNTU-CVE-2017-15129.