CVE-2017-18509: Input Validation
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 inetcsklistenstop 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 CAPNETADMIN capability) or after namespace unsharing. This occurs because sktype and protocol are not checked in the appropriate part of the ip6mroute functions. NOTE: this affects Linux distributions that use 4.9.x longterm kernels before 4.9.187.
Other sources
In ip6mroutesetsockopt and related functions of ip6mr.c, there is a possible out of bounds write due to a logic error in the code. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.
— OSV
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 4.4.0-1055.59 - Upgrade
Upgrade
ubuntu/linux-lts-xenialto a version that resolves this vulnerability.Fixed in 4.4.0-165.193~14.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 4.4.0-165.193 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 4.4.0-1095.106 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 4.13.0-1002.5 - Upgrade
Upgrade
ubuntu/linux-hweto a version that resolves this vulnerability.Fixed in 4.13.0-32.35~16.04.1 - Upgrade
Upgrade
ubuntu/linux-kvmto a version that resolves this vulnerability.Fixed in 4.4.0-1059.66 - Upgrade
Upgrade
ubuntu/linux-raspi2to a version that resolves this vulnerability.Fixed in 4.4.0-1123.132 - Upgrade
Upgrade
ubuntu/linux-snapdragonto a version that resolves this vulnerability.Fixed in 4.4.0-1127.135 - Upgrade
Upgrade
ubuntu/linux-fipsto a version that resolves this vulnerability.Fixed in 4.4.0-1022.27 - Upgrade
Upgrade
ubuntu/linux-snapdragonto a version that resolves this vulnerability.Fixed in 4.15.0-1053.57 - Upgrade
Upgrade
android/:linux_kernel:to a version that resolves this vulnerability.Fixed in :2021-02-05 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 3.16.72-1Fixed in 4.9.168-1+deb9u5Fixed in 4.11.6-1 - Upgrade
Upgrade
debian/linux-4.9to a version that resolves this vulnerability.Fixed in 4.9.168-1+deb9u5~deb8u1
Event History
Frequently Asked Questions
What is the vulnerability ID for this issue?
The vulnerability ID for this issue is CVE-2017-18509.
What is the severity level of CVE-2017-18509?
CVE-2017-18509 has a severity level of high.
Which software is affected by CVE-2017-18509?
CVE-2017-18509 affects various versions of the Linux kernel, including linux-gcp, linux-gcp-edge, linux-gke-4.15, linux, linux-aws, linux-aws-hwe, linux-azure, linux-azure-edge, linux-gke-5.0, linux-hwe, linux-hwe-edge, linux-kvm, linux-lts-trusty, linux-lts-xenial, linux-oem, linux-oracle, linux-raspi2, linux-snapdragon, and Google Android.
How can an attacker exploit CVE-2017-18509?
An attacker can exploit CVE-2017-18509 by setting a specific socket option, which allows them to control a pointer in the kernel and potentially execute arbitrary code.
Are there any patches or remedies available for CVE-2017-18509?
Yes, there are patches available to fix CVE-2017-18509. Please refer to the relevant sources for more information and updates.