CVE-2017-17712

HIGH

Linux Kernel 3.19-4.1.52 - Local Privilege Escalation via Race Condition in raw_sendmsg

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2017-17712. PoCs published by TamiiLambrado.

AI-analyzed exploit summary This PoC exploits a race condition in the Linux kernel's raw_sendmsg() function (CVE-2017-17712), where an uninitialized stack variable can be manipulated via concurrent setsockopt() calls to achieve arbitrary code execution. The exploit uses thread-based racing and stack spraying via poll() to control the uninitialized msghdr pointer.

Description

The raw_sendmsg() function in net/ipv4/raw.c in the Linux kernel through 4.14.6 has a race condition in inet->hdrincl that leads to uninitialized stack pointer usage; this allows a local user to execute code and gain privileges.

Exploits (1)

github WORKING POC 3 stars
by TamiiLambrado · cpoc
https://github.com/TamiiLambrado/CVE-pocs/tree/master/CVE-2017-17712-raw_sendmsg.c

This PoC exploits a race condition in the Linux kernel's raw_sendmsg() function (CVE-2017-17712), where an uninitialized stack variable can be manipulated via concurrent setsockopt() calls to achieve arbitrary code execution. The exploit uses thread-based racing and stack spraying via poll() to control the uninitialized msghdr pointer.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Complex
Reliability
Racy
Target: Linux Kernel (versions affected by the race condition in net/ipv4/raw.c)
No auth needed
Prerequisites: Linux system with vulnerable kernel · ability to create raw sockets · ability to create user/network namespaces
devstral-2 · analyzed Feb 27, 2026 Full analysis →

References (10)

Core 10
Core References
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3582-1/
Third Party Advisory x_refsource_confirm
https://source.android.com/security/bulletin/pixel/2018-04-01
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3581-1/
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3581-3/
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3581-2/
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2017/dsa-4073
Third Party Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:0502
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3582-2/

Scores

CVSS v3 7.0
EPSS 0.0033
EPSS Percentile 24.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-362
Status published
Products (1)
linux/linux_kernel 3.19 - 4.1.52
Published Dec 16, 2017
Tracked Since Feb 18, 2026