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 DBCC434A79B for ; Wed, 24 Dec 2025 13:11:35 +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=1766581895; cv=none; b=l+rAyaPw88tneCI5gbW1tCJLu3dQR5NMi5wKZu671IWqAaTDH7l25zZ4r6T93PzQDFcXeipP+KXhCoNj40CtWerWD+7y7oez8lHK2119jJ8W30MkcKHgSy9Icd+C1RYa3+oM3l31Gjnn6kBlDHEMTaa/f9vi6yiHxwdIF4lYvDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581895; c=relaxed/simple; bh=Ys7N4l4TvuR6gxlNe9WEpVbDpcefnxys1zJC9ExZqsc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RksxN45j4VgEYj3eJ4kWSkc3+6ybnsV6tTdlG+nGjSZ/7vBn9AqubYXqhsJDhezlLIrf23I2IfCsdDpBxcW9X0ppT5PzTJGa6th6Qsu00tRu6qeGGm1BCWaXxvkD8+QDVP3KisovwTqlsYXtmky4Od50ww6tpyCxVGwKX5sxNIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WigERTTh; 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="WigERTTh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6581DC4CEFB; Wed, 24 Dec 2025 13:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581895; bh=Ys7N4l4TvuR6gxlNe9WEpVbDpcefnxys1zJC9ExZqsc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=WigERTThsZvP9zYkUKNXMIn7Jrz4dTH5IRQ/mSTbnyYcvfMF8fIAPGaOe+1Z1UN7B fCzUz8pJZx4EMyf+NaSjznkJJr8QmyNTajqI5uGInAPTVE5tUFXgsOEQmTRVGxx/G9 g1vwTRUfUNkUY3/i7vQA426d4VYdbuOLdYhwx1eQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54144: drm/amdkfd: Fix kernel warning during topology setup Date: Wed, 24 Dec 2025 14:07:41 +0100 Message-ID: <2025122424-CVE-2023-54144-f3be@gregkh> X-Mailer: git-send-email 2.52.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=4004; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MGQLjCu8+F3uaVMfy52tSg0kS0Ro7ozrILU3rzY4iI8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneTwMm6P7atH/V5pvnMl/OVBIyZPwt0G2uKPBgsblT0 Ha7XvcXHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARcS2GBS2rPBx+5/G+/6Vh JyNg2JYd+Pp3O8M8o3cXPv3xOu28hk3ir+/OebY+h8sZAQ== 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/amdkfd: Fix kernel warning during topology setup This patch fixes the following kernel warning seen during driver load by correctly initializing the p2plink attr before creating the sysfs file: [ +0.002865] ------------[ cut here ]------------ [ +0.002327] kobject: '(null)' (0000000056260cfb): is not initialized, yet kobject_put() is being called. [ +0.004780] WARNING: CPU: 32 PID: 1006 at lib/kobject.c:718 kobject_put+0xaa/0x1c0 [ +0.001361] Call Trace: [ +0.001234] [ +0.001067] kfd_remove_sysfs_node_entry+0x24a/0x2d0 [amdgpu] [ +0.003147] kfd_topology_update_sysfs+0x3d/0x750 [amdgpu] [ +0.002890] kfd_topology_add_device+0xbd7/0xc70 [amdgpu] [ +0.002844] ? lock_release+0x13c/0x2e0 [ +0.001936] ? smu_cmn_send_smc_msg_with_param+0x1e8/0x2d0 [amdgpu] [ +0.003313] ? amdgpu_dpm_get_mclk+0x54/0x60 [amdgpu] [ +0.002703] kgd2kfd_device_init.cold+0x39f/0x4ed [amdgpu] [ +0.002930] amdgpu_amdkfd_device_init+0x13d/0x1f0 [amdgpu] [ +0.002944] amdgpu_device_init.cold+0x1464/0x17b4 [amdgpu] [ +0.002970] ? pci_bus_read_config_word+0x43/0x80 [ +0.002380] amdgpu_driver_load_kms+0x15/0x100 [amdgpu] [ +0.002744] amdgpu_pci_probe+0x147/0x370 [amdgpu] [ +0.002522] local_pci_probe+0x40/0x80 [ +0.001896] work_for_cpu_fn+0x10/0x20 [ +0.001892] process_one_work+0x26e/0x5a0 [ +0.002029] worker_thread+0x1fd/0x3e0 [ +0.001890] ? process_one_work+0x5a0/0x5a0 [ +0.002115] kthread+0xea/0x110 [ +0.001618] ? kthread_complete_and_exit+0x20/0x20 [ +0.002422] ret_from_fork+0x1f/0x30 [ +0.001808] [ +0.001103] irq event stamp: 59837 [ +0.001718] hardirqs last enabled at (59849): [] __up_console_sem+0x52/0x60 [ +0.004414] hardirqs last disabled at (59860): [] __up_console_sem+0x37/0x60 [ +0.004414] softirqs last enabled at (59654): [] irq_exit_rcu+0xd7/0x130 [ +0.004205] softirqs last disabled at (59649): [] irq_exit_rcu+0xd7/0x130 [ +0.004203] ---[ end trace 0000000000000000 ]--- The Linux kernel CVE team has assigned CVE-2023-54144 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 0f28cca87e9afc22280c44d378d2a6e249933977 and fixed in 6.0.19 with commit 2d5a6742a242091292cc0a2b607be701a45d0c4e Issue introduced in 6.0 with commit 0f28cca87e9afc22280c44d378d2a6e249933977 and fixed in 6.1.5 with commit 306888b1246bf44e703b6f1ccc746c2746c1a981 Issue introduced in 6.0 with commit 0f28cca87e9afc22280c44d378d2a6e249933977 and fixed in 6.2 with commit cf97eb7e47d4671084c7e114c5d88a3d0540ecbd 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-2023-54144 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/amd/amdkfd/kfd_topology.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/2d5a6742a242091292cc0a2b607be701a45d0c4e https://git.kernel.org/stable/c/306888b1246bf44e703b6f1ccc746c2746c1a981 https://git.kernel.org/stable/c/cf97eb7e47d4671084c7e114c5d88a3d0540ecbd