CVE-2024-40780 - Out-of-bounds Read

Severity

55%

Complexity

18%

Confidentiality

60%

An out-of-bounds read was addressed with improved bounds checking. This issue is fixed in iOS 16.7.9 and iPadOS 16.7.9, Safari 17.6, iOS 17.6 and iPadOS 17.6, watchOS 10.6, tvOS 17.6, visionOS 1.3, macOS Sonoma 14.6. Processing maliciously crafted web content may lead to an unexpected process crash.

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:N/UI:R/S:U/C:N/I:N/A:H).

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 6 months ago

2024-07-29 23:15:00

Last updated 3 months ago

2024-11-21 09:31:00

Affected Software

Apple Safari

References

https://support.apple.com/en-us/HT214121

https://support.apple.com/en-us/HT214117

https://support.apple.com/en-us/HT214116

https://support.apple.com/en-us/HT214124

https://support.apple.com/en-us/HT214119

https://support.apple.com/en-us/HT214123

https://support.apple.com/en-us/HT214122

http://seclists.org/fulldisclosure/2024/Jul/16

http://seclists.org/fulldisclosure/2024/Jul/15

http://seclists.org/fulldisclosure/2024/Jul/23

http://seclists.org/fulldisclosure/2024/Jul/21

http://seclists.org/fulldisclosure/2024/Jul/17

http://seclists.org/fulldisclosure/2024/Jul/22

http://seclists.org/fulldisclosure/2024/Jul/18

https://www.secpod.com/blog/apple-fixes-multiple-security-vulnerabilities-in-july-2024-updates/

https://support.apple.com/en-us/HT214121

Release Notes, Vendor Advisory

https://support.apple.com/en-us/HT214117

Release Notes, Vendor Advisory

https://support.apple.com/en-us/HT214116

Release Notes, Vendor Advisory

https://support.apple.com/en-us/HT214124

Release Notes, Vendor Advisory

https://support.apple.com/en-us/HT214119

Release Notes, Vendor Advisory

https://support.apple.com/en-us/HT214123

Release Notes, Vendor Advisory

https://support.apple.com/en-us/HT214122

Release Notes, Vendor Advisory

http://seclists.org/fulldisclosure/2024/Jul/16

Mailing List, Third Party Advisory

http://seclists.org/fulldisclosure/2024/Jul/15

Mailing List, Third Party Advisory

http://seclists.org/fulldisclosure/2024/Jul/23

Mailing List, Third Party Advisory

http://seclists.org/fulldisclosure/2024/Jul/21

Mailing List, Third Party Advisory

http://seclists.org/fulldisclosure/2024/Jul/17

Mailing List, Third Party Advisory

http://seclists.org/fulldisclosure/2024/Jul/22

Mailing List, Third Party Advisory

http://seclists.org/fulldisclosure/2024/Jul/18

Mailing List, Third Party Advisory

https://www.secpod.com/blog/apple-fixes-multiple-security-vulnerabilities-in-july-2024-updates/

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.