Bug 1193097 (CVE-2021-3982) - VUL-0: CVE-2021-3982: gnome-shell: distributions using CAP_SYS_NICE in gnome-shell may be exposed to local DoS
Summary: VUL-0: CVE-2021-3982: gnome-shell: distributions using CAP_SYS_NICE in gnome-...
Status: RESOLVED INVALID
Alias: CVE-2021-3982
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: xiaoguang wang
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/315797/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-26 08:56 UTC by Carlos López
Modified: 2021-12-01 09:54 UTC (History)
3 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos López 2021-11-26 08:56:34 UTC
rh#2024174

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.

References:
https://bugzilla.redhat.com/show_bug.cgi?id=2024174
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3982
Comment 1 Carlos López 2021-11-26 08:57:55 UTC
From reading the upstream discussions [0] [1], I gather that this only affects us if we set CAP_SYS_NICE on our gnome-shell downstream build. As far as I can tell, from looking at SUSE:SLE-*/permissions, we are not doing so, but please confirm.

[0] https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2284
[1] https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4711
Comment 2 xiaoguang wang 2021-12-01 01:56:54 UTC
(In reply to Carlos López from comment #1)
> From reading the upstream discussions [0] [1], I gather that this only
> affects us if we set CAP_SYS_NICE on our gnome-shell downstream build. As
> far as I can tell, from looking at SUSE:SLE-*/permissions, we are not doing
> so, but please confirm.
> 
> [0] https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2284
> [1] https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4711

Yes, I don't find we set CAP_SYS_NICE on our gnome-shell.
Comment 3 Carlos López 2021-12-01 09:54:05 UTC
Since this does not affect us by default, and there is no upstream fix to prevent the bug if users set the capability manually, I'm closing this issue.