{"id":"CVE-2026-43236","aliases":["CVE-2026-43236"],"related":[],"kind":"vulnerability","state":"published","title":"drm/atmel-hlcdc: fix use-after-free of drm_crtc_commit after release","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/atmel-hlcdc: fix use-after-free of drm_crtc_commit after release\n\nThe atmel_hlcdc_plane_atomic_duplicate_state() callback was copying\nthe atmel_hlcdc_plane state structure without properly duplicating the\ndrm_plane_state. In particular, state->commit remained set to the old\nstate commit, which can lead to a use-after-free in the next\ndrm_atomic_commit() call.\n\nFix this by calling\n__drm_atomic_helper_duplicate_plane_state(), which correctly clones\nthe base drm_plane_state (including the ->commit pointer).\n\nIt has been seen when closing and re-opening the device node while\nanother DRM client (e.g. fbdev) is still attached:\n\n=============================================================================\nBUG kmalloc-64 (Not tainted): Poison overwritten\n-----------------------------------------------------------------------------\n\n0xc611b344-0xc611b344 @offset=836. First byte 0x6a instead of 0x6b\nFIX kmalloc-64: Restoring Poison 0xc611b344-0xc611b344=0x6b\nAllocated in drm_atomic_helper_setup_commit+0x1e8/0x7bc age=178 cpu=0\npid=29\n drm_atomic_helper_setup_commit+0x1e8/0x7bc\n drm_atomic_helper_commit+0x3c/0x15c\n drm_atomic_commit+0xc0/0xf4\n drm_framebuffer_remove+0x4cc/0x5a8\n drm_mode_rmfb_work_fn+0x6c/0x80\n process_one_work+0x12c/0x2cc\n worker_thread+0x2a8/0x400\n kthread+0xc0/0xdc\n ret_from_fork+0x14/0x28\nFreed in drm_atomic_helper_commit_hw_done+0x100/0x150 age=8 cpu=0\npid=169\n drm_atomic_helper_commit_hw_done+0x100/0x150\n drm_atomic_helper_commit_tail+0x64/0x8c\n commit_tail+0x168/0x18c\n drm_atomic_helper_commit+0x138/0x15c\n drm_atomic_commit+0xc0/0xf4\n drm_atomic_helper_set_config+0x84/0xb8\n drm_mode_setcrtc+0x32c/0x810\n drm_ioctl+0x20c/0x488\n sys_ioctl+0x14c/0xc20\n ret_fast_syscall+0x0/0x54\nSlab 0xef8bc360 objects=21 used=16 fp=0xc611b7c0\nflags=0x200(workingset|zone=0)\nObject 0xc611b340 @offset=832 fp=0xc611b7c0","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/atmel-hlcdc: fix use-after-free of drm_crtc_commit after release\n\nThe atmel_hlcdc_plane_atomic_duplicate_state() callback was copying\nthe atmel_hlcdc_plane state structure without properly duplicating the\ndrm_plane_state. In particular, state->commit remained set to the old\nstate commit, which can lead to a use-after-free in the next\ndrm_atomic_commit() call.\n\nFix this by calling\n__drm_atomic_helper_duplicate_plane_state(), which correctly clones\nthe base drm_plane_state (including the ->commit pointer).\n\nIt has been seen when closing and re-opening the device node while\nanother DRM client (e.g. fbdev) is still attached:\n\n=============================================================================\nBUG kmalloc-64 (Not tainted): Poison overwritten\n-----------------------------------------------------------------------------\n\n0xc611b344-0xc611b344 @offset=836. First byte 0x6a instead of 0x6b\nFIX kmalloc-64: Restoring Poison 0xc611b344-0xc611b344=0x6b\nAllocated in drm_atomic_helper_setup_commit+0x1e8/0x7bc age=178 cpu=0\npid=29\n drm_atomic_helper_setup_commit+0x1e8/0x7bc\n drm_atomic_helper_commit+0x3c/0x15c\n drm_atomic_commit+0xc0/0xf4\n drm_framebuffer_remove+0x4cc/0x5a8\n drm_mode_rmfb_work_fn+0x6c/0x80\n process_one_work+0x12c/0x2cc\n worker_thread+0x2a8/0x400\n kthread+0xc0/0xdc\n ret_from_fork+0x14/0x28\nFreed in drm_atomic_helper_commit_hw_done+0x100/0x150 age=8 cpu=0\npid=169\n drm_atomic_helper_commit_hw_done+0x100/0x150\n drm_atomic_helper_commit_tail+0x64/0x8c\n commit_tail+0x168/0x18c\n drm_atomic_helper_commit+0x138/0x15c\n drm_atomic_commit+0xc0/0xf4\n drm_atomic_helper_set_config+0x84/0xb8\n drm_mode_setcrtc+0x32c/0x810\n drm_ioctl+0x20c/0x488\n sys_ioctl+0x14c/0xc20\n ret_fast_syscall+0x0/0x54\nSlab 0xef8bc360 objects=21 used=16 fp=0xc611b7c0\nflags=0x200(workingset|zone=0)\nObject 0xc611b340 @offset=832 fp=0xc611b7c0","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm/atmel-hlcdc: corrección de uso después de liberación de drm_crtc_commit después de liberación\n\nLa función de callback atmel_hlcdc_plane_atomic_duplicate_state() estaba copiando la estructura de estado atmel_hlcdc_plane sin duplicar correctamente el drm_plane_state. En particular, state  ->  commit permaneció establecido al commit del estado antiguo, lo que puede llevar a un uso después de liberación en la siguiente llamada a drm_atomic_commit().\n\nEsto se soluciona llamando a __drm_atomic_helper_duplicate_plane_state(), que clona correctamente el drm_plane_state base (incluyendo el puntero   ->  commit).\n\nSe ha observado al cerrar y volver a abrir el nodo del dispositivo mientras otro cliente DRM (p. ej., fbdev) todavía está adjunto:\n\n=============================================================================\nBUG kmalloc-64 (No contaminado): Veneno sobrescrito\n-----------------------------------------------------------------------------\n\n0x c611b344-0x c611b344 @desplazamiento=836. Primer byte 0x6a en lugar de 0x6b\nCORRECCIÓN kmalloc-64: Restaurando Veneno 0x c611b344-0x c611b344=0x6b\nAsignado en drm_atomic_helper_setup_commit+0x1e8/0x7bc edad=178 cpu=0 pid=29\n drm_atomic_helper_setup_commit+0x1e8/0x7bc\n drm_atomic_helper_commit+0x3c/0x15c\n drm_atomic_commit+0xc0/0xf4\n drm_framebuffer_remove+0x4cc/0x5a8\n drm_mode_rmfb_work_fn+0x6c/0x80\n process_one_work+0x12c/0x2cc\n worker_thread+0x2a8/0x400\n kthread+0xc0/0xdc\n ret_from_fork+0x14/0x28\nLiberado en drm_atomic_helper_commit_hw_done+0x100/0x150 edad=8 cpu=0 pid=169\n drm_atomic_helper_commit_hw_done+0x100/0x150\n drm_atomic_helper_commit_tail+0x64/0x8c\n commit_tail+0x168/0x18c\n drm_atomic_helper_commit+0x138/0x15c\n drm_atomic_commit+0xc0/0xf4\n drm_atomic_helper_set_config+0x84/0xb8\n drm_mode_setcrtc+0x32c/0x810\n drm_ioctl+0x20c/0x488\n sys_ioctl+0x14c/0xc20\n ret_fast_syscall+0x0/0x54\nSlab 0x ef8bc360 objetos=21 usados=16 fp=0x c611b7c0 flags=0x200(workingset|zone=0)\nObjeto 0x c611b340 @desplazamiento=832 fp=0x c611b7c0","source":"nvd"}],"published":"2026-05-06T11:28:31.543Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"2389fc1305fc1e2cf8b310a75463fefd3058bf48","fixed":"fd4a4d0711f48a99b25bcd45e00eef8339eff82d","status":"affected"},{"type":"git","introduced":"2389fc1305fc1e2cf8b310a75463fefd3058bf48","fixed":"6404898af86d986db1dbbe06177c143e40652e49","status":"affected"},{"type":"git","introduced":"2389fc1305fc1e2cf8b310a75463fefd3058bf48","fixed":"796e77c14c4c1e2cd36473760fb6cc66c695eb47","status":"affected"},{"type":"git","introduced":"2389fc1305fc1e2cf8b310a75463fefd3058bf48","fixed":"ac2d898da5095d46bd1ff8585fdd753d58ad91e7","status":"affected"},{"type":"git","introduced":"2389fc1305fc1e2cf8b310a75463fefd3058bf48","fixed":"a205740a7231e967ac77cb731171642901c327af","status":"affected"},{"type":"git","introduced":"2389fc1305fc1e2cf8b310a75463fefd3058bf48","fixed":"7b4d0fab3ff2c00c6d34e1952c9df5129a826aee","status":"affected"},{"type":"git","introduced":"2389fc1305fc1e2cf8b310a75463fefd3058bf48","fixed":"549c6db503dbb85dbff4840830971853feac6625","status":"affected"},{"type":"git","introduced":"2389fc1305fc1e2cf8b310a75463fefd3058bf48","fixed":"bc847787233277a337788568e90a6ee1557595eb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.1","status":"unaffected"},{"type":"semver","introduced":"5.10.252","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.202","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.165","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.128","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.1","fixed":"5.10.252"},{"status":"affected","introduced":"5.11","fixed":"5.15.202"},{"status":"affected","introduced":"5.16","fixed":"6.1.165"},{"status":"affected","introduced":"6.2","fixed":"6.6.128"},{"status":"affected","introduced":"6.7","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/fd4a4d0711f48a99b25bcd45e00eef8339eff82d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6404898af86d986db1dbbe06177c143e40652e49","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/796e77c14c4c1e2cd36473760fb6cc66c695eb47","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac2d898da5095d46bd1ff8585fdd753d58ad91e7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a205740a7231e967ac77cb731171642901c327af","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7b4d0fab3ff2c00c6d34e1952c9df5129a826aee","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/549c6db503dbb85dbff4840830971853feac6625","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc847787233277a337788568e90a6ee1557595eb","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43236","url":"https://www.cve.org/CVERecord?id=CVE-2026-43236","licence":"CVE Terms of Use","modified":"2026-08-05T12:26:47.254Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43236","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43236","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:20.744Z","epss":{"score":0.00135,"percentile":0.03174,"date":"2026-12-01T12:00:22.000Z"}}