Vulnerability Name:

CVE-2020-24658 (CCN-193771)

Assigned:2020-12-24
Published:2020-12-24
Updated:2021-07-21
Summary:Arm Compiler 5 through 5.06u6 has an error in a stack protection feature designed to help spot stack-based buffer overflows in local arrays. When this feature is enabled, a protected function writes a guard value to the stack prior to (above) any vulnerable arrays in the stack. The guard value is checked for corruption on function return; corruption leads to an error-handler call. In certain circumstances, the reference value that is compared against the guard value is itself also written to the stack (after any vulnerable arrays). The reference value is written to the stack when the function runs out of registers to use for other temporary data. If both the reference value and the guard value are written to the stack, then the stack protection will fail to spot corruption when both values are overwritten with the same value. For both the reference value and the guard value to be corrupted, there would need to be both a buffer overflow and a buffer underflow in the vulnerable arrays (or some other vulnerability that causes two separated stack entries to be corrupted).
CVSS v3 Severity:7.8 High (CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
6.8 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
8.4 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
7.3 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:4.4 Medium (CVSS v2 Vector: AV:L/AC:M/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
7.2 High (CCN CVSS v2 Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-787
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2020-24658

Source: CCN
Type: Arm Web site
Arm Compiler 5 stack protection

Source: CONFIRM
Type: Vendor Advisory
https://developer.arm.com/support/arm-security-updates/arm-compiler-5-stack-protection

Source: XF
Type: UNKNOWN
arm-cve202024658-bo(193771)

Vulnerable Configuration:Configuration 1:
  • cpe:/a:arm:arm_compiler:*:*:*:*:*:*:*:* (Version >= 5.01 and < 5.06)
  • OR cpe:/a:arm:arm_compiler:5.06:-:*:*:*:*:*:*
  • OR cpe:/a:arm:arm_compiler:5.06:update1:*:*:*:*:*:*
  • OR cpe:/a:arm:arm_compiler:5.06:update2:*:*:*:*:*:*
  • OR cpe:/a:arm:arm_compiler:5.06:update3:*:*:*:*:*:*
  • OR cpe:/a:arm:arm_compiler:5.06:update4:*:*:*:*:*:*
  • OR cpe:/a:arm:arm_compiler:5.06:update5:*:*:*:*:*:*
  • OR cpe:/a:arm:arm_compiler:5.06:update6:*:*:*:*:*:*
  • OR cpe:/a:arm:arm_compiler:5.06:update7:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    arm arm compiler *
    arm arm compiler 5.06 -
    arm arm compiler 5.06 update1
    arm arm compiler 5.06 update2
    arm arm compiler 5.06 update3
    arm arm compiler 5.06 update4
    arm arm compiler 5.06 update5
    arm arm compiler 5.06 update6
    arm arm compiler 5.06 update7