{"schemaVersion":3,"id":"CVE-2021-3982","aliases":["MGASA-2022-0007","UBUNTU-CVE-2021-3982"],"status":"published","duplicateOf":null,"title":null,"description":"Linux distributions using CAP_SYS_NICE for gnome-shell may be exposed to a privilege escalation issue. An attacker, with low privilege permissions, may take advantage of the way CAP_SYS_NICE is currently implemented and eventually load code to increase its process scheduler priority leading to possible DoS of other services running in the same machine.","dates":{"published":"2022-04-29T00:00:00.000Z","modified":"2024-08-03T17:09:09.635Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":2.1,"severity":"low","vector":"AV:L/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00289,"percentile":0.20185,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00289},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00285,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00285,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00285,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00285,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00289,"percentile":0.20185}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00289,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00289,"percentile":0.20185}]},"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-273","name":"Improper Check for Dropped Privileges","description":"The product attempts to drop privileges but does not check or incorrectly checks to see if the drop succeeded.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/273.html"}],"affected":[{"vendor":"ubuntu","product":"gnome-shell","name":"gnome-shell","label":"gnome-shell","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/gnome-shell","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gnome","product":"gnome-shell","name":"gnome-shell","label":"gnome-shell","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/gnome/gnome-shell"},{"vendor":"mageia","product":"gnome-shell","name":"gnome-shell","label":"gnome-shell","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/gnome-shell","purlType":"rpm","versions":[{"text":"< 3.38.3-2.1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.38.3-2.1.mga8","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2284","label":"gitlab.gnome.org/GNOME/gnome-shell/-/issues/2284","hostname":"gitlab.gnome.org","tags":["Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2060","label":"gitlab.gnome.org/GNOME/mutter/-/merge_requests/2060","hostname":"gitlab.gnome.org","tags":["Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2022-0007.html","label":"advisories.mageia.org/MGASA-2022-0007.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29825","label":"bugs.mageia.org/show_bug.cgi?id=29825","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/SCLTOBHCAJ5W2MER2M53HAM2IBEBL2AC/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2021-3982","label":"ubuntu.com/security/CVE-2021-3982","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3982","label":"www.cve.org/CVERecord?id=CVE-2021-3982","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-04-29T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T17:09:09.635Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:50:52.866Z","stale":false,"partial":false}}