
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."