CVE-2024-56538 (GCVE-0-2024-56538)
Vulnerability from cvelistv5
Published
2024-12-27 14:11
Modified
2026-08-05 11:44
Summary
In the Linux kernel, the following vulnerability has been resolved: drm: zynqmp_kms: Unplug DRM device before removal Prevent userspace accesses to the DRM device from causing use-after-frees by unplugging the device before we remove it. This causes any further userspace accesses to result in an error without further calls into this driver's internals.
Impacted products
Vendor Product Version
Linux Linux Version: d76271d22694e874ed70791702db9252ffe96a4c
Version: d76271d22694e874ed70791702db9252ffe96a4c
Version: d76271d22694e874ed70791702db9252ffe96a4c
Version: d76271d22694e874ed70791702db9252ffe96a4c
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 7.8,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "HIGH",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2024-56538",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-02-11T15:42:57.597278Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-416",
                "description": "CWE-416 Use After Free",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-02-11T15:45:25.403Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/xlnx/zynqmp_kms.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a17b9afe58c474657449cf87e238b1788200576b",
              "status": "affected",
              "version": "d76271d22694e874ed70791702db9252ffe96a4c",
              "versionType": "git"
            },
            {
              "lessThan": "4fb97432e28a7e136b2d76135d50e988ada8e1af",
              "status": "affected",
              "version": "d76271d22694e874ed70791702db9252ffe96a4c",
              "versionType": "git"
            },
            {
              "lessThan": "692f52aedccbf79b212a1e14e3735192b4c24a7d",
              "status": "affected",
              "version": "d76271d22694e874ed70791702db9252ffe96a4c",
              "versionType": "git"
            },
            {
              "lessThan": "2e07c88914fc5289c21820b1aa94f058feb38197",
              "status": "affected",
              "version": "d76271d22694e874ed70791702db9252ffe96a4c",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/xlnx/zynqmp_kms.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.9"
            },
            {
              "lessThan": "5.9",
              "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"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.64",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.11.11",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.2",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm: zynqmp_kms: Unplug DRM device before removal\n\nPrevent userspace accesses to the DRM device from causing\nuse-after-frees by unplugging the device before we remove it. This\ncauses any further userspace accesses to result in an error without\nfurther calls into this driver\u0027s internals."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerability is reached through ioctl and mmap on the local DRM primary node /dev/dri/card0 of the zynqmp-dpsub device. There is no network or remote-peer input path into this driver.\nAC:L - This is not a narrow race \u2014 because drm_dev_unregister() never sets dev-\u003eunplugged, the guard state is broken permanently, so every subsequent ioctl/mmap from an already-open fd deterministically enters the torn-down driver. An attacker merely holds an fd open and loops ioctls, and the freed DMA channels, unmapped iomem, and destroyed mutex are hit reliably.\nPR:L - The attacker only needs an open file descriptor on the DRM primary node, which unprivileged local users of a graphical session obtain via logind ACLs or video-group membership on these embedded/kiosk systems. The reachable dumb-buffer ioctls carry flags 0, requiring neither DRM master nor DRM_AUTH.\nUI:N - The attacker\u0027s process simply keeps its fd open and polls; no victim action is needed at exploitation time. On ZynqMP FPGA MPSoCs the driver teardown occurs through routine platform events such as FPGA-region/device-tree-overlay reconfiguration and module reload rather than a deliberate victim action.\nS:U - The corruption is confined to kernel memory within the same security authority as the kernel itself. No VM, IOMMU, or sandbox boundary is crossed.\nC:H - The missing unmap_mapping_range() leaves userspace with live mappings of GEM DMA buffers whose backing reserved-memory pool was released by of_reserved_mem_device_release(), giving a direct read primitive into kernel memory that can be recycled for other allocations. The use-after-free on released DMA channels and driver state further enables disclosure of freed kernel object contents.\nI:H - Those same stale userspace mappings are writable, yielding a direct write-after-free into memory the kernel will reallocate, and the driver continues submitting DMA descriptors on channels already handed back via dma_release_channel(). This combination provides heap-grooming and control-flow-hijack primitives typical of an exploitable use-after-free.\nA:H - Post-removal ioctls write to devres-unmapped iomem with the APB clock gated and lock a mutex_destroy()\u0027d dp-\u003elock, producing an oops or an AXI bus hang that wedges the SoC. Any use-after-free of this kind reliably crashes the kernel even when not weaponized further."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:44:55.251Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a17b9afe58c474657449cf87e238b1788200576b"
        },
        {
          "url": "https://git.kernel.org/stable/c/4fb97432e28a7e136b2d76135d50e988ada8e1af"
        },
        {
          "url": "https://git.kernel.org/stable/c/692f52aedccbf79b212a1e14e3735192b4c24a7d"
        },
        {
          "url": "https://git.kernel.org/stable/c/2e07c88914fc5289c21820b1aa94f058feb38197"
        }
      ],
      "title": "drm: zynqmp_kms: Unplug DRM device before removal",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-56538",
    "datePublished": "2024-12-27T14:11:20.685Z",
    "dateReserved": "2024-12-27T14:03:05.986Z",
    "dateUpdated": "2026-08-05T11:44:55.251Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7.8, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-56538\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-02-11T15:42:57.597278Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-416\", \"description\": \"CWE-416 Use After Free\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-02-11T15:42:58.906Z\"}}], \"cna\": {\"title\": \"drm: zynqmp_kms: Unplug DRM device before removal\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"d76271d22694e874ed70791702db9252ffe96a4c\", \"lessThan\": \"a17b9afe58c474657449cf87e238b1788200576b\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"d76271d22694e874ed70791702db9252ffe96a4c\", \"lessThan\": \"4fb97432e28a7e136b2d76135d50e988ada8e1af\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"d76271d22694e874ed70791702db9252ffe96a4c\", \"lessThan\": \"692f52aedccbf79b212a1e14e3735192b4c24a7d\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"d76271d22694e874ed70791702db9252ffe96a4c\", \"lessThan\": \"2e07c88914fc5289c21820b1aa94f058feb38197\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/gpu/drm/xlnx/zynqmp_kms.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.9\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.9\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.6.64\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11.11\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.11.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12.2\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.12.*\"}, {\"status\": \"unaffected\", \"version\": \"6.13\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/gpu/drm/xlnx/zynqmp_kms.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/a17b9afe58c474657449cf87e238b1788200576b\"}, {\"url\": \"https://git.kernel.org/stable/c/4fb97432e28a7e136b2d76135d50e988ada8e1af\"}, {\"url\": \"https://git.kernel.org/stable/c/692f52aedccbf79b212a1e14e3735192b4c24a7d\"}, {\"url\": \"https://git.kernel.org/stable/c/2e07c88914fc5289c21820b1aa94f058feb38197\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ndrm: zynqmp_kms: Unplug DRM device before removal\\n\\nPrevent userspace accesses to the DRM device from causing\\nuse-after-frees by unplugging the device before we remove it. This\\ncauses any further userspace accesses to result in an error without\\nfurther calls into this driver\u0027s internals.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.64\", \"versionStartIncluding\": \"5.9\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.11.11\", \"versionStartIncluding\": \"5.9\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.12.2\", \"versionStartIncluding\": \"5.9\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.13\", \"versionStartIncluding\": \"5.9\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T09:57:41.632Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-56538\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-04T09:57:41.632Z\", \"dateReserved\": \"2024-12-27T14:03:05.986Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-12-27T14:11:20.685Z\", \"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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • 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.


Loading…

Loading…