CVE-2022-1804
Linux Ubuntu vulnerability analysis and mitigation

Overview

AccountsService vulnerability (CVE-2022-1804) was discovered on May 19, 2022, affecting the accountsservice package in Ubuntu 22.04 LTS. The vulnerability occurs when accountsservice no longer drops permissions when writing .pam_environment file. This issue was originally addressed as CVE-2020-16126 but was accidentally reverted in version 0.6.55-3ubuntu1 (Ubuntu Security, NVD).

Technical details

The vulnerability is related to improper privilege management (CWE-269) where accountsservice fails to properly drop privileges when writing to .pam_environment. The issue has a CVSS v3.1 Base Score of 5.5 (Medium) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating local access required with low attack complexity (NVD).

Impact

When exploited, this vulnerability could allow a local user to cause AccountsService to crash or stop responding, resulting in a denial of service. Additionally, the vulnerability causes ~/.pam_environment files to be created with root ownership instead of the current user's ownership (Ubuntu Security Notice).

Mitigation and workarounds

The vulnerability was fixed in Ubuntu 22.04 LTS with accountsservice version 22.07.5-2ubuntu1.3. The fix includes updating the language-tools patch to not reset effective uid and migrate root-owned .pam_environment files. Users are advised to update their systems to the patched version and perform a system reboot to apply all necessary changes (Ubuntu Security Notice).

Additional resources


SourceThis report was generated using AI

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