CVE-2025-0690

Grub2: read: integer overflow may lead to out-of-bounds write

State
Published
Severity
6.1 Medium
Published
Feb 24, 2025
Updated
Oct 21, 2026
Reserved
Jan 23, 2025

Read the record on cve.org

Description

The read command is used to read the keyboard input from the user, while reads it keeps the input length in a 32-bit integer value which is further used to reallocate the line buffer to accept the next character. During this process, with a line big enough it's possible to make this variable to overflow leading to a out-of-bounds write in the heap based buffer. This flaw may be leveraged to corrupt grub's internal critical data and secure boot bypass is not discarded as consequence.

Scores

CVSSScoreVectorSource
3.16.1 MediumCVSS:3.1/AV:P/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:Hredhat

Weaknesses

Affected Products

ProductVersions
grub2
  • 2.12 and earlierAffected
Red Hat Enterprise Linux 9Red Hat
  • 1:2.06-104.el9_6 and laterNot affected
Red Hat Enterprise Linux 10Red Hat
    Red Hat Enterprise Linux 7Red Hat
      Red Hat Enterprise Linux 8Red Hat
        Red Hat OpenShift Container Platform 4Red Hat

          References

          Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.