Skip to contentSkip to conversation

CVE-2025-68782: scsi: target: Reset t_task_cdb pointer in error case

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jan 13

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

scsi: target: Reset t_task_cdb pointer in error case

If allocation of cmd->t_task_cdb fails, it remains NULL but is later dereferenced in the 'err' path.

In case of error, reset NULL t_task_cdb value to point at the default fixed-size buffer.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

The Linux kernel CVE team has assigned CVE-2025-68782 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.8 with commit 9e95fb805dc043cc8ed878a08d1583e4097a5f80 and fixed in 6.1.160 with commit 8727663ded659aad55eef21e3864ebf5a4796a96
	Issue introduced in 5.8 with commit 9e95fb805dc043cc8ed878a08d1583e4097a5f80 and fixed in 6.6.120 with commit 0260ad551b0815eb788d47f32899fbcd65d6f128
	Issue introduced in 5.8 with commit 9e95fb805dc043cc8ed878a08d1583e4097a5f80 and fixed in 6.12.64 with commit 0d36db68fdb8a3325386fd9523b67735f944e1f3
	Issue introduced in 5.8 with commit 9e95fb805dc043cc8ed878a08d1583e4097a5f80 and fixed in 6.18.3 with commit 8edbb9e371af186b4cf40819dab65fafe109df4d
	Issue introduced in 5.8 with commit 9e95fb805dc043cc8ed878a08d1583e4097a5f80 and fixed in 6.19-rc1 with commit 5053eab38a4c4543522d0c320c639c56a8b59908

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-68782

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/target/target_core_transport.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/8727663ded659aad55eef21e3864ebf5a4796a96
	https://git.kernel.org/stable/c/0260ad551b0815eb788d47f32899fbcd65d6f128
	https://git.kernel.org/stable/c/0d36db68fdb8a3325386fd9523b67735f944e1f3
	https://git.kernel.org/stable/c/8edbb9e371af186b4cf40819dab65fafe109df4d
	https://git.kernel.org/stable/c/5053eab38a4c4543522d0c320c639c56a8b59908