CVE-2024-26678
Vulnerability from cvelistv5
Published
2024-04-02 07:01
Modified
2024-09-11 17:33
Severity ?
Summary
x86/efistub: Use 1:1 file:memory mapping for PE/COFF .compat section
Impacted products
LinuxLinux
LinuxLinux
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": "d327e961573f",
              "status": "affected",
              "version": "c4421279b6c2",
              "versionType": "git"
            },
            {
              "lessThan": "0a962f2fbaa9",
              "status": "affected",
              "version": "686b58ce5052",
              "versionType": "git"
            },
            {
              "lessThan": "4adeeff8c123",
              "status": "affected",
              "version": "3e3eabe26dc8",
              "versionType": "git"
            },
            {
              "lessThan": "1ad55cecf22f",
              "status": "affected",
              "version": "3e3eabe26dc8",
              "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": "custom"
            },
            {
              "lessThanOrEqual": "6.7.*",
              "status": "unaffected",
              "version": "6.7.5",
              "versionType": "custom"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.8",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "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": "2024-05-29T05:20:41.121Z",
        "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-a5840b7849dd"
      }
    }
  },
  "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": "2024-09-11T17:33:35.938Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-26678\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-04-02T07:15:44.307\",\"lastModified\":\"2024-04-28T12:15:20.717\",\"vulnStatus\":\"Awaiting Analysis\",\"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)\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: x86/efistub: use archivo 1:1: mapeo de memoria para PE/COFF secci\u00f3n .compat La secci\u00f3n .compat es una secci\u00f3n PE ficticia que contiene la direcci\u00f3n del punto de entrada de 32 bits de la imagen del kernel de 64 bits si se puede iniciar desde firmware de 32 bits (es decir, CONFIG_EFI_MIXED=y) Esta secci\u00f3n tiene solo 8 bytes de tama\u00f1o y solo se hace referencia a ella desde el cargador, por lo que se coloca al final de la memoria. vista de la imagen, para evitar la necesidad de rellenarla a 4k, lo cual es necesario para las secciones que aparecen en el medio de la imagen. Desafortunadamente, esto viola la especificaci\u00f3n PE/COFF, e incluso si la mayor\u00eda de los cargadores EFI funcionan correctamente (incluida la implementaci\u00f3n de referencia de Tianocore), existen cargadores PE que rechazan dichas im\u00e1genes, bas\u00e1ndose en que tanto las vistas de archivo como de memoria del contenido del archivo deben ser descritos por los encabezados de las secciones de manera mon\u00f3tonamente creciente sin dejar espacios en blanco. As\u00ed que reorganice las secciones para evitar este problema. Esto da como resultado una ligera sobrecarga de relleno (\u0026lt; 4k) que se puede evitar si se desea deshabilitando CONFIG_EFI_MIXED (que solo es necesario en casos excepcionales en estos d\u00edas)\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0a962f2fbaa976af9eed21d0306370cded485787\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1ad55cecf22f05f1c884adf63cc09d3c3e609ebf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/4adeeff8c12321cd453412a659c3c0eeb9bb2397\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d327e961573fc335af0ae8a160302205327e1f4e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...