{"schemaVersion":3,"id":"CVE-2021-3939","aliases":["UBUNTU-CVE-2021-3939","USN-5149-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-11-17T03:15:10.949Z","modified":"2024-09-16T18:02:58.362Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":2.8,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.2,"severity":"high","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00373,"percentile":0.29828,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00373},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00373,"percentile":0.29828}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00373,"percentile":0.29828}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-590","name":"Free of Memory not on the Heap","description":"The product calls free() on a pointer to memory that was not allocated using associated heap allocation functions such as malloc(), calloc(), or realloc().","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/590.html"},{"id":"CWE-763","name":"Release of Invalid Pointer or Reference","description":"The product attempts to return a memory resource to the system, but it calls the wrong release function or calls the appropriate release function incorrectly.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/763.html"}],"affected":[{"vendor":"canonical","product":"accountsservice","name":"accountsservice","label":"accountsservice","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.6.55-0ubuntu12\\~20.04, < 0.6.55-0ubuntu12\\~20.05","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.6.55-0ubuntu13, < 0.6.55-0ubuntu13.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.6.55-0ubuntu14, < 0.6.55-0ubuntu14.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 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","eol":null,"hubHref":"/vendor/canonical/accountsservice"},{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"20.04","noFixRecorded":false,"fixedIn":null},{"text":"21.04","noFixRecorded":false,"fixedIn":null},{"text":"21.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"20.04 | 21.04 | 21.10","eol":{"isEol":true,"eolDate":"2025-05-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"20.04","label":"20.04 'Focal Fossa' (LTS)","eolFrom":"2025-05-31T00:00:00.000Z","isLts":true,"isMaintained":true,"latestVersion":"20.04.6"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"ubuntu","product":"accountsservice","name":"accountsservice","label":"accountsservice","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/accountsservice","purlType":"deb","versions":[{"text":"< 0.6.55-0ubuntu12~20.04.5","noFixRecorded":false,"fixedIn":null},{"text":"< 0.6.55-3ubuntu2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6.55-0ubuntu12~20.04.5 | < 0.6.55-3ubuntu2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"accountsservice","name":"accountsservice","label":"accountsservice","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.6.55-0ubuntu12~20.04, < 0.6.55-0ubuntu12~20.04.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.6.55-0ubuntu13, < 0.6.55-0ubuntu13.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.6.55-0ubuntu14, < 0.6.55-0ubuntu14.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 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","eol":null,"hubHref":"/vendor/ubuntu/accountsservice"}],"affectedCount":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://ubuntu.com/security/notices/USN-5149-1","label":"ubuntu.com/security/notices/USN-5149-1","hostname":"ubuntu.com","tags":["Advisory","Vendor Advisory"]},{"url":"https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1950149","label":"bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1950149","hostname":"bugs.launchpad.net","tags":["Broken Link"]},{"url":"http://packetstormsecurity.com/files/172848/Ubuntu-accountsservice-Double-Free-Memory-Corruption.html","label":"packetstormsecurity.com/files/172848/Ubuntu-accountsservice-Double-Free-Memory-Corruption.html","hostname":"packetstormsecurity.com","tags":[]},{"url":"https://ubuntu.com/security/CVE-2021-3939","label":"ubuntu.com/security/CVE-2021-3939","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3939","label":"www.cve.org/CVERecord?id=CVE-2021-3939","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-11-17T03:15:10.949Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T18:02:58.362Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:45:51.810Z","stale":false,"partial":false}}