CVE Vulnerabilities

CVE-2012-4512

Access of Resource Using Incompatible Type ('Type Confusion')

Published: Feb 08, 2020 | Modified: Feb 13, 2023
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
6.8 CRITICAL
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V3
Ubuntu
LOW

The CSS parser (khtml/css/cssparser.cpp) in Konqueror in KDE 4.7.3 allows remote attackers to cause a denial of service (crash) and possibly read memory via a crafted font face source, related to type confusion.

Weakness

The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.

Affected Software

Name Vendor Start Version End Version
Kde Kde 4.7.3 (including) 4.7.3 (including)
Red Hat Enterprise Linux 6 RedHat kdelibs-6:4.3.4-14.el6_3.2 *
Red Hat Enterprise Linux Desktop (v. 6) RedHat *
Red Hat Enterprise Linux HPC Node (v. 6) RedHat *
Red Hat Enterprise Linux Server (v. 6) RedHat *
Red Hat Enterprise Linux Workstation (v. 6) RedHat *
Kde-baseapps Ubuntu oneiric *
Kde-baseapps Ubuntu precise *
Kde-baseapps Ubuntu quantal *
Kde-baseapps Ubuntu raring *
Kde-baseapps Ubuntu saucy *
Kde-baseapps Ubuntu upstream *
Kde-baseapps Ubuntu utopic *
Kde-baseapps Ubuntu vivid *
Kde-baseapps Ubuntu wily *
Kde-baseapps Ubuntu yakkety *
Kdebase Ubuntu hardy *
Kdebase Ubuntu lucid *
Kdebase Ubuntu natty *
Kdebase Ubuntu upstream *

Extended Description

When the product accesses the resource using an incompatible type, this could trigger logical errors because the resource does not have expected properties. In languages without memory safety, such as C and C++, type confusion can lead to out-of-bounds memory access. While this weakness is frequently associated with unions when parsing data with many different embedded object types in C, it can be present in any application that can interpret the same variable or memory location in multiple ways. This weakness is not unique to C and C++. For example, errors in PHP applications can be triggered by providing array parameters when scalars are expected, or vice versa. Languages such as Perl, which perform automatic conversion of a variable of one type when it is accessed as if it were another type, can also contain these issues.

References