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

| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.3 | $0-$5k | 0.00 |
Summary
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.
Details
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.
Product
Type
Vendor
Name
Version
License
Website
- Vendor: https://www.kernel.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.4VulDB 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: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Name: PanicClass: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
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 Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Exploit Delay Time: 🔍
Patch: git.kernel.org
Timeline
12/01/2016 🔍04/04/2017 🔍
04/04/2017 🔍
04/05/2017 🔍
04/05/2017 🔍
04/06/2017 🔍
04/14/2017 🔍
04/17/2017 🔍
06/07/2017 🔍
06/07/2017 🔍
06/08/2024 🔍
Sources
Vendor: kernel.orgAdvisory: 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: 🔍
Entry
Created: 04/06/2017 09:22Updated: 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
No comments yet. Languages: en.
Please log in to comment.