{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2024-57887",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2024-57887"
  ],
  "published": "2025-01-15T13:07:18Z",
  "summary": "drm: adv7511: Fix use-after-free in adv7533_attach_dsi()",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm: adv7511: Fix use-after-free in adv7533_attach_dsi()\n\nThe host_node pointer was assigned and freed in adv7533_parse_dt(), and\nlater, adv7533_attach_dsi() uses the same. Fix this use-after-free issue\nby\u00a0dropping of_node_put() in adv7533_parse_dt() and calling of_node_put()\nin error path of probe() and also in the remove().",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.125",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2024-57887"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/acec80d9f126cd3fa764bbe3d96bc0cb5cd2b087"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d208571943ffddc438a7ce533d5d0b9219806242"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/1f49aaf55652580ae63ab83d67211fe6a55d83dc"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ca9d077350fa21897de8bf64cba23b198740aab5"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/81adbd3ff21c1182e06aa02c6be0bfd9ea02d8e8"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T11:52:36Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The vulnerable code is an I2C/DRM-bridge probe path reached only through local device-management interfaces \u2014 sysfs driver bind/unbind, module load, or configfs DT-overlay add/remove \u2014 with no network or adjacent-network reachability. Physical access to the soldered ADV7533/ADV7535 confers no additional capability, so Local is the correct and higher-severity vector.\nAC:L - There is no race to win: dropping the reference in adv7533_parse_dt() deterministically permits the backing device_node to be freed, and the attacker drives both the free (overlay removal / detach) and the subsequent use (probe or probe-deferral retry of adv7533_attach_dsi()). Repeated bind/unbind cycles and the -EPROBE_DEFER retry loop let the attacker groom the freed kmalloc slab at will.\nPR:L - Neither adv7511_probe(), adv7533_parse_dt(), nor adv7533_attach_dsi() contains any capable()/CAP_* gate; access is governed solely by file permissions on the sysfs/configfs device-management nodes, which on the embedded, industrial and automotive ARM64 platforms where ADV7533/ADV7535 is deployed are routinely delegated to non-root device-manager and display service accounts. Real root in the initial namespace is not required.\nUI:N - The attacker triggers the sequence entirely on their own by driving the overlay/bind cycle; the stale pointer is also consumed automatically on every boot-time deferred-probe retry. No victim action, mount, or file open is involved.\nS:U - The freed struct device_node, the DSI host list, and the resulting corruption all live in the kernel of the same system under a single security authority. No VM, IOMMU, or sandbox boundary is crossed.\nC:H - This is a use-after-free of a kmalloc'd struct device_node in a general-purpose slab cache, so the attacker can reallocate the freed object with controlled content and steer the of_find_mipi_dsi_host_by_node() match and the ensuing mipi_dsi device registration. That yields disclosure of kernel pointers and adjacent slab contents, and UAF is scored High.\nI:H - Once the node is freed and its address reused, the pointer comparison can alias a different live DSI host, causing the bridge to register and attach against the wrong mipi_dsi_host \u2014 a type-confused attachment that programs the wrong hardware and writes through mismatched structures. The freed slab object additionally provides the write target that makes UAFs exploitable for control-flow hijacking.\nA:H - Using the dangling device_node after the overlay teardown produces a KASAN slab-use-after-free and an oops-class fault (panic with panic_on_warn), and a mis-attached DSI device leaves the display pipeline dead. The attacker can repeat the bind/unbind or overlay cycle indefinitely."
    }
  }
}
