CVE-2021-3981

NameCVE-2021-3981
DescriptionA 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1001414

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
grub2 (PTS)jessie, jessie (lts)2.02~beta2-22+deb8u2fixed
stretch (lts), stretch2.02~beta3-5+deb9u3fixed
buster (security), buster, buster (lts)2.06-3~deb10u4vulnerable
bullseye (security), bullseye2.06-3~deb11u6vulnerable
bookworm (security), bookworm2.06-13+deb12u1fixed
sid, trixie2.12-5fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
grub2sourcejessie(not affected)
grub2sourcestretch(not affected)
grub2source(unstable)2.06-81001414

Notes

[bullseye] - grub2 <no-dsa> (Minor issue)
[buster] - grub2 <no-dsa> (Minor issue)
[stretch] - grub2 <not-affected> (Vulnerable code introduced later)
https://bugzilla.redhat.com/show_bug.cgi?id=2024170
Introduced by: https://git.savannah.gnu.org/gitweb/?p=grub.git;a=commit;h=ab2e53c8a196a595e50f1c836bf756b9db1ae68d (grub-2.06-rc1)
https://lists.gnu.org/archive/html/grub-devel/2021-12/msg00013.html
Fixed by: https://git.savannah.gnu.org/gitweb/?p=grub.git;a=commit;h=0adec29674561034771c13e446069b41ef41e4d4
[jessie] - grub2 <not-affected> (Vulnerable code introduced later)

Search for package or bug name: Reporting problems