CVE-2022-45407
High · 7.5CVSS
7.5
EPSS
0.7%
Published
Dec 22, 2022
CISA due date
—
Cloudanix analysis
An old browser flaw could let a malicious website crash or take control of Firefox if users had not updated since late 2022.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Use-after-free triggered when a font is loaded via FontFace() on a background worker thread, resulting in a crash that may be exploitable for arbitrary code execution.
Why it matters to the business
Potential browser crashes or remote code execution on end-user systems running outdated versions, leading to service disruption and possible compromise of user workstations across the organization.
How an attack unfolds
An attacker crafts a web page or script that invokes FontFace() from a web worker to trigger the use-after-free condition in the font handling code of affected Firefox versions.
How to fix it
Upgrade all instances of Mozilla Firefox to version 107 or later. Enforce automatic updates where possible and remove or isolate unsupported older versions.
How to confirm the fix worked
Verify installed Firefox versions are 107 or newer via enterprise management tools or about:support; re-test any internal web applications that load fonts in workers after the update.
Typical attack path
- Host a malicious web page containing FontFace() calls executed inside a background worker
- Lure a victim running an affected Firefox version to visit the page
- Trigger the use-after-free through concurrent font operations to cause a crash or gain code execution
How to detect it
Review browser crash reports and telemetry for unexpected terminations when loading web content that uses font APIs in workers; correlate with web server logs showing access to pages known to trigger FontFace in workers.
What your security team should do
- Immediately deploy Firefox 107+ across all managed endpoints
- Monitor for any remaining instances of Firefox versions below 107
- Review web application code that uses FontFace() inside workers for safe patterns
The record
If an attacker loaded a font using <code>FontFace()</code> on a background worker, a use-after-free could have occurred, leading to a potentially exploitable crash. This vulnerability affects Firefox < 107.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | firefox | 0 | 107.0+build2-0ubuntu0.18.04.1 |
| Ubuntu:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | firefox | 0 | 107.0+build2-0ubuntu0.20.04.1 |
| 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:22.04:LTS | mozjs91 | 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 | 107.0-1.1 |
| 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