Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2662B42EEBD for ; Wed, 6 May 2026 11:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067223; cv=none; b=LOBT+vyF+Zl7xa8Jd9n4UHPAFtSmwK36dM7SgObUkPXdWA3no10ac9x0i2Egr8PVm0noKeAx9IY73kTYqfiPoL46Uv4uQ/3xVLIlTThahCmhP3ZqpZCm+hRG+i8ZvOBtmaYGoIw7f5wQR2JoMRTy8vRb/yTEOq2OoHQS+sIk24I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067223; c=relaxed/simple; bh=Xc9YBtXotMILHCpC6i2RNI+rqWixKun/EGfpwMeLF8o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=W3B8UstsG0CRzz+C2/vkiZ51XuuPEJUJyApSMh379f8W1wxe9OXLL5vtMXu7L41/AEjGRLhGMsmDmxMRud2zWvoBzxlOU4/afRydfDSaJhRYHWxrkRj4DvObZwhns7GgZrO4fITfhDkI3LD8uGXBsMUTkwhN+4dGJe7SmSPNOOQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=19Cc/gAO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="19Cc/gAO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFA3BC2BCB8; Wed, 6 May 2026 11:33:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067223; bh=Xc9YBtXotMILHCpC6i2RNI+rqWixKun/EGfpwMeLF8o=; h=From:To:Cc:Subject:Date:Reply-To:From; b=19Cc/gAOnMo3XVPoDm4si16JM3E0d1xEA6R35twNyZZklQisPh54rBVmE9/JvCYoW KT+EbuK0dztM7zpxwz72olX6TuaatBdNkAzfgIwuBGFVjVL9Df75tXlTrpaAU0tk28 nH0JrWuXAHBHd7szj940LU0Ovm0K7x3sIbd+Xnwk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43236: drm/atmel-hlcdc: fix use-after-free of drm_crtc_commit after release Date: Wed, 6 May 2026 13:29:12 +0200 Message-ID: <2026050658-CVE-2026-43236-1ee8@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4335; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Tvoydb1PloayIpe+Iu9FPBaQREqECWkccSAlT7ynazM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VfcxaD19rdYcJKqcrNCcvFYgY83+TwuM+2/NYemOs 7QUir/QEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhvCxSkAE/FsZFhwLY/tgtA5E2smFrfO D+ucQ+I0e2wZZrOcuGP4g4f99BVd6SfZPVoaR7JDzgIA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/atmel-hlcdc: fix use-after-free of drm_crtc_commit after release The atmel_hlcdc_plane_atomic_duplicate_state() callback was copying the atmel_hlcdc_plane state structure without properly duplicating the drm_plane_state. In particular, state->commit remained set to the old state commit, which can lead to a use-after-free in the next drm_atomic_commit() call. Fix this by calling __drm_atomic_helper_duplicate_plane_state(), which correctly clones the base drm_plane_state (including the ->commit pointer). It has been seen when closing and re-opening the device node while another DRM client (e.g. fbdev) is still attached: ============================================================================= BUG kmalloc-64 (Not tainted): Poison overwritten ----------------------------------------------------------------------------- 0xc611b344-0xc611b344 @offset=836. First byte 0x6a instead of 0x6b FIX kmalloc-64: Restoring Poison 0xc611b344-0xc611b344=0x6b Allocated in drm_atomic_helper_setup_commit+0x1e8/0x7bc age=178 cpu=0 pid=29 drm_atomic_helper_setup_commit+0x1e8/0x7bc drm_atomic_helper_commit+0x3c/0x15c drm_atomic_commit+0xc0/0xf4 drm_framebuffer_remove+0x4cc/0x5a8 drm_mode_rmfb_work_fn+0x6c/0x80 process_one_work+0x12c/0x2cc worker_thread+0x2a8/0x400 kthread+0xc0/0xdc ret_from_fork+0x14/0x28 Freed in drm_atomic_helper_commit_hw_done+0x100/0x150 age=8 cpu=0 pid=169 drm_atomic_helper_commit_hw_done+0x100/0x150 drm_atomic_helper_commit_tail+0x64/0x8c commit_tail+0x168/0x18c drm_atomic_helper_commit+0x138/0x15c drm_atomic_commit+0xc0/0xf4 drm_atomic_helper_set_config+0x84/0xb8 drm_mode_setcrtc+0x32c/0x810 drm_ioctl+0x20c/0x488 sys_ioctl+0x14c/0xc20 ret_fast_syscall+0x0/0x54 Slab 0xef8bc360 objects=21 used=16 fp=0xc611b7c0 flags=0x200(workingset|zone=0) Object 0xc611b340 @offset=832 fp=0xc611b7c0 The Linux kernel CVE team has assigned CVE-2026-43236 to this issue. Affected and fixed versions =========================== Fixed in 5.10.252 with commit fd4a4d0711f48a99b25bcd45e00eef8339eff82d Fixed in 5.15.202 with commit 6404898af86d986db1dbbe06177c143e40652e49 Fixed in 6.1.165 with commit 796e77c14c4c1e2cd36473760fb6cc66c695eb47 Fixed in 6.6.128 with commit ac2d898da5095d46bd1ff8585fdd753d58ad91e7 Fixed in 6.12.75 with commit a205740a7231e967ac77cb731171642901c327af Fixed in 6.18.16 with commit 7b4d0fab3ff2c00c6d34e1952c9df5129a826aee Fixed in 6.19.6 with commit 549c6db503dbb85dbff4840830971853feac6625 Fixed in 7.0 with commit bc847787233277a337788568e90a6ee1557595eb Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-43236 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/fd4a4d0711f48a99b25bcd45e00eef8339eff82d https://git.kernel.org/stable/c/6404898af86d986db1dbbe06177c143e40652e49 https://git.kernel.org/stable/c/796e77c14c4c1e2cd36473760fb6cc66c695eb47 https://git.kernel.org/stable/c/ac2d898da5095d46bd1ff8585fdd753d58ad91e7 https://git.kernel.org/stable/c/a205740a7231e967ac77cb731171642901c327af https://git.kernel.org/stable/c/7b4d0fab3ff2c00c6d34e1952c9df5129a826aee https://git.kernel.org/stable/c/549c6db503dbb85dbff4840830971853feac6625 https://git.kernel.org/stable/c/bc847787233277a337788568e90a6ee1557595eb