---
title: CVE-2022-40962
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2022-40962
---

# CVE-2022-40962

Publication date 28 September 2022

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**8.8 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2022-40962#impact-score)

Toggle side navigation

## Description

Mozilla developers Nika Layzell, Timothy Nikkel, Sebastian Hengst, Andreas
Pehrson, and the Mozilla Fuzzing Team reported memory safety bugs present
in Firefox 104 and Firefox ESR 102.2. Some of these bugs showed evidence of
memory corruption and we presume that with enough effort some of these
could have been exploited to run arbitrary code. This vulnerability affects
Firefox ESR < 102.3, Thunderbird < 102.3, and Firefox < 105.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2022-40962#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| firefox | 24.04 LTS noble | Not affected |
| 23.10 mantic | Not affected |
| 23.04 lunar | Not affected |
| 22.10 kinetic | Not affected |
| 22.04 LTS jammy | Not affected |
| 20.04 LTS focal | Fixed 105.0+build2-0ubuntu0.20.04.1 |
| 18.04 LTS bionic | Fixed 105.0+build2-0ubuntu0.18.04.1 |
| 16.04 LTS xenial | Ignored end of standard support |
| 14.04 LTS trusty | Ignored end of standard support |
| mozjs38 | 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Ignored |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| mozjs52 | 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Ignored |
| 18.04 LTS bionic | Ignored |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| mozjs68 | 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Ignored |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| mozjs78 | 24.04 LTS noble | Not in release |
| 23.10 mantic | Not in release |
| 23.04 lunar | Ignored end of life, was needs-triage |
| 22.10 kinetic | Ignored end of life, was needs-triage |
| 22.04 LTS jammy | Ignored |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| mozjs91 | 22.04 LTS jammy | Ignored |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| thunderbird | 24.04 LTS noble | Not affected |
| 23.10 mantic | Not affected |
| 23.04 lunar | Not affected |
| 22.10 kinetic | Not affected |
| 22.04 LTS jammy | Fixed 1:102.4.2+build2-0ubuntu0.22.04.1 |
| 20.04 LTS focal | Fixed 1:102.4.2+build2-0ubuntu0.20.04.1 |
| 18.04 LTS bionic | Fixed 1:102.4.2+build2-0ubuntu0.18.04.1 |
| 16.04 LTS xenial | Ignored end of standard support |
| 14.04 LTS trusty | Ignored end of standard support |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Notes

---

### [tyhicks](https://launchpad.net/~tyhicks)

mozjs contains a copy of the SpiderMonkey JavaScript engine

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

starting with Ubuntu 22.04, the firefox package is just a script
that installs the Firefox snap

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

8.8 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | Required |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 8.8 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-40962)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-40962)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2022-40962)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2022-40962)

### Related Ubuntu Security Notices (USN)

+ [USN-5649-1](https://usn.ubuntu.com/USN-5649-1)
+ Firefox vulnerabilities
+ 30 September 2022

+ [USN-5724-1](https://usn.ubuntu.com/USN-5724-1)
+ Thunderbird vulnerabilities
+ 11 November 2022

### Other references

* <https://www.mozilla.org/en-US/security/advisories/mfsa2022-40/#CVE-2022-40962>
* <https://www.mozilla.org/en-US/security/advisories/mfsa2022-41/#CVE-2022-40962>
* <https://www.mozilla.org/en-US/security/advisories/mfsa2022-42/#CVE-2022-40962>
* <https://www.cve.org/CVERecord?id=CVE-2022-40962>
