1. CVE archive
  2. 2018
  3. CVE-2018-11947

CVE-2018-11947

5.5 Medium severity CVSS v3.0 · source NVD CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N 5.5 – Medium

Description

The txrx stats req might be double freed in the pdev detach when the host driver is unloading in Snapdragon Auto, Snapdragon Consumer Electronics Connectivity, Snapdragon Consumer IOT, Snapdragon Industrial IOT, Snapdragon Mobile, Snapdragon Voice & Music, Snapdragon Wired Infrastructure and Networking in IPQ8064, MDM9150, MDM9206, MDM9607, MDM9640, MDM9650, MSM8996AU, QCA6174A, QCA6574AU, QCA9377, QCA9379, QCA9558, QCA9880, QCA9886, QCA9980, QCS405, QCS605, SD 210/SD 212/SD 205, SD 425, SD 427, SD 430, SD 435, SD 450, SD 625, SD 636, SD 675, SD 712 / SD 710 / SD 670, SD 730, SD 820A, SD 835, SD 845 / SD 850, SD 855, SDA660, SDM630, SDM660, SDX20, SDX24

Affected products

VendorProductVersionPlatform
qualcomm ipq8064 firmware all –
qualcomm mdm9150 firmware all –
qualcomm mdm9206 firmware all –
qualcomm mdm9607 firmware all –
qualcomm mdm9640 firmware all –
qualcomm mdm9650 firmware all –
qualcomm msm8996au firmware all –
qualcomm qca6174a firmware all –
qualcomm qca6574au firmware all –
qualcomm qca9377 firmware all –
qualcomm qca9379 firmware all –
qualcomm qca9558 firmware all –
qualcomm qca9880 firmware all –
qualcomm qca9886 firmware all –
qualcomm qca9980 firmware all –
qualcomm qcs405 firmware all –
qualcomm qcs605 firmware all –
qualcomm sd 205 firmware all –
qualcomm sd 210 firmware all –
qualcomm sd 212 firmware all –
qualcomm sd 425 firmware all –
qualcomm sd 427 firmware all –
qualcomm sd 430 firmware all –
qualcomm sd 435 firmware all –
qualcomm sd 450 firmware all –
qualcomm sd 625 firmware all –
qualcomm sd 636 firmware all –
qualcomm sd 670 firmware all –
qualcomm sd 675 firmware all –
qualcomm sd 710 firmware all –
qualcomm sd 712 firmware all –
qualcomm sd 730 firmware all –
qualcomm sd 820a firmware all –
qualcomm sd 835 firmware all –
qualcomm sd 845 firmware all –
qualcomm sd 850 firmware all –
qualcomm sd 855 firmware all –
qualcomm sda660 firmware all –
qualcomm sdm630 firmware all –
qualcomm sdm660 firmware all –
qualcomm sdx20 firmware all –
qualcomm sdx24 firmware all –
All 96 Qualcomm Sd 730 Firmware vulnerabilities

Vulnerability type

CWE-415 Double Free

The product calls free() twice on the same memory address.

Impact on systems

ScopeImpact
Integrity, Confidentiality, Availability Modify Memory, Execute Unauthorized Code or Commands
When a program calls free() twice with the same argument, the program's memory management data structures may become corrupted, potentially leading to the reading or modification of unexpected memory addresses. This corruption can cause the program to crash or, in some circumstances, cause two later calls to malloc() to return the same pointer. If malloc() returns the same value twice and the program later gives the attacker control over the data that is written into this doubly-allocated memory, the program becomes vulnerable to a buffer overflow attack. Doubly freeing memory may result in a write-what-where condition, allowing an attacker to execute arbitrary code.

How to prevent it

Architecture and Design Choose a language that provides automatic memory management.
Implementation Ensure that each allocation is freed only once. After freeing a chunk, set the pointer to NULL to ensure the pointer cannot be freed again. In complicated error conditions, be sure that clean-up routines respect the state of allocation properly. If the language is object oriented, ensure that object destructors delete each chunk of memory only once.
Implementation Use a static analysis tool to find double free instances.

All 968 CWE-415 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org