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 72E212192EF for ; Thu, 10 Jul 2025 07:43:01 +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=1752133381; cv=none; b=tHVIDtAG+czjT1iBTIkV1kHBdbfXu9cZb5uf1C8HpAFPOM+tqq2HB/xocjRndYRvabPh1T0jpiY7ZzaySjs05Wlh8ppQjfL8xgRz+at5ArsgSeU6fd8AsMvsU0tIN9yAuLRztAGzt0v9QYJjzgICb91QFove0yclHj8KleVqDDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133381; c=relaxed/simple; bh=QBqmaM8JOWpoF8ELpj6/esETnj2LSD6YheKb/xd9tmo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tHHI14Ia/WWjzac9+5ONLwm62pLGn1St5G6piJoNv9gsrSH077KyA5lpKPeVktt/gGwMsjtWLMmpfnor32YyC+rr8tx7HmTABu+fMvwZvEE/++qYbUoPbSbnq8uziaVnrlP+zpA5Rkp/F8PIK3s58UkNf09CaTge/qCWyaH0l50= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=si4ivvhv; 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="si4ivvhv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE438C4CEE3; Thu, 10 Jul 2025 07:43:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133381; bh=QBqmaM8JOWpoF8ELpj6/esETnj2LSD6YheKb/xd9tmo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=si4ivvhvZiK4E5oHqdngMyKwVyOQJA0IM11wyDLPsoRquylc3LXUltW0xfny2Aaup /DIlOWXqYlWQ0253YGmdjNkvLh6Pzu9gF2GCubDk4xL+VFRDGq51GE35jXQZxsxaCv /7oGHfn85jm5A0fZ1Oq/L3Ekh21MhH5etgJ4N1MQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38288: scsi: smartpqi: Fix smp_processor_id() call trace for preemptible kernels Date: Thu, 10 Jul 2025 09:42:29 +0200 Message-ID: <2025071011-CVE-2025-38288-5c5a@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2864; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=M2H6yS+TM3dbXVftEBnnym5kus7aQODVFt/vfxCEbPM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5eZeTPvCkOqo9Ep1zZdbtiQ5npGWerJTZrfdoNr/tD 5GJlqaVHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARlUqGBdvPnekUfLfk5CNr pu9brz9MkmPfFs+w4MaEtK+Tnr28HrnIcNNSq6JdmW2m5QA= 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: scsi: smartpqi: Fix smp_processor_id() call trace for preemptible kernels Correct kernel call trace when calling smp_processor_id() when called in preemptible kernels by using raw_smp_processor_id(). smp_processor_id() checks to see if preemption is disabled and if not, issue an error message followed by a call to dump_stack(). Brief example of call trace: kernel: check_preemption_disabled: 436 callbacks suppressed kernel: BUG: using smp_processor_id() in preemptible [00000000] code: kworker/u1025:0/2354 kernel: caller is pqi_scsi_queue_command+0x183/0x310 [smartpqi] kernel: CPU: 129 PID: 2354 Comm: kworker/u1025:0 kernel: ... kernel: Workqueue: writeback wb_workfn (flush-253:0) kernel: Call Trace: kernel: kernel: dump_stack_lvl+0x34/0x48 kernel: check_preemption_disabled+0xdd/0xe0 kernel: pqi_scsi_queue_command+0x183/0x310 [smartpqi] kernel: ... The Linux kernel CVE team has assigned CVE-2025-38288 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit 283dcc1b142ebd60786f8f5e3fbbd53a51035739 and fixed in 6.12.34 with commit 6589bc3699bcb45b35b3095c44a5af7a4d75ef7e Issue introduced in 6.12 with commit 283dcc1b142ebd60786f8f5e3fbbd53a51035739 and fixed in 6.15.3 with commit 31224199316f488c8385c5dcdccf7bd80f675b81 Issue introduced in 6.12 with commit 283dcc1b142ebd60786f8f5e3fbbd53a51035739 and fixed in 6.16-rc1 with commit 42d033cf4b517e91c187ad2fbd7b30fdc6d2d62c 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-2025-38288 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/scsi/smartpqi/smartpqi_init.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/6589bc3699bcb45b35b3095c44a5af7a4d75ef7e https://git.kernel.org/stable/c/31224199316f488c8385c5dcdccf7bd80f675b81 https://git.kernel.org/stable/c/42d033cf4b517e91c187ad2fbd7b30fdc6d2d62c