CVE-2022-45412
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-45412 is a vulnerability discovered in Mozilla Firefox and Thunderbird that affects Unix-based operating systems (Android, Linux, MacOS). The vulnerability was disclosed on November 15, 2022, and affects Firefox ESR < 102.5, Thunderbird < 102.5, and Firefox < 107. When resolving a symlink such as file:///proc/self/fd/1, an error message may be produced where the symlink was resolved to a string containing uninitialized memory in the buffer (Mozilla Advisory, CVE Details).

Technical details

The vulnerability occurs in the nsLocalFile::GetNativeTarget() function when resolving symlinks. The issue arises because the function assumes that the length reported by lstat() equals the number of bytes later written to the buffer by readlink(). However, for special paths like those in /proc//fd/, the reported size may be incorrect (fixed at 64 bytes) regardless of the actual target length. This mismatch can lead to partial buffer initialization or truncation of the symlink value (Mozilla Bug).

Impact

The vulnerability has been assessed as having a moderate impact. It could potentially expose uninitialized memory contents in error messages when resolving certain symlinks, which might contain sensitive information. The issue specifically affects Unix-based systems, while Windows systems remain unaffected (Mozilla Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Firefox 107, Firefox ESR 102.5, and Thunderbird 102.5. Users are advised to update their software to these versions or newer to mitigate the vulnerability. The fix involves properly handling the return value of readlink() to determine the actual number of bytes written (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-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20806MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20805MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20804MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20803MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026

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