Arm Mali GPU Kernel Driver Use-After-Free
CVE-2021-29256 is a high-severity use after free vulnerability in Bifrost GPU Kernel Driver from Arm, with a CVSS 3.1 base score of 8.8 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. The record lists version r30p0 as the first without the flaw, so updating Bifrost GPU Kernel Driver to that release or later removes the exposure. CISA added it to the Known Exploited Vulnerabilities catalogue on July 7, 2023, which means attacks have been observed in the wild.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Update Bifrost GPU Kernel Driver to r30p0 or a later version.
- Update Midgard GPU Kernel Driver to r31p0 or a later version.
- Update Valhall GPU Kernel Driver to r30p0 or a later version.
- CISA's required action: Apply updates per vendor instructions or discontinue use of the product if updates are unavailable.
- Read the advisory on developer.arm.com for workarounds and exact fixed builds.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Arm | Bifrost GPU Kernel Driver | r16p0 up to, but not including, r30p0 | r30p0 |
| Arm | Midgard GPU Kernel Driver | r28p0 up to, but not including, r31p0 | r31p0 |
| Arm | Valhall GPU Kernel Driver | r19p0 up to, but not including, r30p0 | r30p0 |
Version data comes from NVD's product matching. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 8.8 | High | NVD |
| CVSS 3.1 | 8.8 | High | CISA (ADP) |
| CVSS 2.0 | 9.0 | High | NVD |
Official description
. The Arm Mali GPU kernel driver allows an unprivileged user to achieve access to freed memory, leading to information disclosure or root privilege escalation. This affects Bifrost r16p0 through r29p0 before r30p0, Valhall r19p0 through r29p0 before r30p0, and Midgard r28p0 through r30p0.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Use After Free
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.
How developers prevent this class of flaw
- Choose a language that provides automatic memory management.
- When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.
Timeline
- CVE record published.
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Third-party and government advisories
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-29256US Government Resource
Other vulnerabilities in Bifrost GPU Kernel Driver
- 7.7 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
Recent Use After Free vulnerabilities
- 9.8 Critical severity
- 8.8 High severity
- 7.8 High severity
- 8.8 High severity
Google Chromium Blink Use-After-Free Exploited
- 10.0 Critical severity
- 4.4 Medium severity
Samsung Mobile Devices Memory Corruption Exploited
Spotted an error? Tell us.