cve-2024-56689
Vulnerability from cvelistv5
Published
2024-12-28 09:46
Modified
2025-01-20 06:26
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio' If platform_get_resource_byname() fails and returns NULL because DT lacks an 'mmio' property for the MHI endpoint, dereferencing res->start will cause a NULL pointer access. Add a check to prevent it. [kwilczynski: error message update per the review feedback] [bhelgaas: commit log]
Impacted products
Vendor Product Version
Linux Linux Version: 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96
Version: 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96
Version: 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96
Version: 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96
Create a notification for this product.
   Linux Linux Version: 6.5
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/pci/endpoint/functions/pci-epf-mhi.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "242ee2b0ad9b23f47084904fce3f9f228068a1f9",
              "status": "affected",
              "version": "1bf5f25324f7f6a52c3eb566ec5f78f6a901db96",
              "versionType": "git"
            },
            {
              "lessThan": "c8b9d6b7d62a444e0bca5b9ae28f9f2b0f52feef",
              "status": "affected",
              "version": "1bf5f25324f7f6a52c3eb566ec5f78f6a901db96",
              "versionType": "git"
            },
            {
              "lessThan": "0e6d92e3b973de78eb7015154cf1197af9fac5c9",
              "status": "affected",
              "version": "1bf5f25324f7f6a52c3eb566ec5f78f6a901db96",
              "versionType": "git"
            },
            {
              "lessThan": "5089b3d874e9933d9842e90410d3af1520494757",
              "status": "affected",
              "version": "1bf5f25324f7f6a52c3eb566ec5f78f6a901db96",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/pci/endpoint/functions/pci-epf-mhi.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.5"
            },
            {
              "lessThan": "6.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.11.*",
              "status": "unaffected",
              "version": "6.11.11",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.13",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks \u0027mmio\u0027\n\nIf platform_get_resource_byname() fails and returns NULL because DT lacks\nan \u0027mmio\u0027 property for the MHI endpoint, dereferencing res-\u003estart will\ncause a NULL pointer access. Add a check to prevent it.\n\n[kwilczynski: error message update per the review feedback]\n[bhelgaas: commit log]"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-01-20T06:26:10.306Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/242ee2b0ad9b23f47084904fce3f9f228068a1f9"
        },
        {
          "url": "https://git.kernel.org/stable/c/c8b9d6b7d62a444e0bca5b9ae28f9f2b0f52feef"
        },
        {
          "url": "https://git.kernel.org/stable/c/0e6d92e3b973de78eb7015154cf1197af9fac5c9"
        },
        {
          "url": "https://git.kernel.org/stable/c/5089b3d874e9933d9842e90410d3af1520494757"
        }
      ],
      "title": "PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks \u0027mmio\u0027",
      "x_generator": {
        "engine": "bippy-5f407fcff5a0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-56689",
    "datePublished": "2024-12-28T09:46:15.587Z",
    "dateReserved": "2024-12-27T15:00:39.848Z",
    "dateUpdated": "2025-01-20T06:26:10.306Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-56689\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-12-28T10:15:13.130\",\"lastModified\":\"2025-01-08T16:45:25.490\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nPCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks \u0027mmio\u0027\\n\\nIf platform_get_resource_byname() fails and returns NULL because DT lacks\\nan \u0027mmio\u0027 property for the MHI endpoint, dereferencing res-\u003estart will\\ncause a NULL pointer access. Add a check to prevent it.\\n\\n[kwilczynski: error message update per the review feedback]\\n[bhelgaas: commit log]\"},{\"lang\":\"es\",\"value\":\"En el n\u00facleo de Linux, se ha resuelto la siguiente vulnerabilidad: PCI: endpoint: epf-mhi: Evitar la desreferenciaci\u00f3n NULL si DT carece de \u0027mmio\u0027 Si platform_get_resource_byname() falla y devuelve NULL porque DT carece de una propiedad \u0027mmio\u0027 para el endpoint MHI, la desreferenciaci\u00f3n de res-\u0026gt;start provocar\u00e1 un acceso al puntero NULL. Agregue una verificaci\u00f3n para evitarlo. [kwilczynski: actualizaci\u00f3n del mensaje de error seg\u00fan los comentarios de la revisi\u00f3n] [bhelgaas: registro de confirmaciones]\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-476\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.5\",\"versionEndExcluding\":\"6.6.64\",\"matchCriteriaId\":\"54B7846B-C7F0-4910-8749-C0C31DCDDFD7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.11.11\",\"matchCriteriaId\":\"21434379-192D-472F-9B54-D45E3650E893\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.12\",\"versionEndExcluding\":\"6.12.2\",\"matchCriteriaId\":\"D8882B1B-2ABC-4838-AC1D-DBDBB5764776\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0e6d92e3b973de78eb7015154cf1197af9fac5c9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/242ee2b0ad9b23f47084904fce3f9f228068a1f9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/5089b3d874e9933d9842e90410d3af1520494757\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/c8b9d6b7d62a444e0bca5b9ae28f9f2b0f52feef\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}"
  }
}


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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.