CVE-2022-1097
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-1097 is a high-severity use-after-free vulnerability discovered in Mozilla products. The vulnerability was identified in NSSToken objects that were referenced via direct pointers and could be accessed unsafely across different threads. This security flaw affects multiple Mozilla products including Firefox versions prior to 99, Firefox ESR versions before 91.8, and Thunderbird versions before 91.8. The vulnerability was discovered by Randell Jesup and publicly disclosed on April 5, 2022 (Mozilla Advisory).

Technical details

The vulnerability stems from NSSToken objects being referenced through direct pointers that could be accessed in an unsafe manner across different threads. This improper handling of references could lead to a use-after-free condition when the reference count for slot->nssToken is decremented to 0 in another thread. The issue has been assigned a CVSS v3.1 base score of 6.5 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability could result in a potentially exploitable crash due to memory corruption. In Firefox, the crash occurs in the parent process, though not directly in response to client-side actions. While the exact location of the use-after-free is not immediately obvious, the vulnerability could potentially be exploited to run arbitrary code with enough effort (Mozilla Advisory, Mozilla Advisory ESR).

Mitigation and workarounds

The vulnerability was addressed in Firefox 99, Firefox ESR 91.8, and Thunderbird 91.8. The fix involved making PK11Slot_GetNSSToken thread-safe and implementing proper reference counting for NSSToken objects. Users are advised to upgrade to these versions or later to mitigate the vulnerability (Mozilla Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-65622MEDIUM5.4
  • PHPPHP
  • snipe-it
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management