Bug 2024628 (CVE-2021-3996)

Summary: CVE-2021-3996 util-linux: Unauthorized unmount of filesystems in libmount
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bdettelb, caswilli, dhalasz, fjansen, jburrell, jonathan, jwong, kaycoth, kzak, micjohns, psegedy, rschiron, security-response-team, sthirugn, tkasparek, tsasak, vkrizan, vkumar, vmugicag
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: util-linux 2.37.3 Doc Type: If docs needed, set a value
Doc Text:
A logic error was found in the libmount library of util-linux in the function that allows an unprivileged user to unmount a FUSE filesystem. This flaw allows a local user on a vulnerable system to unmount other users' filesystems that are either world-writable themselves (like /tmp) or mounted in a world-writable directory. An attacker may use this flaw to cause a denial of service to applications that use the affected filesystems.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:16:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2032273, 2044307    
Bug Blocks: 2024641    

Description Pedro Sampaio 2021-11-18 14:20:47 UTC
A flaw was found in util-linux's libmount. An issue related to parsing the /proc/self/mountinfo file allows an unprivileged user to unmount other users' filesystems that are either world-writable themselves (like /tmp) or mounted in a world-writable directory.

Comment 6 Riccardo Schirone 2021-11-19 16:09:56 UTC
RHEL 6, 7 and 8 are not affected by this bug as they ship an older version of util-linux which does not allow unprivileged users to unmount FUSE mount points for the current user (e.g. is_fuse_usermount() function does not exist).

Comment 14 Riccardo Schirone 2022-01-24 12:01:37 UTC
Created util-linux tracking bugs for this issue:

Affects: fedora-all [bug 2044307]

Comment 16 Product Security DevOps Team 2022-05-17 15:16:44 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-3996

Comment 17 Red Hat Bugzilla 2023-09-15 01:50:04 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days