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

CVE-2025-0690
MEDIUM 6.1

At a glance

Source
NVD
EPSS
EPSS 0.79 % · percentile 56 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Deferred

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.

Weaknesses (CWE)

  • CWE-787 — Out-of-bounds Write

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.1CVSS:3.1/AV:P/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:Hredhat
CVSS 3.1MEDIUM 6.1CVSS:3.1/AV:P/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:HNVD · secalert@redhat.com (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
grub2affected 0 ≤ 2.12
Red Hat · Red Hat Enterprise Linux 9unaffected 1:2.06-104.el9_6 < *
Red Hat · Red Hat Enterprise Linux 10
Red Hat · Red Hat Enterprise Linux 7
Red Hat · Red Hat Enterprise Linux 8
Red Hat · Red Hat OpenShift Container Platform 4

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD