Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 C6E392D77F5 for ; Sun, 18 Oct 2026 15:25:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337141; cv=none; b=uyF+ISUmKriuzAqmXc+VENTO6Hu3EjmLIGcc/RNf6mmDscMYP8fHerHawSQX1hVnbglW/3VfjulwPxstnBANhVyz9l5WNq2hJfIoRQUi/qnbNws1LhXhuedFdpBnTKMLqcFh2hzxj+M4robWD/zzwUu/qReGtnktm/kI0J61fG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337141; c=relaxed/simple; bh=Tn78f/9qwi+DElE5UdBicgoiJjLpLWaZ3jTBaCe1HGQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ey7GhwskC+VxioUM5OU73b9MXgl0znftDaM6fnKhrNQzSDDfa4lGHEQBWskrK7QsJDibda2XlM2ShRBDHAToJvUBx6nO9WnmUlOveCEbEZqzHzsAV6l/7UQnzMlXGwyPoI/bpbg0m+X6HP63TLSUymLX6pGcbMmm40CCWs4oOAU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gLGogkS3; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="gLGogkS3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1A151F000C5; Sun, 18 Oct 2026 15:25:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337134; bh=Hjx7Hasu9vhIlzNByFRVLSLTBqU4gRKsvb+zDj1ddTo=; h=From:To:Cc:Subject:Date:Reply-To; b=gLGogkS38wRu6K4EJ2yPAwffut2Vxv6BfWqK4uG3dJgCJiyE/KnPT+mT2DZOmxT1e EBDt1T5DN048Fh2tqheaYpgPv4OMWbrTFnCmz/Mx442DqyBoghEbsAYbniN83HUc/c BI/fohHi4NRz2t9znCW8csbwmYeL8vZEk/lCV8H8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98523: drm/client: fix restore of partially initialized client Date: Sun, 18 Oct 2026 17:16:27 +0200 Message-ID: <2026101822-CVE-2026-98523-6a6d@gregkh> X-Mailer: git-send-email 2.56.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=4546; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=smbZ3Dqr5kFYUeV+4B3EZBF0qKm/5pL8r9Qu00Ok5zU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHnVbJStV3Zj8fBn7dc/IvC1K74Sm+Vr/jtJ7s/uzi 8pba5MZHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRzs8M8+x8Jr08kPzGOtFD eF1b/NOV5Q+LtzIsuBL95Pe0/kdnK5RfXp/9fvLuXZ9mpwEA 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/client: fix restore of partially initialized client I got a null-ptr-deref report when closing a DRM file descriptor: WARNING: drivers/gpu/drm/drm_atomic.c:2031 at __drm_atomic_helper_set_config+0x18e/0x1b0 [drm] Call Trace: drm_client_modeset_commit_atomic+0x16b/0x220 [drm] drm_client_modeset_commit_locked+0x56/0x160 [drm] drm_client_modeset_commit+0x21/0x40 [drm] __drm_fb_helper_restore_fbdev_mode_unlocked.part.0+0x7b/0x80 drm_fbdev_client_restore+0xe/0x20 [drm_client_lib] drm_client_dev_restore+0x9f/0xc0 [drm] drm_release+0xc5/0xe0 [drm] The warning is followed by a NULL pointer dereference: BUG: kernel NULL pointer dereference, address: 0000000000000008 RIP: __drm_fb_helper_restore_fbdev_mode_unlocked.part.0+0x41/0x80 [drm_kms_helper] Call Trace: drm_fbdev_client_restore+0xe/0x20 [drm_client_lib] drm_client_dev_restore+0x9f/0xc0 [drm] drm_release+0xc5/0xe0 [drm] __fput+0xdc/0x2b0 __x64_sys_close+0x39/0x80 do_syscall_64+0x8d/0x460 entry_SYSCALL_64_after_hwframe+0x76/0x7e drm_client_register() adds the DRM client to the device client list before invoking the initial hotplug callback. If the hotplug callback fails, the client remains registered. For the fbdev client, a failure during drm_fb_helper_initial_config() causes the partially initialized fbdev helper to be cleaned up. drm_fb_helper_fini() releases fb_helper->info and leaves it NULL. The fbdev client therefore remains registered even though there is no fully initialized framebuffer device. Later, when userspace closes the DRM file descriptor, drm_release() can invoke the restore callbacks of registered DRM clients: drm_release() drm_client_dev_restore() drm_fbdev_client_restore() drm_fb_helper_restore_fbdev_mode_unlocked() drm_fbdev_client_restore() currently restores the fbdev state unconditionally. For a partially initialized fbdev client this can submit an incomplete modeset state and subsequently access fbdev state which has not been initialized, resulting in the warning and NULL pointer dereference above. drm_fbdev_client_unregister() already uses fb_helper->info to distinguish a fully probed framebuffer device from a partially initialized client. Use the same condition in drm_fbdev_client_restore() and skip restore if no framebuffer device has been successfully initialized. The Linux kernel CVE team has assigned CVE-2026-98523 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.19 with commit 7f5535fcbba2ce7f1908ee7e5c350032a4b1e9d0 and fixed in 6.12.112 with commit 11edd5b6735d2e1069ddce672b1836713647f7fb Issue introduced in 6.13 with commit 5d08c44e47b9d41366714552bdd374ac4b595591 and fixed in 6.18.55 with commit fcbedba553a9c430079ee225df2dc7ab556a2f83 Issue introduced in 6.13 with commit 5d08c44e47b9d41366714552bdd374ac4b595591 and fixed in 7.2.9 with commit a69c4b678db808c0d89abb8cedeaaac38d1ef182 Issue introduced in 6.13 with commit 5d08c44e47b9d41366714552bdd374ac4b595591 and fixed in 7.3-rc5 with commit 1fca688e9443003e33cf30453e7a7560367656c9 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-98523 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/clients/drm_fbdev_client.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/11edd5b6735d2e1069ddce672b1836713647f7fb https://git.kernel.org/stable/c/fcbedba553a9c430079ee225df2dc7ab556a2f83 https://git.kernel.org/stable/c/a69c4b678db808c0d89abb8cedeaaac38d1ef182 https://git.kernel.org/stable/c/1fca688e9443003e33cf30453e7a7560367656c9