CVE-2023-43788 - Out-of-bounds Read

Severity

55%

Complexity

18%

Confidentiality

60%

A vulnerability was found in libXpm due to a boundary condition within the XpmCreateXpmImageFromBuffer() function. This flaw allows a local to trigger an out-of-bounds read error and read the contents of memory on the system.

A vulnerability was found in libXpm due to a boundary condition within the XpmCreateXpmImageFromBuffer() function. This flaw allows a local attacker to trigger an out-of-bounds read error and read the contents of memory on the system.

CVSS 3.1 Base Score 5.5. CVSS Attack Vector: local. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).

Demo Examples

Out-of-bounds Read

CWE-125

In the following code, the method retrieves a value from an array at a specific array index location that is given as an input parameter to the method


               
}
return value;// check that the array index is less than the maximum// length of the array
value = array[index];// get the value at the specified index of the array
// if array index is invalid then output error message// and return value indicating error
value = -1;

However, this method only verifies that the given array index is less than the maximum length of the array but does not check for the minimum value (CWE-839). This will allow a negative value to be accepted as the input array index, which will result in a out of bounds read (CWE-125) and may allow access to sensitive memory. The input array index should be checked to verify that is within the maximum and minimum range required for the array (CWE-129). In this example the if statement should be modified to include a minimum range check, as shown below.


               
...// check that the array index is within the correct// range of values for the array

Overview

First reported 1 year ago

2023-10-10 13:15:00

Last updated 1 year ago

2023-12-22 20:55:00

Affected Software

Red Hat Enterprise Linux 8.0

8.0

References

https://bugzilla.redhat.com/show_bug.cgi?id=2242248

https://access.redhat.com/security/cve/CVE-2023-43788

https://bugzilla.redhat.com/show_bug.cgi?id=2242248

Issue Tracking, Third Party Advisory

https://access.redhat.com/security/cve/CVE-2023-43788

Third Party Advisory

https://lists.fedoraproject.org/archives/list/[email protected]/message/V6FARGWN7VWXXWPXYNEEDJLRR3EWFZ3T/

https://lists.fedoraproject.org/archives/list/[email protected]/message/V6FARGWN7VWXXWPXYNEEDJLRR3EWFZ3T/

Mailing List, Third Party Advisory

https://lists.fedoraproject.org/archives/list/[email protected]/message/63IBRFLQVZSMOAZBZOBKFWJP26ILRAGQ/

https://lists.fedoraproject.org/archives/list/[email protected]/message/I3KFUQT42R7TB4D7RISNSBQFJGLTQGUL/

https://lists.fedoraproject.org/archives/list/[email protected]/message/TFAJTBNO3PAIA6EGZR4PN62H6RLKNDTE/

https://lists.fedoraproject.org/archives/list/[email protected]/message/ZECBCLDYUGLDSVV75ECPIBW7JXOB3747/

https://lists.fedoraproject.org/archives/list/[email protected]/message/V6FARGWN7VWXXWPXYNEEDJLRR3EWFZ3T/

Mailing List

https://lists.fedoraproject.org/archives/list/[email protected]/message/63IBRFLQVZSMOAZBZOBKFWJP26ILRAGQ/

Mailing List

https://lists.fedoraproject.org/archives/list/[email protected]/message/I3KFUQT42R7TB4D7RISNSBQFJGLTQGUL/

Mailing List, Third Party Advisory

https://lists.fedoraproject.org/archives/list/[email protected]/message/TFAJTBNO3PAIA6EGZR4PN62H6RLKNDTE/

Mailing List, Third Party Advisory

https://lists.fedoraproject.org/archives/list/[email protected]/message/ZECBCLDYUGLDSVV75ECPIBW7JXOB3747/

Mailing List, Third Party Advisory

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.