CVE-2022-1804 Accountsservice incorrectly drops privileges
Attackers can escalate privileges because accountsservice fails to drop permissions when writing .pam_environment files.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-1804?
CVE-2022-1804 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 25 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
accountsservice no longer drops permissions when writting .pam_environment
Weakness: CWE-269
Which versions are affected by CVE-2022-1804?
It affects 2 products.
Products include Canonical Accountsservice, Canonical Ubuntu Linux.
How do I fix CVE-2022-1804?
Apply the vendor's patch.
Is CVE-2022-1804 being exploited?
There is no known exploitation of CVE-2022-1804 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as AZL-66686, GHSA-v7v5-m765-h4w4, UBUNTU-CVE-2022-1804, USN-5439-1.