vendor:
DCCP Socket
by:
Mohamed Ghannam
7,8
CVSS
HIGH
Use-after-free
416
CWE
Product Name: DCCP Socket
Affected Version From: Unknown
Affected Version To: Unknown
Patch Exists: YES
Related CWE: CVE-2017-8824
CPE: None
Metasploit:
https://www.rapid7.com/db/vulnerabilities/amazon_linux-cve-2017-8824/, https://www.rapid7.com/db/vulnerabilities/debian-cve-2017-8824/, https://www.rapid7.com/db/vulnerabilities/oracle_linux-cve-2017-8824/, https://www.rapid7.com/db/vulnerabilities/redhat_linux-cve-2017-8824/, https://www.rapid7.com/db/vulnerabilities/huawei-euleros-2_0_sp1-cve-2017-8824/, https://www.rapid7.com/db/vulnerabilities/huawei-euleros-2_0_sp2-cve-2017-8824/, https://www.rapid7.com/db/vulnerabilities/centos_linux-cve-2017-8824/, https://www.rapid7.com/db/vulnerabilities/f5-big-ip-cve-2017-8824/, https://www.rapid7.com/db/vulnerabilities/ubuntu-cve-2017-8824/, https://www.rapid7.com/db/vulnerabilities/suse-cve-2017-8824/
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Ubuntu 4.10.5
2017
CVE-2017-8824
When a socket sock object is in DCCP_LISTEN state and connect() system call is being called with AF_UNSPEC, the dccp_disconnect() puts sock state into DCCP_CLOSED, and forgets to free dccps_hc_rx_ccid/dccps_hc_tx_ccid and assigns NULL to them, then when we call connect() again with AF_INET6 sockaddr family, the sock object gets cloned via dccp_create_openreq_child() and returns a new sock object, which holds references of dccps_hc_rx_ccid and dccps_hc_tx_ccid of the old sock object, and this leads to both the old and new sock objects can use the same memory.
Mitigation:
Apply the patch for this vulnerability.