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 D5BA43C4574 for ; Fri, 3 Apr 2026 15:25:21 +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=1775229921; cv=none; b=TVSuDjnrunZasQQxi10BkcLfGQRKXh3ZcAK03RAzmvLnv4F0a7Tb+RnnMvp3HX/1tFAeJNGntfO9qCINn5YVy0KEJDuSM99kD++/PRgl3ZOf+GvP2uLgILRtY2wYTromr0ANzWf8aYxcZPC3kphNuz28Z/93vvu5xwyabvrPFsk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775229921; c=relaxed/simple; bh=pegIOP6z3DdosNWMS5m5W7YPZ3iyOGwuCNyrlUIEXy0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hrWf4lawIpu9YpiTQo59q4huAp/0a3jnr9R31+kNas1hhC2ZHidMe2pMfy9dcyLJZTfbknOo5bFrfHp9vQPI/OcgsQ6/9tOQ6Eq7i9gryX2z4oLIvQ84/u+KIztgoBTLxhOQI7Z/qumo2tKBm2EKl7hBmMPKOn9ek3dep/zSP8U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oILq9vWF; 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="oILq9vWF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15D80C2BCAF; Fri, 3 Apr 2026 15:25:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775229921; bh=pegIOP6z3DdosNWMS5m5W7YPZ3iyOGwuCNyrlUIEXy0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=oILq9vWFskD3e+pKKumLN0Eh1/9P4cTKFBv/kwRnT6QtBaW5ScA02GG3cklIPoB1+ jTYXWamsbeCoYzq2MWtpZP/9F8dsDBZKU7dTBlg1YG5OBGNs40/dRDsjRro+1Q8/3H mCz4WTEY0EvuVw4+WnwLEuIJPt2JGzajP+nnIfww= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23452: PM: runtime: Fix a race condition related to device removal Date: Fri, 3 Apr 2026 17:18:33 +0200 Message-ID: <2026040317-CVE-2026-23452-4c2b@gregkh> X-Mailer: git-send-email 2.53.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=5325; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PaL1czORwnqL6oxES5TS3+Q0EbVEFcBgMAc0MXWEuTg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnb1me0z/PbrvmIT8Lx0+7R384J5qzOoReOZsRZc95x W+B7sXTHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRZxsYFhy7EOD08vgX67be ulW/ZvQbLpVm/sEwP9kvwqBDR+9E1d6PB2qvNkT0+jAzAAA= 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: PM: runtime: Fix a race condition related to device removal The following code in pm_runtime_work() may dereference the dev->parent pointer after the parent device has been freed: /* Maybe the parent is now able to suspend. */ if (parent && !parent->power.ignore_children) { spin_unlock(&dev->power.lock); spin_lock(&parent->power.lock); rpm_idle(parent, RPM_ASYNC); spin_unlock(&parent->power.lock); spin_lock(&dev->power.lock); } Fix this by inserting a flush_work() call in pm_runtime_remove(). Without this patch blktest block/001 triggers the following complaint sporadically: BUG: KASAN: slab-use-after-free in lock_acquire+0x70/0x160 Read of size 1 at addr ffff88812bef7198 by task kworker/u553:1/3081 Workqueue: pm pm_runtime_work Call Trace: dump_stack_lvl+0x61/0x80 print_address_description.constprop.0+0x8b/0x310 print_report+0xfd/0x1d7 kasan_report+0xd8/0x1d0 __kasan_check_byte+0x42/0x60 lock_acquire.part.0+0x38/0x230 lock_acquire+0x70/0x160 _raw_spin_lock+0x36/0x50 rpm_suspend+0xc6a/0xfe0 rpm_idle+0x578/0x770 pm_runtime_work+0xee/0x120 process_one_work+0xde3/0x1410 worker_thread+0x5eb/0xfe0 kthread+0x37b/0x480 ret_from_fork+0x6cb/0x920 ret_from_fork_asm+0x11/0x20 Allocated by task 4314: kasan_save_stack+0x2a/0x50 kasan_save_track+0x18/0x40 kasan_save_alloc_info+0x3d/0x50 __kasan_kmalloc+0xa0/0xb0 __kmalloc_noprof+0x311/0x990 scsi_alloc_target+0x122/0xb60 [scsi_mod] __scsi_scan_target+0x101/0x460 [scsi_mod] scsi_scan_channel+0x179/0x1c0 [scsi_mod] scsi_scan_host_selected+0x259/0x2d0 [scsi_mod] store_scan+0x2d2/0x390 [scsi_mod] dev_attr_store+0x43/0x80 sysfs_kf_write+0xde/0x140 kernfs_fop_write_iter+0x3ef/0x670 vfs_write+0x506/0x1470 ksys_write+0xfd/0x230 __x64_sys_write+0x76/0xc0 x64_sys_call+0x213/0x1810 do_syscall_64+0xee/0xfc0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 Freed by task 4314: kasan_save_stack+0x2a/0x50 kasan_save_track+0x18/0x40 kasan_save_free_info+0x3f/0x50 __kasan_slab_free+0x67/0x80 kfree+0x225/0x6c0 scsi_target_dev_release+0x3d/0x60 [scsi_mod] device_release+0xa3/0x220 kobject_cleanup+0x105/0x3a0 kobject_put+0x72/0xd0 put_device+0x17/0x20 scsi_device_dev_release+0xacf/0x12c0 [scsi_mod] device_release+0xa3/0x220 kobject_cleanup+0x105/0x3a0 kobject_put+0x72/0xd0 put_device+0x17/0x20 scsi_device_put+0x7f/0xc0 [scsi_mod] sdev_store_delete+0xa5/0x120 [scsi_mod] dev_attr_store+0x43/0x80 sysfs_kf_write+0xde/0x140 kernfs_fop_write_iter+0x3ef/0x670 vfs_write+0x506/0x1470 ksys_write+0xfd/0x230 __x64_sys_write+0x76/0xc0 x64_sys_call+0x213/0x1810 The Linux kernel CVE team has assigned CVE-2026-23452 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.32 with commit 5e928f77a09a07f9dd595bb8a489965d69a83458 and fixed in 6.1.167 with commit 5649b46af8b167259e8a8e4e7eb3667ce74554b5 Issue introduced in 2.6.32 with commit 5e928f77a09a07f9dd595bb8a489965d69a83458 and fixed in 6.6.130 with commit 39f2d86f2ddde8d1beda05732f30c7cd945e0b5a Issue introduced in 2.6.32 with commit 5e928f77a09a07f9dd595bb8a489965d69a83458 and fixed in 6.12.78 with commit c6febaacfb8a0aec7d771a0e6c21cd68102d5679 Issue introduced in 2.6.32 with commit 5e928f77a09a07f9dd595bb8a489965d69a83458 and fixed in 6.18.20 with commit bb081fd37f8312651140d7429557258afe51693d Issue introduced in 2.6.32 with commit 5e928f77a09a07f9dd595bb8a489965d69a83458 and fixed in 6.19.10 with commit cf65a77c0f9531eb6cfb97cc040974d2d8fff043 Issue introduced in 2.6.32 with commit 5e928f77a09a07f9dd595bb8a489965d69a83458 and fixed in 7.0-rc5 with commit 29ab768277617452d88c0607c9299cdc63b6e9ff 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-23452 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/base/power/runtime.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/5649b46af8b167259e8a8e4e7eb3667ce74554b5 https://git.kernel.org/stable/c/39f2d86f2ddde8d1beda05732f30c7cd945e0b5a https://git.kernel.org/stable/c/c6febaacfb8a0aec7d771a0e6c21cd68102d5679 https://git.kernel.org/stable/c/bb081fd37f8312651140d7429557258afe51693d https://git.kernel.org/stable/c/cf65a77c0f9531eb6cfb97cc040974d2d8fff043 https://git.kernel.org/stable/c/29ab768277617452d88c0607c9299cdc63b6e9ff