---
id: CVE-2026-43055
title: 'scsi: target: file: Use kzalloc_flex for aio_cmd'
summary: |-
  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_…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 732f25a2895a8c1c54fb56544f0b1e23770ef4d7 <
    ce54802fe6bb78eb0feffc66fed6a45d41ffc3ab
  - >-
    Linux >= 732f25a2895a8c1c54fb56544f0b1e23770ef4d7 <
    4eaff1728d0e69b95933412241bbccf4f797dba8
  - >-
    Linux >= 732f25a2895a8c1c54fb56544f0b1e23770ef4d7 <
    01f784fc9d0ab2a6dac45ee443620e517cb2a19b
  - Linux 6.16
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-10-16T15:14:04.426072Z'
published: '2026-05-01'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T15:20:30.422Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-43055'
references:
  - url: 'https://git.kernel.org/stable/c/ce54802fe6bb78eb0feffc66fed6a45d41ffc3ab'
  - url: 'https://git.kernel.org/stable/c/4eaff1728d0e69b95933412241bbccf4f797dba8'
  - url: 'https://git.kernel.org/stable/c/01f784fc9d0ab2a6dac45ee443620e517cb2a19b'
tags:
  - cve.org
epss: 0.00609
epssPercentile: 0.48074
ingestedAt: '2026-10-16T17:24:46.680Z'
---

## Overview

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.

## Affected

- `Linux >= 732f25a2895a8c1c54fb56544f0b1e23770ef4d7 < ce54802fe6bb78eb0feffc66fed6a45d41ffc3ab`
- `Linux >= 732f25a2895a8c1c54fb56544f0b1e23770ef4d7 < 4eaff1728d0e69b95933412241bbccf4f797dba8`
- `Linux >= 732f25a2895a8c1c54fb56544f0b1e23770ef4d7 < 01f784fc9d0ab2a6dac45ee443620e517cb2a19b`
- `Linux 6.16`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
