CVE Vulnerabilities

CVE-2023-1077

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

Published: Mar 27, 2023 | Modified: Jan 12, 2024
CVSS 3.x
7
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

In the Linux kernel, pick_next_rt_entity() may return a type confused entry, not detected by the BUG_ON condition, as the confused entry will not be NULL, but list_head.The buggy error condition would lead to a type confused entry with the list head,which would then be used as a type confused sched_rt_entity,causing memory corruption.

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
Linux_kernel Linux 2.6.25 (including) 4.19.293 (excluding)
Linux_kernel Linux 4.20 (including) 5.4.235 (excluding)
Linux_kernel Linux 5.5 (including) 5.10.173 (excluding)
Linux_kernel Linux 5.11 (including) 5.15.99 (excluding)
Linux_kernel Linux 5.16 (including) 6.1.16 (excluding)
Linux_kernel Linux 6.2 (including) 6.2.3 (excluding)

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