CVE Vulnerabilities

CVE-2022-40278

Use After Free

Published: Sep 29, 2022 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

An issue was discovered in Samsung TizenRT through 3.0_GBM (and 3.1_PRE). createDB in security/provisioning/src/provisioningdatabasemanager.c has a missing sqlite3_free after sqlite3_exec, leading to a denial of service.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

Name Vendor Start Version End Version
Tizenrt Samsung 1.0-m1 (including) 1.0-m1 (including)
Tizenrt Samsung 1.1 (including) 1.1 (including)
Tizenrt Samsung 2.0-gbm_m1 (including) 2.0-gbm_m1 (including)
Tizenrt Samsung 2.0-m2 (including) 2.0-m2 (including)
Tizenrt Samsung 3.0-gbm (including) 3.0-gbm (including)
Tizenrt Samsung 3.1-pre (including) 3.1-pre (including)

Potential Mitigations

References