CVE-2021-3996
JSON

5.5medium

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.

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.64% (higher than 52% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

Description

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.

Affected

Product or packageVersionsReported by
util-linuxFixed in util-linux v2.37.3CVE List
kernel util-linuxfrom 2.34 before 2.37.3NVD
fedoraproject fedora35NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-552

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Se ha encontrado un error lógico en la biblioteca libmount de util-linux en la función que permite a un usuario no privilegiado desmontar un sistema de archivos FUSE. Este fallo permite a un usuario local en un sistema vulnerable desmontar los sistemas de archivos de otros usuarios que son de escritura mundial (como /tmp) o que están montados en un directorio de escritura mundial. Un atacante puede usar este fallo para causar una denegación de servicio a las aplicaciones que usan los sistemas de archivos afectados.

References

https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.37/v2.37.3-ReleaseNotesrelease-notes, vendor-advisory
https://github.com/util-linux/util-linux/commit/166e87368ae88bf31112a30e078cceae637f4cdbpatch, third-party-advisory
https://www.openwall.com/lists/oss-security/2022/01/24/2exploit, mailing-list, patch, third-party-advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2024628issue-tracking, patch, third-party-advisory
https://access.redhat.com/security/cve/CVE-2021-3996issue-tracking, third-party-advisory
http://www.openwall.com/lists/oss-security/2022/11/30/2mailing-list, third-party-advisory
http://seclists.org/fulldisclosure/2022/Dec/4mailing-list, third-party-advisory
http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.htmlthird-party-advisory
https://security.netapp.com/advisory/ntap-20221209-0002/broken-link, third-party-advisory
https://security.gentoo.org/glsa/202401-08vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-3996 changed 2024-10-15CVE Terms of Use
NVDCVE-2021-3996 changed 2026-06-17Public domain