Linux kernel: CVE-2017-6074: DCCP double-free vulnerability
A double-free vulnerability in the Linux kernel's DCCP implementation could be exploited by an unprivileged local process to gain kernel code execution and elevate privileges to root. The bug was present in kernels built with CONFIG_IP_DCCP and was fixed in February 2017.
- Triaged in 6 days
- Fixed in 16 months
- Paid in 16 months
- Disclosed after 16 months
Hi!
CVE-2017-6074 [1] is a double-free vulnerability I found in the Linux kernel. It can be exploited to gain kernel code execution from an unprivileged processes. The kernel needs to be built with CONFIG_IP_DCCP for the vulnerability to be present. A lot of modern distributions enable this option by default.
Fixed on Feb 17, 2017 [2]. The oldest version that I checked is 2.6.18 (Sep 2006), which is vulnerable. However, the bug was introduced before that, probably in the first release with DCCP support (2.6.14, Oct 2005).
I initially reported this vulnerability to [email protected] following the coordinated disclosure process. The timeline and more details about the vulnerability can be found in my announcement on oss-security [3]. A proof-of-concept exploit for the 4.4.0-62-generic #83-Ubuntu kernel can be found here [4, 5].
The reason I'm reporting this now is that I just saw a similar bug [6] in the Windows kernel reported to this program and that reminded me of a Sandbox Escape program that used to be on HackerOne. I thought it makes sense to see if IBB would come back to considering this kind of bugs eligible for a bounty.
Thanks!
[1] https://nvd.nist.gov/vuln/detail/CVE-2017-6074
[3] http://seclists.org/oss-sec/2017/q1/471
[4] https://github.com/xairy/kernel-exploits/tree/master/CVE-2017-6074
[5] http://seclists.org/oss-sec/2017/q1/503
[6] https://hackerone.com/reports/48100
Impact
This vulnerability allows a local attacker to elevate privileges to root on a machine with vulnerable Linux kernel version.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a double-free in the Linux kernel's DCCP implementation, though the text does not specify the exact coding mistake.
Impact
A local attacker could elevate privileges to root on a machine with a vulnerable Linux kernel version.
What the attacker needed
Local access to the system; kernel built with CONFIG_IP_DCCP
The fix
The vulnerability was fixed on 17 February 2017.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A double-free is a bug where memory is freed twice. Here a local user could trigger it in the Linux kernel's DCCP code, potentially gaining kernel code execution. The kernel must be built with DCCP support.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.