{"schemaVersion":4,"id":"CVE-2025-0678","aliases":["UBUNTU-CVE-2025-0678","DEBIAN-CVE-2025-0678"],"status":"published","duplicateOf":null,"title":"Grub2: squash4: integer overflow may lead to heap based out-of-bounds write when reading data","description":"A flaw was found in grub2. When reading data from a squash4 filesystem, grub's squash4 fs module uses user-controlled parameters from the filesystem geometry to determine the internal buffer size, however, it improperly checks for integer overflows. A maliciously crafted filesystem may lead some of those buffer size calculations to overflow, causing it to perform a grub_malloc() operation with a smaller size than expected. As a result, the direct_read() will perform a heap based out-of-bounds write during data reading. This flaw may be leveraged to corrupt grub's internal critical data and may result in arbitrary code execution, by-passing secure boot protections.","dates":{"published":"2025-03-03T17:05:41.928Z","modified":"2026-11-24T06:24:25.863Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00332,"percentile":0.28458,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.03700000000000001,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00295},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00332,"percentile":0.28458}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00295,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00344,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00332,"percentile":0.28458}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"}],"affected":[{"vendor":"debian","product":"grub2","name":"grub2","label":"grub2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/grub2","purlType":"deb","versions":[{"text":"< 2.06-13+deb12u2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.06-13+deb12u2","endInclusive":false}},{"text":"< 2.12-6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.12-6","endInclusive":false}}],"versionsText":"< 2.06-13+deb12u2 | < 2.12-6","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"grub2","name":"grub2","label":"grub2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/grub2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"grub2-signed","name":"grub2-signed","label":"grub2-signed","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/grub2-signed","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"grub2-unsigned","name":"grub2-unsigned","label":"grub2-unsigned","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/grub2-unsigned","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gnu","product":"grub2","name":"grub2","label":"grub2","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.12","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.12","endInclusive":true}}],"versionsText":"≤ 2.12","eol":null,"hubHref":"/vendor/gnu/grub2"},{"vendor":"redhat","product":"enterprise_linux","name":"enterprise linux","label":"enterprise_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"7.0"}},{"text":"8.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"8.0"}},{"text":"9.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"9.0"}}],"versionsText":"7.0 | 8.0 | 9.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"7","label":"7 (ELS)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":true,"isMaintained":true,"latestVersion":"7.9"},"product":{"name":"rhel","label":"Red Hat Enterprise Linux","category":"os"}},"hubHref":"/vendor/redhat/enterprise_linux"},{"vendor":"redhat","product":"openshift_container_platform","name":"openshift container platform","label":"openshift_container_platform","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"4.0"}}],"versionsText":"4.0","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform"}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://access.redhat.com/security/cve/CVE-2025-0678","label":"access.redhat.com/security/cve/CVE-2025-0678","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","Broken Link"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2346118","label":"bugzilla.redhat.com/show_bug.cgi?id=2346118","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html","label":"lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html","hostname":"lists.gnu.org","tags":[]},{"url":"https://ubuntu.com/security/CVE-2025-0678","label":"ubuntu.com/security/CVE-2025-0678","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-0678","label":"www.cve.org/CVERecord?id=CVE-2025-0678","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-0678","label":"security-tracker.debian.org/tracker/CVE-2025-0678","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-0678","label":"nvd.nist.gov/vuln/detail/CVE-2025-0678","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-4685-1","OPENSUSE-SU-2025:14822-1","SUSE-SU-2025:01961-1","SUSE-SU-2025:0586-1","SUSE-SU-2025:0587-1","SUSE-SU-2025:0588-1","SUSE-SU-2025:0607-1","SUSE-SU-2025:0629-1","SUSE-SU-2025:20511-1","SUSE-SU-2025:20863-1"],"duplicates":[],"related":["OPENSUSE-SU-2025:14822-1","SUSE-SU-2025:01961-1","SUSE-SU-2025:0586-1","SUSE-SU-2025:0587-1","SUSE-SU-2025:0588-1","SUSE-SU-2025:0607-1","SUSE-SU-2025:0629-1","SUSE-SU-2025:20511-1","SUSE-SU-2025:20863-1"]},"timeline":[{"kind":"published","date":"2025-03-03T17:05:41.928Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-24T06:24:25.863Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,78],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00332,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-24T06:24:25.863Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-24T06:24:25.863Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-11-24T06:24:25.863Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-11-24T06:24:25.863Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2025-03-04T16:15:54.571Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00332,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:31:36.523Z","stale":false,"partial":false}}