CVE-2021-3981
Rocky Linux vulnerability analysis and mitigation

Overview

A flaw in GRUB2 (CVE-2021-3981) was discovered where its configuration file, known as grub.cfg, is being created with the wrong permission set (0644) allowing non-privileged users to read its content. This vulnerability affects GRUB2 version 2.06 and previous versions (CVE Details, Red Hat CVE).

Technical details

The vulnerability stems from incorrect permission settings in the GRUB2 configuration file (grub.cfg). When the file is created, it is set with permissions that allow unprivileged users to read its contents, representing a low severity confidentiality issue. The issue was fixed in GRUB upstream through a patch that restores the proper umask for grub.cfg (Red Hat Bugzilla, Fedora Update).

Impact

The primary impact of this vulnerability is that unauthorized users can read the grub.cfg file content, which may contain encrypted passwords. This represents a low severity confidentiality issue as those users can potentially access any encrypted passwords present in the configuration file (CVE Details).

Mitigation and workarounds

The issue has been fixed in the GRUB upstream through a patch that restores the proper umask for grub.cfg. Users are advised to upgrade to patched versions of GRUB2. For Fedora users, the fix is available in version 2.06-9.fc34, and for Gentoo users, versions >= 2.06 contain the fix (Fedora Update, Gentoo Security).

Additional resources


SourceThis report was generated using AI

Related Rocky Linux vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13699HIGH7
  • MariaDB ServerMariaDB Server
  • mariadb:10.3::mariadb-common
NoYesDec 23, 2025
CVE-2025-43541MEDIUM4.3
  • Apple SafariApple Safari
  • javascriptcoregtk4.1-debuginfo
NoYesDec 17, 2025
CVE-2025-43536MEDIUM4.3
  • Apple SafariApple Safari
  • javascriptcoregtk6.0-debuginfo
NoYesDec 17, 2025
CVE-2025-43535MEDIUM4.3
  • Apple SafariApple Safari
  • webkit2gtk3-devel
NoYesDec 17, 2025
CVE-2025-61594LOW2.7
  • RubyRuby
  • ruby:3.3::rubygem-mongo-doc
NoYesDec 30, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management