High severity · published Nov 17, 2021
CVE-2021-3939
Ubuntu-specific modifications to accountsservice (in patch file debian/patches/0010-set-language.patch) caused the fallback_locale variable, pointing to static storage, to be…
7.8
CVSS
0.4%
EPSS
No
On KEV
Description
Ubuntu-specific modifications to accountsservice (in patch file debian/patches/0010-set-language.patch) caused the fallback_locale variable, pointing to static storage, to be freed, in the user_change_language_authorized_cb function. This is reachable via the SetLanguage dbus function. This is fixed in versions 0.6.55-0ubuntu12~20.04.5, 0.6.55-0ubuntu13.3, 0.6.55-0ubuntu14.1.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 31% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AC
Accountsservice · Canonical
0.6.55-0ubuntu12\~20.04 before 0.6.55-0ubuntu12\~20.05; 0.6.55-0ubuntu13 before 0.6.55-0ubuntu13.3; 0.6.55-0ubuntu14 before 0.6.55-0ubuntu14.1 · source: NVD
UL
Ubuntu Linux · Canonical
20.04; 21.04; 21.10 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-3939
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-3939
packetstormsecurity.com
http://packetstormsecurity.com/files/172848/Ubuntu-accountsservice-Double-Free-Memory-Corruption.html
Broken Link
https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1950149
Vendor Advisory
https://ubuntu.com/security/notices/USN-5149-1
More from Accountsservice
7.8
CVE-2026-61898
accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts
7.8
CVE-2026-61897
accountsservice: incomplete privilege drop when running Ubuntu-specific language helper scripts
7.8
CVE-2023-3297
In Ubuntu's accountsservice an unprivileged local attacker can trigger a use-after-free vulnerability in accountsservice by sending a D-Bus message to the accounts-daemon process
5.5
CVE-2022-1804
accountsservice no longer drops permissions when writting .pam_environment
–
CVE-2011-4406
The Ubuntu AccountsService package before 0.6.14-1git1ubuntu1.1 does not properly drop privileges when changing language settings, which allows local users to modify arbitrary…
