CVE-2024-26678 (GCVE-0-2024-26678)

Vulnerability from cvelistv5 – Published: 2024-04-02 07:01 – Updated: 2025-05-04 08:53
VLAI?
Title
x86/efistub: Use 1:1 file:memory mapping for PE/COFF .compat section
Summary
In the Linux kernel, the following vulnerability has been resolved: x86/efistub: Use 1:1 file:memory mapping for PE/COFF .compat section The .compat section is a dummy PE section that contains the address of the 32-bit entrypoint of the 64-bit kernel image if it is bootable from 32-bit firmware (i.e., CONFIG_EFI_MIXED=y) This section is only 8 bytes in size and is only referenced from the loader, and so it is placed at the end of the memory view of the image, to avoid the need for padding it to 4k, which is required for sections appearing in the middle of the image. Unfortunately, this violates the PE/COFF spec, and even if most EFI loaders will work correctly (including the Tianocore reference implementation), PE loaders do exist that reject such images, on the basis that both the file and memory views of the file contents should be described by the section headers in a monotonically increasing manner without leaving any gaps. So reorganize the sections to avoid this issue. This results in a slight padding overhead (< 4k) which can be avoided if desired by disabling CONFIG_EFI_MIXED (which is only needed in rare cases these days)
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: c4421279b6c278efe129bde7abc64af59ea2dfbd , < d327e961573fc335af0ae8a160302205327e1f4e (git)
Affected: 686b58ce5052842bd34ea94870a2671317331716 , < 0a962f2fbaa976af9eed21d0306370cded485787 (git)
Affected: 3e3eabe26dc88692d34cf76ca0e0dd331481cc15 , < 4adeeff8c12321cd453412a659c3c0eeb9bb2397 (git)
Affected: 3e3eabe26dc88692d34cf76ca0e0dd331481cc15 , < 1ad55cecf22f05f1c884adf63cc09d3c3e609ebf (git)
Create a notification for this product.
    Linux Linux Affected: 6.7
