CVE-2021-3939
CVE-2021-3939 is a high-severity vulnerability in Canonical Accountsservice with a CVSS 3.x base score of 7.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-763.
Key facts
- Severity: High (CVSS 3.x base score 7.8)
- CVSS v2: 7.2
- EPSS exploit prediction: 0% (27th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-763
- Affected product: Canonical Accountsservice
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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 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.
- How severe is CVE-2021-3939?
- CVE-2021-3939 has a CVSS 3.x base score of 7.8, rated high severity. It is exploitable over local access with high attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2021-3939 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (27th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-3939?
- CVE-2021-3939 primarily affects Canonical Accountsservice. In total, 4 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2021-3939?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-3939 published?
- CVE-2021-3939 was published on 2021-11-17 and last updated on 2026-06-17.
References
- http://packetstormsecurity.com/files/172848/Ubuntu-accountsservice-Double-Free-Memory-Corruption.html
- https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1950149
- https://ubuntu.com/security/notices/USN-5149-1
Affected products (4)
- cpe:2.3:a:canonical:accountsservice:*:*:*:*:*:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:21.04:*:*:*:*:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:21.10:*:*:*:*:*:*:*
More vulnerabilities in Canonical Accountsservice
- CVE-2023-3297 — High (CVSS 8.1): In Ubuntu's accountsservice an unprivileged local attacker can trigger a use-after-free vulnerability in…
- CVE-2022-1804 — Medium (CVSS 5.5): accountsservice no longer drops permissions when writting .pam_environment
- CVE-2011-4406 — Low (CVSS 3.6): The Ubuntu AccountsService package before 0.6.14-1git1ubuntu1.1 does not properly drop privileges when changing…
All CVEs affecting Canonical Accountsservice →
Other CWE-763 vulnerabilities
- CVE-2026-52993 — Critical (CVSS 9.8): In the Linux kernel, the following vulnerability has been resolved: tipc: fix double-free in…
- CVE-2025-14233 — Critical (CVSS 9.8): Invalid free in CPCA file deletion processing on Small Office Multifunction Printers and Laser Printers(*) which may…
- CVE-2024-44852 — Critical (CVSS 9.8): Open Robotics Robotic Operating System 2 ROS2 navigation2 v.humble was discovered to contain a segmentation violation…
- CVE-2021-42377 — Critical (CVSS 9.8): An attacker-controlled pointer free in Busybox's hush applet leads to denial of service and possible code execution…
- CVE-2021-30473 — Critical (CVSS 9.8): aom_image.c in libaom in AOMedia before 2021-04-07 frees memory that is not located on the heap.
- CVE-2021-24028 — Critical (CVSS 9.8): An invalid free in Thrift's table-based serialization can cause the application to crash or potentially result in code…