CVE Vulnerabilities

CVE-2021-20227

Use After Free

Published: Mar 23, 2021 | Modified: Nov 21, 2024
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
2.1 LOW
AV:L/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
6.1 MODERATE
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:H
Ubuntu
MEDIUM

A flaw was found in SQLites SELECT query functionality (src/select.c). This flaw allows an attacker who is capable of running SQL queries locally on the SQLite database to cause a denial of service or possible code execution by triggering a use-after-free. The highest threat from this vulnerability is to system availability.

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
Sqlite Sqlite 3.33.0 (including) 3.34.1 (excluding)
Sqlite Ubuntu trusty *
Sqlite3 Ubuntu devel *
Sqlite3 Ubuntu groovy *
Sqlite3 Ubuntu trusty *
Sqlite3 Ubuntu upstream *

Potential Mitigations

References