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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-11-17 · Modified: 2024-09-16
- Aliases: UBUNTU-CVE-2021-3939, USN-5149-1
- Record: https://cvemate.com/vulnerability/CVE-2021-3939 · JSON: https://cvemate.com/vulnerability/CVE-2021-3939/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS: 0.37%, percentile 32.995%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- canonical accountsservice: ≥ 0.6.55-0ubuntu12\\~20.04, \< 0.6.55-0ubuntu12\\~20.05 \| ≥ 0.6.55-0ubuntu13, \< 0.6.55-0ubuntu13.3 \| ≥ 0.6.55-0ubuntu14, \< 0.6.55-0ubuntu14.1
- canonical ubuntu\_linux: 20.04 \| 21.04 \| 21.10
- ubuntu accountsservice (Ubuntu): \< 0.6.55-0ubuntu12~20.04.5 \| \< 0.6.55-3ubuntu2
- ubuntu accountsservice: ≥ 0.6.55-0ubuntu12~20.04, \< 0.6.55-0ubuntu12~20.04.5 \| ≥ 0.6.55-0ubuntu13, \< 0.6.55-0ubuntu13.3 \| ≥ 0.6.55-0ubuntu14, \< 0.6.55-0ubuntu14.1

## References

- <https://ubuntu.com/security/notices/USN-5149-1>
- <https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1950149>
- <http://packetstormsecurity.com/files/172848/Ubuntu-accountsservice-Double-Free-Memory-Corruption.html>
- <https://ubuntu.com/security/CVE-2021-3939>
- <https://www.cve.org/CVERecord?id=CVE-2021-3939>

---

Data as of 2026-12-05T02:49:16.534Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
