{
  "id": "CVE-2025-0624",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-0624",
  "published_at": "2025-02-19T18:23:21.463Z",
  "title": "Grub2: net: out-of-bounds write in grub_net_search_config_file()",
  "vendor": "Red Hat",
  "product": "Red Hat",
  "cvss": {
    "score": 7.6,
    "source": "cna",
    "vector": "CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "A flaw was found in grub2. During the network boot process, when trying to search for the configuration file, grub copies data from a user controlled environment variable into an internal buffer using the grub_strcpy() function. During this step, it fails to consider the environment variable length when allocating the internal buffer, resulting in an out-of-bounds write. If correctly exploited, this issue may result in remote code execution through the same network segment grub is searching for the boot information, which can be used to by-pass secure boot protections.",
  "cwe": "CWE-787",
  "cvss_by_source": {
    "cna": 7.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "",
        "ranges": [
          "\u003c= 2.12"
        ],
        "fixed_in": null
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 7 Extended Lifecycle Support",
        "ranges": null,
        "fixed_in": [
          "1:2.02-0.87.el7_9.15"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8",
        "ranges": null,
        "fixed_in": [
          "1:2.02-162.el8_10"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.2 Advanced Update Support",
        "ranges": null,
        "fixed_in": [
          "1:2.02-87.el8_2.13"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support",
        "ranges": null,
        "fixed_in": [
          "1:2.02-99.el8_4.12"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.4 Telecommunications Update Service",
        "ranges": null,
        "fixed_in": [
          "1:2.02-99.el8_4.12"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "1:2.02-99.el8_4.12"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support",
        "ranges": null,
        "fixed_in": [
          "1:2.02-123.el8_6.18"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Telecommunications Update Service",
        "ranges": null,
        "fixed_in": [
          "1:2.02-123.el8_6.18"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "1:2.02-123.el8_6.18"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "1:2.02-152.el8_8.2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "1:2.06-94.el9_5"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "1:2.06-27.el9_0.22"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.2 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "1:2.06-61.el9_2.10"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.4 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "1:2.06-86.el9_4.2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.12",
        "ranges": null,
        "fixed_in": [
          "412.86.202503310142-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.13",
        "ranges": null,
        "fixed_in": [
          "413.92.202504070146-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.14",
        "ranges": null,
        "fixed_in": [
          "414.92.202505141057-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.15",
        "ranges": null,
        "fixed_in": [
          "415.92.202504282058-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.16",
        "ranges": null,
        "fixed_in": [
          "416.94.202503252048-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.17",
        "ranges": null,
        "fixed_in": [
          "417.94.202503241418-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.18",
        "ranges": null,
        "fixed_in": [
          "418.94.202504021150-0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Red Hat Enterprise Linux 7 Extended Lifecycle Support to 1:2.02-0.87.el7_9.15 or later.",
      "Upgrade Red Hat Enterprise Linux 8 to 1:2.02-162.el8_10 or later.",
      "Upgrade Red Hat Enterprise Linux 8.2 Advanced Update Support to 1:2.02-87.el8_2.13 or later.",
      "Upgrade Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support to 1:2.02-99.el8_4.12 or later.",
      "Upgrade Red Hat Enterprise Linux 8.4 Telecommunications Update Service to 1:2.02-99.el8_4.12 or later.",
      "Upgrade Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions to 1:2.02-99.el8_4.12 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to 1:2.02-123.el8_6.18 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Telecommunications Update Service to 1:2.02-123.el8_6.18 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions to 1:2.02-123.el8_6.18 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Extended Update Support to 1:2.02-152.el8_8.2 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 1:2.06-94.el9_5 or later.",
      "Upgrade Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions to 1:2.06-27.el9_0.22 or later.",
      "Upgrade Red Hat Enterprise Linux 9.2 Extended Update Support to 1:2.06-61.el9_2.10 or later.",
      "Upgrade Red Hat Enterprise Linux 9.4 Extended Update Support to 1:2.06-86.el9_4.2 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.12 to 412.86.202503310142-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.13 to 413.92.202504070146-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.14 to 414.92.202505141057-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.15 to 415.92.202504282058-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.16 to 416.94.202503252048-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.17 to 417.94.202503241418-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.18 to 418.94.202504021150-0 or later."
    ],
    "workarounds": [
      "Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2025:2521"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2025:2653"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2025:2655"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2025:2675"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2025:2784"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2025:2799"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2025:2867"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2025:2869"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
