CVEfocus › CVE database › CVE-2021-3981

CVE-2021-3981

EPSS 0.3% (higher than 17% of CVEs)Published 2022-03-08Updated 2025-02-13Assigner: redhat

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.

CWE-276

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

45Fixed
27Fix pending
28Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04grub2Not affected
vulnerable_code_not_present
Ubuntu 26.04grub2-signedNot affected
vulnerable_code_not_present
Ubuntu 26.04grub2-unsignedNot affected
vulnerable_code_not_present
Ubuntu 25.10grub2Not affected
vulnerable_code_not_present
Ubuntu 25.10grub2-signedNot affected
vulnerable_code_not_present
Ubuntu 25.10grub2-unsignedNot affected
vulnerable_code_not_present
Ubuntu 24.04grub2Not affected
vulnerable_code_not_present
Ubuntu 24.04grub2-signedNot affected
vulnerable_code_not_present
Ubuntu 24.04grub2-unsignedNot affected
vulnerable_code_not_present
Ubuntu 22.04grub2Not affected
vulnerable_code_not_present
Ubuntu 22.04grub2-signedFixed1.187.3~22.04.1UBUNTU-CVE-2021-3981
Ubuntu 22.04grub2-unsignedFixed2.06-2ubuntu14.1UBUNTU-CVE-2021-3981
Ubuntu 20.04grub2Not affected
vulnerable_code_not_present
Ubuntu 20.04grub2-signedFixed1.187.3~20.04.1UBUNTU-CVE-2021-3981
Ubuntu 20.04grub2-unsignedFixed2.06-2ubuntu14.1UBUNTU-CVE-2021-3981
Ubuntu 18.04grub2Not affected
vulnerable_code_not_present
Ubuntu 18.04grub2-signedFix pendingUBUNTU-CVE-2021-3981
Ubuntu 18.04grub2-unsignedFix pendingUBUNTU-CVE-2021-3981
Ubuntu 16.04grub2Fix pending
Ubuntu 16.04grub2-signedFix pendingUBUNTU-CVE-2021-3981
Ubuntu 16.04grub2-unsignedFix pendingUBUNTU-CVE-2021-3981
Ubuntu 14.04grub2-signedFix pendingUBUNTU-CVE-2021-3981
Debian 14grub2Fixed2.06-8DEBIAN-CVE-2021-3981
Debian 13grub2Fixed2.06-8DEBIAN-CVE-2021-3981
Debian 12grub2Fixed2.06-8DEBIAN-CVE-2021-3981
Red Hat Enterprise Linux 9grub2Not affected
Red Hat Enterprise Linux 9grub2-commonNot affected
Red Hat Enterprise Linux 9grub2-efi-aa64Not affected
Red Hat Enterprise Linux 9grub2-efi-aa64-cdbootNot affected
Red Hat Enterprise Linux 9grub2-efi-aa64-modulesNot affected
Red Hat Enterprise Linux 9grub2-efi-x64Not affected
Red Hat Enterprise Linux 9grub2-efi-x64-cdbootNot affected
Red Hat Enterprise Linux 9grub2-efi-x64-modulesNot affected
Red Hat Enterprise Linux 9grub2-pcNot affected
Red Hat Enterprise Linux 9grub2-pc-modulesNot affected
Red Hat Enterprise Linux 9grub2-ppc64leNot affected
Red Hat Enterprise Linux 9grub2-ppc64le-modulesNot affected
Red Hat Enterprise Linux 9grub2-toolsNot affected
Red Hat Enterprise Linux 9grub2-tools-efiNot affected
Red Hat Enterprise Linux 9grub2-tools-extraNot affected
Red Hat Enterprise Linux 9grub2-tools-minimalNot affected
Red Hat Enterprise Linux 8grub2Fixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-commonFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-efi-aa64Fixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-efi-aa64-cdbootFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-efi-aa64-modulesFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-efi-ia32Fixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-efi-ia32-cdbootFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-efi-ia32-modulesFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-efi-x64Fixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-efi-x64-cdbootFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-efi-x64-modulesFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-pcFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-pc-modulesFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-ppc64leFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-ppc64le-modulesFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-toolsFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-tools-efiFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-tools-extraFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 8grub2-tools-minimalFixed1:2.02-123.el8RHSA-2022:2110
Red Hat Enterprise Linux 7grub2Fix pending
Affected
Red Hat Enterprise Linux 7grub2-commonFix pending
Affected
Red Hat Enterprise Linux 7grub2-efiFix pending
Affected
Red Hat Enterprise Linux 7grub2-efi-aa64-modulesFix pending
Affected
Red Hat Enterprise Linux 7grub2-efi-ia32Fix pending
Affected
Red Hat Enterprise Linux 7grub2-efi-ia32-cdbootFix pending
Affected
Red Hat Enterprise Linux 7grub2-efi-ia32-modulesFix pending
Affected
Red Hat Enterprise Linux 7grub2-efi-modulesFix pending
Affected
Red Hat Enterprise Linux 7grub2-efi-x64Fix pending
Affected
Red Hat Enterprise Linux 7grub2-efi-x64-cdbootFix pending
Affected
Red Hat Enterprise Linux 7grub2-efi-x64-modulesFix pending
Affected
Red Hat Enterprise Linux 7grub2-pcFix pending
Affected
Red Hat Enterprise Linux 7grub2-pc-modulesFix pending
Affected
Red Hat Enterprise Linux 7grub2-ppc-modulesFix pending
Affected
Red Hat Enterprise Linux 7grub2-ppc64Fix pending
Affected
Red Hat Enterprise Linux 7grub2-ppc64-modulesFix pending
Affected
Red Hat Enterprise Linux 7grub2-ppc64leFix pending
Affected
Red Hat Enterprise Linux 7grub2-ppc64le-modulesFix pending
Affected
Red Hat Enterprise Linux 7grub2-toolsFix pending
Affected
Red Hat Enterprise Linux 7grub2-tools-extraFix pending
Affected
Red Hat Enterprise Linux 7grub2-tools-minimalFix pending
Affected
AlmaLinux 8grub2-commonFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-efi-aa64Fixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-efi-aa64-cdbootFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-efi-aa64-modulesFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-efi-ia32Fixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-efi-ia32-cdbootFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-efi-ia32-modulesFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-efi-x64Fixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-efi-x64-cdbootFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-efi-x64-modulesFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-pcFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-pc-modulesFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-ppc64leFixed1:2.02-123.el8_6.8.almaALSA-2022:2110
AlmaLinux 8grub2-ppc64le-modulesFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-toolsFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-tools-efiFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-tools-extraFixed1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux 8grub2-tools-minimalFixed1:2.02-123.el8.almaALSA-2022:2110
Rocky Linux 8grub2Fixed1:2.02-123.el8RLSA-2022:2110

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.