Bug 2024170 (CVE-2021-3981)

Summary: CVE-2021-3981 grub2: Incorrect permission in grub.cfg allow unprivileged user to read the file content
Product: [Other] Security Response Reporter: Marco Benatto <mbenatto>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: bootloader-eng-team, fmartine, lkundrak, pgnet.dev, pjones, rharwood
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-11 12:15:34 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: 2030358, 2030359, 2030724    
Bug Blocks: 2024171, 2025015    

Description Marco Benatto 2021-11-17 13:35:07 UTC
GRUB2 grub.cfg configuration file is created with the wrong permission (0644) allowing unprivileged users to read grub's configuration file content. This presents a low Confidentiality risk as grub.cfg may contain encrypted passwords.

Comment 2 Marco Benatto 2021-12-08 14:44:00 UTC
Created grub2 tracking bugs for this issue:

Affects: fedora-all [bug 2030358]

Comment 5 Marco Benatto 2022-01-05 14:12:42 UTC
Upstream patch for this issue:
https://git.savannah.gnu.org/cgit/grub.git/commit/?id=0adec29674561034771c13e446069b41ef41e4d4

Comment 6 errata-xmlrpc 2022-05-10 15:26:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:2110 https://access.redhat.com/errata/RHSA-2022:2110

Comment 7 Product Security DevOps Team 2022-05-11 12:15:32 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-3981