All reports
Medium

kernel: scsi: target: file: Use kzalloc_flex for aio_cmd

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-43055

Probability of exploitation in the next 30 days: 0.36%

FIRST EPSS · 2026-11-22

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.

A flaw was found in the Linux kernel's SCSI target file module. When a write command is executed, the aio_cmd->iocb for the ki_write_stream is not initialized. This can lead to an incorrect ki_write_stream value, causing unintended write failures in the block device. This vulnerability can result in a Denial of Service (DoS) for applications attempting to write data.