CVE-2026-43055

scsi: target: file: Use kzalloc_flex for aio_cmd

Published May 1, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Linux kernel SCSI target subsystem contains a defect in the target_core_file module where the aio_cmd->iocb ki_write_stream field is not initialized during write operations. When fd_execute_rw_aio() processes a write command, the uninitialized ki_write_stream value may be interpreted as exceeding the maximum allowed streams, leading the kernel to return a failure status for the write. This flaw results in unintended write failures and can disrupt data integrity and service availability for processes that depend on the SCSI target interface.

Affected Systems

All Linux kernel releases that include the target_core_file module before the commit that introduced kzalloc_flex allocation and explicit ki_write_stream initialization are potentially vulnerable. The affected versions include the mainline Linux kernel and the 7.0 release candidates (rc1 through rc5) listed in the supplied CPE strings.

Risk and Exploitability

The flaw is rated high severity with a CVSS score of 7.5, yet its EPSS score is below 1%, indicating that active exploitation is currently rare. A local or privileged user who can submit write requests through the SCSI target interface can trigger the bug, but remote code execution or privilege escalation is not supported by the description. The vulnerability is not listed in the CISA KEV catalog, so no public exploit evidence is currently known.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that incorporates the kzalloc_flex allocation change and sets ki_write_stream to zero during aio_cmd construction.
  • If an immediate kernel upgrade is not feasible, unload the target_core_file module or block its loading to eliminate the faulty path.
  • Alternatively, restrict write operations on the SCSI target interface through device or system policies to reduce the attack surface.

Generated by OpenCVE AI on October 23, 2026 at 08:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-457
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Weaknesses CWE-457
Type Values Removed Values Added
Weaknesses CWE-824
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-457
Type Values Removed Values Added
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.
Title scsi: target: file: Use kzalloc_flex for aio_cmd
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 7:06 PM
Reserved
May 1, 2026, 2:12 PM
Status
Modified
Published
May 1, 2026, 3:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Moderate
Public date
May 1, 2026, 12:00 AM