CVE Vulnerabilities

CVE-2021-3981

Incorrect Default Permissions

Published: Mar 10, 2022 | Modified: Jan 16, 2024
CVSS 3.x
3.3
LOW
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
CVSS 2.x
2.1 LOW
AV:L/AC:L/Au:N/C:P/I:N/A:N
RedHat/V2
RedHat/V3
3.3 LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Ubuntu
LOW

A flaw in grub2 was found where its configuration file, known as grub.cfg, is being created with the wrong permission set allowing non privileged users to read its content. This represents a low severity confidentiality issue, as those users can eventually read any encrypted passwords present in grub.cfg. This flaw affects grub2 2.06 and previous versions. This issue has been fixed in grub upstream but no version with the fix is currently released.

Weakness

During installation, installed file permissions are set to allow anyone to modify those files.

Affected Software

Name Vendor Start Version End Version
Grub2 Gnu * 2.06 (including)
Red Hat Enterprise Linux 8 RedHat grub2-1:2.02-123.el8 *
Grub2 Ubuntu hirsute *
Grub2 Ubuntu impish *
Grub2 Ubuntu kinetic *
Grub2 Ubuntu lunar *
Grub2 Ubuntu trusty *
Grub2 Ubuntu xenial *
Grub2-signed Ubuntu bionic *
Grub2-signed Ubuntu focal *
Grub2-signed Ubuntu jammy *
Grub2-signed Ubuntu kinetic *
Grub2-signed Ubuntu trusty *
Grub2-signed Ubuntu xenial *
Grub2-unsigned Ubuntu bionic *
Grub2-unsigned Ubuntu focal *
Grub2-unsigned Ubuntu jammy *
Grub2-unsigned Ubuntu kinetic *
Grub2-unsigned Ubuntu trusty *
Grub2-unsigned Ubuntu xenial *

Potential Mitigations

  • Compartmentalize the system to have “safe” areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.
  • Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

References