Vulnerability Description
An issue was discovered in net/ipv6/ip6mr.c in the Linux kernel before 4.11. By setting a specific socket option, an attacker can control a pointer in kernel land and cause an inet_csk_listen_stop general protection fault, or potentially execute arbitrary code under certain circumstances. The issue can be triggered as root (e.g., inside a default LXC container or with the CAP_NET_ADMIN capability) or after namespace unsharing. This occurs because sk_type and protocol are not checked in the appropriate part of the ip6_mroute_* functions. NOTE: this affects Linux distributions that use 4.9.x longterm kernels before 4.9.187.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 3.16.72 |
| Canonical | Ubuntu Linux | 16.04 |
| Debian | Debian Linux | 8.0 |
Related Weaknesses (CWE)
References
- http://packetstormsecurity.com/files/154059/Slackware-Security-Advisory-SlackwarThird Party AdvisoryVDB Entry
- https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=99253PatchVendor Advisory
- https://github.com/torvalds/linux/commit/99253eb750fda6a644d5188fb26c43bad8d5a74PatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/08/msg00016.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/08/msg00017.htmlMailing ListThird Party Advisory
- https://lists.openwall.net/netdev/2017/12/04/40Mailing ListThird Party Advisory
- https://pulsesecurity.co.nz/advisories/linux-kernel-4.9-inetcsklistenstop-gpfExploitThird Party Advisory
- https://salsa.debian.org/kernel-team/linux/commit/baefcdc2f29923e7325ce4e1a72c3fThird Party Advisory
- https://seclists.org/bugtraq/2019/Aug/26Mailing ListThird Party Advisory
- https://support.f5.com/csp/article/K41582535Third Party Advisory
- https://support.f5.com/csp/article/K41582535?utm_source=f5support&%3Butm_medi
- https://usn.ubuntu.com/4145-1/Third Party Advisory
- https://www.debian.org/security/2019/dsa-4497Third Party Advisory
- http://packetstormsecurity.com/files/154059/Slackware-Security-Advisory-SlackwarThird Party AdvisoryVDB Entry
- https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=99253PatchVendor Advisory
FAQ
What is CVE-2017-18509?
CVE-2017-18509 is a vulnerability with a CVSS score of 7.8 (HIGH). An issue was discovered in net/ipv6/ip6mr.c in the Linux kernel before 4.11. By setting a specific socket option, an attacker can control a pointer in kernel land and cause an inet_csk_listen_stop gen...
How severe is CVE-2017-18509?
CVE-2017-18509 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2017-18509?
Check the references section above for vendor advisories and patch information. Affected products include: Linux Linux Kernel, Canonical Ubuntu Linux, Debian Debian Linux.