{"id":"CVE-2024-57887","state":"PUBLISHED","title":"drm: adv7511: Fix use-after-free in adv7533_attach_dsi()","description":"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 dropping of_node_put() in adv7533_parse_dt() and calling of_node_put()\nin error path of probe() and also in the remove().","publishedAt":"2025-01-15T13:05:39.933Z","updatedAt":"2026-08-05T11:46:46.586Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1e4d58cd7f888522d16f221d628356befbb08468","status":"affected","lessThan":"acec80d9f126cd3fa764bbe3d96bc0cb5cd2b087","versionType":"git"},{"version":"1e4d58cd7f888522d16f221d628356befbb08468","status":"affected","lessThan":"d208571943ffddc438a7ce533d5d0b9219806242","versionType":"git"},{"version":"1e4d58cd7f888522d16f221d628356befbb08468","status":"affected","lessThan":"1f49aaf55652580ae63ab83d67211fe6a55d83dc","versionType":"git"},{"version":"1e4d58cd7f888522d16f221d628356befbb08468","status":"affected","lessThan":"ca9d077350fa21897de8bf64cba23b198740aab5","versionType":"git"},{"version":"1e4d58cd7f888522d16f221d628356befbb08468","status":"affected","lessThan":"81adbd3ff21c1182e06aa02c6be0bfd9ea02d8e8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/bridge/adv7511/adv7511_drv.c","drivers/gpu/drm/bridge/adv7511/adv7533.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.8","versionType":"semver"},{"version":"5.10.234","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"6.1.125","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.70","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.9","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/bridge/adv7511/adv7511_drv.c","drivers/gpu/drm/bridge/adv7511/adv7533.c"]}],"references":["https://git.kernel.org/stable/c/acec80d9f126cd3fa764bbe3d96bc0cb5cd2b087","https://git.kernel.org/stable/c/d208571943ffddc438a7ce533d5d0b9219806242","https://git.kernel.org/stable/c/1f49aaf55652580ae63ab83d67211fe6a55d83dc","https://git.kernel.org/stable/c/ca9d077350fa21897de8bf64cba23b198740aab5","https://git.kernel.org/stable/c/81adbd3ff21c1182e06aa02c6be0bfd9ea02d8e8","https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/57xxx/CVE-2024-57887.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-57887","state":"PUBLISHED","datePublished":"2025-01-15T13:05:39.933Z","dateUpdated":"2026-08-05T11:46:46.586Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-01-11T14:45:42.027Z"},"containers":{"cna":{"title":"drm: adv7511: Fix use-after-free in adv7533_attach_dsi()","descriptions":[{"lang":"en","value":"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 dropping of_node_put() in adv7533_parse_dt() and calling of_node_put()\nin error path of probe() and also in the remove()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1e4d58cd7f888522d16f221d628356befbb08468","status":"affected","lessThan":"acec80d9f126cd3fa764bbe3d96bc0cb5cd2b087","versionType":"git"},{"version":"1e4d58cd7f888522d16f221d628356befbb08468","status":"affected","lessThan":"d208571943ffddc438a7ce533d5d0b9219806242","versionType":"git"},{"version":"1e4d58cd7f888522d16f221d628356befbb08468","status":"affected","lessThan":"1f49aaf55652580ae63ab83d67211fe6a55d83dc","versionType":"git"},{"version":"1e4d58cd7f888522d16f221d628356befbb08468","status":"affected","lessThan":"ca9d077350fa21897de8bf64cba23b198740aab5","versionType":"git"},{"version":"1e4d58cd7f888522d16f221d628356befbb08468","status":"affected","lessThan":"81adbd3ff21c1182e06aa02c6be0bfd9ea02d8e8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/bridge/adv7511/adv7511_drv.c","drivers/gpu/drm/bridge/adv7511/adv7533.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.8","versionType":"semver"},{"version":"5.10.234","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"6.1.125","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.70","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.9","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/bridge/adv7511/adv7511_drv.c","drivers/gpu/drm/bridge/adv7511/adv7533.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/acec80d9f126cd3fa764bbe3d96bc0cb5cd2b087"},{"url":"https://git.kernel.org/stable/c/d208571943ffddc438a7ce533d5d0b9219806242"},{"url":"https://git.kernel.org/stable/c/1f49aaf55652580ae63ab83d67211fe6a55d83dc"},{"url":"https://git.kernel.org/stable/c/ca9d077350fa21897de8bf64cba23b198740aab5"},{"url":"https://git.kernel.org/stable/c/81adbd3ff21c1182e06aa02c6be0bfd9ea02d8e8"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is an I2C/DRM-bridge probe path reached only through local device-management interfaces — sysfs driver bind/unbind, module load, or configfs DT-overlay add/remove — 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 — 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."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:46:46.586Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.10.234"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.1.125"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.6.70"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.12.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"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-57887","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-02-11T15:41:02.098939Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-11T15:45:19.886Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:54:56.908Z"}}]}}}