Skip to contentSkip to conversation

CVE-2026-43055: scsi: target: file: Use kzalloc_flex for aio_cmd

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

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: file: Use kzalloc_flex for aio_cmd

The target_core_file doesn't initialize the aio_cmd->iocb for the ki_write_stream. When a write command fd_execute_rw_aio() is executed, we may get a bogus ki_write_stream value, causing unintended write failure status when checking iocb->ki_write_stream > max_write_streams in the block device.

Let's just use kzalloc_flex when allocating the aio_cmd and let ki_write_stream=0 to fix this issue.

The Linux kernel CVE team has assigned CVE-2026-43055 to this issue.

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

	Issue introduced in 6.16 with commit 732f25a2895a8c1c54fb56544f0b1e23770ef4d7 and fixed in 6.18.22 with commit ce54802fe6bb78eb0feffc66fed6a45d41ffc3ab
	Issue introduced in 6.16 with commit 732f25a2895a8c1c54fb56544f0b1e23770ef4d7 and fixed in 6.19.12 with commit 4eaff1728d0e69b95933412241bbccf4f797dba8
	Issue introduced in 6.16 with commit 732f25a2895a8c1c54fb56544f0b1e23770ef4d7 and fixed in 7.0 with commit 01f784fc9d0ab2a6dac45ee443620e517cb2a19b

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

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_file.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/ce54802fe6bb78eb0feffc66fed6a45d41ffc3ab
	https://git.kernel.org/stable/c/4eaff1728d0e69b95933412241bbccf4f797dba8
	https://git.kernel.org/stable/c/01f784fc9d0ab2a6dac45ee443620e517cb2a19b