# CVE-2021-3939: Free of static data in accountsservice

- Severity: High 7.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-17T03:15:10.949Z
- Modified: 2026-06-17T04:06:01.293Z
- Weaknesses: CWE-590, CWE-763
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- Ubuntu accountsservice: from 0.6.55-0ubuntu12~20.04 before 0.6.55-0ubuntu12~20.04.5; from 0.6.55-0ubuntu13 before 0.6.55-0ubuntu13.3; from 0.6.55-0ubuntu14 before 0.6.55-0ubuntu14.1
- canonical accountsservice: from 0.6.55-0ubuntu12\~20.04 before 0.6.55-0ubuntu12\~20.05; from 0.6.55-0ubuntu13 before 0.6.55-0ubuntu13.3; from 0.6.55-0ubuntu14 before 0.6.55-0ubuntu14.1
- canonical ubuntu_linux: 20.04; 21.04; 21.10

## Every score

- canonical: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## References

- <http://packetstormsecurity.com/files/172848/Ubuntu-accountsservice-Double-Free-Memory-Corruption.html> (exploit)
- <https://ubuntu.com/security/notices/USN-5149-1> (vendor-advisory)
- <https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1950149> (broken-link)

## Sources

- CVE List: [CVE-2021-3939](https://www.cve.org/CVERecord?id=CVE-2021-3939), CVE Terms of Use, modified 2024-09-16
- NVD: [CVE-2021-3939](https://nvd.nist.gov/vuln/detail/CVE-2021-3939), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3939 · Whole record: https://cve.day/CVE-2021-3939.json · Rebuilt by cve.day 2026-11-25T22:58:05.600Z
