CVE-2021-29952
High · 7.5CVSS
7.5
EPSS
0.7%
Published
Jun 24, 2021
CISA due date
—
Cloudanix analysis
A flaw in how the browser cleans up graphics components could let a malicious website take over a user's computer, though the issue is old and no active attacks are known.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- High
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Race Condition
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Race condition during WebRender component destruction causes undefined behavior that can be leveraged for arbitrary code execution.
Why it matters to the business
Remote attackers could potentially gain full control of affected browser processes, leading to data theft or malware installation on user systems; the flaw is old with low exploitation probability and no known active campaigns.
How an attack unfolds
An attacker hosts a specially crafted webpage that forces rapid creation and destruction of WebRender components; the resulting race condition produces memory corruption that, with sufficient effort, can be turned into code execution inside the browser sandbox.
How to fix it
Upgrade Mozilla Firefox to version 88.0.1 or later and Firefox for Android to 88.1.3 or later; apply updates through the browser's built-in mechanism or package manager.
How to confirm the fix worked
Verify installed browser version meets or exceeds the fixed releases; confirm WebRender is enabled and test rendering paths with known benign workloads to ensure no crashes on component teardown.
Typical attack path
- Deliver malicious webpage via phishing or compromised site
- Trigger WebRender component lifecycle events that race during destruction
- Exploit resulting undefined behavior to corrupt memory and execute attacker-controlled code
How to detect it
Review browser crash logs and telemetry for WebRender teardown anomalies; examine network logs for visits to previously unknown domains around the time of any suspicious process behavior.
What your security team should do
- Immediately deploy the listed browser updates across all managed endpoints
- Monitor for any post-update stability issues in WebRender workloads
- Review browser update policies to reduce future lag on security releases
The record
When Web Render components were destructed, a race condition could have caused undefined behavior, and we presume that with enough effort may have been exploitable to run arbitrary code. This vulnerability affects Firefox < 88.0.1 and Firefox for Android < 88.1.3.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | firefox | 0 | 88.0.1+build1-0ubuntu0.18.04.2 |
| Ubuntu:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | firefox | 0 | 88.0.1+build1-0ubuntu0.20.04.2 |
| Ubuntu:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:22.04:LTS | mozjs78 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | mozjs78 | 0 | No fix |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 92.0-1.2 |
| openSUSE:Tumbleweed | firefox-esr | 0 | 128.5.1-1.1 |
Related vulnerabilities
- CVE-2023-25736 An invalid downcast from `nsHTMLDocument` to `nsIContent` could have lead to undefined… Also affects firefox
- CVE-2023-25733 The return value from `gfx::SourceSurfaceSkia::Map()` wasn't being verified which could… Also affects firefox
- CVE-2023-32210 Documents were incorrectly assuming an ordering of principal objects when ensuring we… Also affects firefox
- CVE-2023-32216 Memory safety bugs present in Firefox 112. Also affects firefox
- CVE-2023-32209 A maliciously crafted favicon could have led to an out of memory crash. Also affects firefox
- CVE-2023-32208 Service workers could reveal script base URL due to dynamic `import()`. Also affects firefox
- CVE-2023-29551 Memory safety bugs present in Firefox 111. Also affects firefox
- CVE-2023-32207 A missing delay in popup notifications could have made it possible for an attacker to… Also affects firefox