Unaffected: 0 , < 6.7 (semver)
Unaffected: 6.7.5 , ≤ 6.7.* (semver)
Unaffected: 6.8 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T00:14:12.888Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/d327e961573fc335af0ae8a160302205327e1f4e"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/0a962f2fbaa976af9eed21d0306370cded485787"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/4adeeff8c12321cd453412a659c3c0eeb9bb2397"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/1ad55cecf22f05f1c884adf63cc09d3c3e609ebf"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-26678",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T15:53:23.066557Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:33:35.938Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/x86/boot/header.S",
            "arch/x86/boot/setup.ld"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "d327e961573fc335af0ae8a160302205327e1f4e",
              "status": "affected",
              "version": "c4421279b6c278efe129bde7abc64af59ea2dfbd",
              "versionType": "git"
            },
            {
              "lessThan": "0a962f2fbaa976af9eed21d0306370cded485787",
              "status": "affected",
              "version": "686b58ce5052842bd34ea94870a2671317331716",
              "versionType": "git"
            },
            {
              "lessThan": "4adeeff8c12321cd453412a659c3c0eeb9bb2397",
              "status": "affected",
              "version": "3e3eabe26dc88692d34cf76ca0e0dd331481cc15",
              "versionType": "git"
            },
            {
              "lessThan": "1ad55cecf22f05f1c884adf63cc09d3c3e609ebf",
              "status": "affected",
              "version": "3e3eabe26dc88692d34cf76ca0e0dd331481cc15",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/x86/boot/header.S",
            "arch/x86/boot/setup.ld"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.7"
            },
            {
              "lessThan": "6.7",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.7.*",
              "status": "unaffected",
              "version": "6.7.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.8",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.7.5",
                  "versionStartIncluding": "6.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.8",
                  "versionStartIncluding": "6.7",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nx86/efistub: Use 1:1 file:memory mapping for PE/COFF .compat section\n\nThe .compat section is a dummy PE section that contains the address of\nthe 32-bit entrypoint of the 64-bit kernel image if it is bootable from\n32-bit firmware (i.e., CONFIG_EFI_MIXED=y)\n\nThis section is only 8 bytes in size and is only referenced from the\nloader, and so it is placed at the end of the memory view of the image,\nto avoid the need for padding it to 4k, which is required for sections\nappearing in the middle of the image.\n\nUnfortunately, this violates the PE/COFF spec, and even if most EFI\nloaders will work correctly (including the Tianocore reference\nimplementation), PE loaders do exist that reject such images, on the\nbasis that both the file and memory views of the file contents should be\ndescribed by the section headers in a monotonically increasing manner\nwithout leaving any gaps.\n\nSo reorganize the sections to avoid this issue. This results in a slight\npadding overhead (\u003c 4k) which can be avoided if desired by disabling\nCONFIG_EFI_MIXED (which is only needed in rare cases these days)"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:53:46.172Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/d327e961573fc335af0ae8a160302205327e1f4e"
        },
        {
          "url": "https://git.kernel.org/stable/c/0a962f2fbaa976af9eed21d0306370cded485787"
        },
        {
          "url": "https://git.kernel.org/stable/c/4adeeff8c12321cd453412a659c3c0eeb9bb2397"
        },
        {
          "url": "https://git.kernel.org/stable/c/1ad55cecf22f05f1c884adf63cc09d3c3e609ebf"
        }
      ],
      "title": "x86/efistub: Use 1:1 file:memory mapping for PE/COFF .compat section",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-26678",
    "datePublished": "2024-04-02T07:01:42.262Z",
    "dateReserved": "2024-02-19T14:20:24.152Z",
    "dateUpdated": "2025-05-04T08:53:46.172Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/d327e961573fc335af0ae8a160302205327e1f4e\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/0a962f2fbaa976af9eed21d0306370cded485787\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/4adeeff8c12321cd453412a659c3c0eeb9bb2397\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/1ad55cecf22f05f1c884adf63cc09d3c3e609ebf\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T00:14:12.888Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-26678\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T15:53:23.066557Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:17.553Z\"}}], \"cna\": {\"title\": \"x86/efistub: Use 1:1 file:memory mapping for PE/COFF .compat section\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"c4421279b6c278efe129bde7abc64af59ea2dfbd\", \"lessThan\": \"d327e961573fc335af0ae8a160302205327e1f4e\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"686b58ce5052842bd34ea94870a2671317331716\", \"lessThan\": \"0a962f2fbaa976af9eed21d0306370cded485787\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"3e3eabe26dc88692d34cf76ca0e0dd331481cc15\", \"lessThan\": \"4adeeff8c12321cd453412a659c3c0eeb9bb2397\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"3e3eabe26dc88692d34cf76ca0e0dd331481cc15\", \"lessThan\": \"1ad55cecf22f05f1c884adf63cc09d3c3e609ebf\", \"versionType\": \"git\"}], \"programFiles\": [\"arch/x86/boot/header.S\", \"arch/x86/boot/setup.ld\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.7\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.7\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.7.5\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.7.*\"}, {\"status\": \"unaffected\", \"version\": \"6.8\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"arch/x86/boot/header.S\", \"arch/x86/boot/setup.ld\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/d327e961573fc335af0ae8a160302205327e1f4e\"}, {\"url\": \"https://git.kernel.org/stable/c/0a962f2fbaa976af9eed21d0306370cded485787\"}, {\"url\": \"https://git.kernel.org/stable/c/4adeeff8c12321cd453412a659c3c0eeb9bb2397\"}, {\"url\": \"https://git.kernel.org/stable/c/1ad55cecf22f05f1c884adf63cc09d3c3e609ebf\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nx86/efistub: Use 1:1 file:memory mapping for PE/COFF .compat section\\n\\nThe .compat section is a dummy PE section that contains the address of\\nthe 32-bit entrypoint of the 64-bit kernel image if it is bootable from\\n32-bit firmware (i.e., CONFIG_EFI_MIXED=y)\\n\\nThis section is only 8 bytes in size and is only referenced from the\\nloader, and so it is placed at the end of the memory view of the image,\\nto avoid the need for padding it to 4k, which is required for sections\\nappearing in the middle of the image.\\n\\nUnfortunately, this violates the PE/COFF spec, and even if most EFI\\nloaders will work correctly (including the Tianocore reference\\nimplementation), PE loaders do exist that reject such images, on the\\nbasis that both the file and memory views of the file contents should be\\ndescribed by the section headers in a monotonically increasing manner\\nwithout leaving any gaps.\\n\\nSo reorganize the sections to avoid this issue. This results in a slight\\npadding overhead (\u003c 4k) which can be avoided if desired by disabling\\nCONFIG_EFI_MIXED (which is only needed in rare cases these days)\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.7.5\", \"versionStartIncluding\": \"6.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.8\", \"versionStartIncluding\": \"6.7\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T08:53:46.172Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-26678\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-04T08:53:46.172Z\", \"dateReserved\": \"2024-02-19T14:20:24.152Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-04-02T07:01:42.262Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…