CVE-2026-31464

HIGH

scsi: ibmvfc: Fix OOB access in ibmvfc_discover_targets_done()

Title source: cna
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: ibmvfc: Fix OOB access in ibmvfc_discover_targets_done() A malicious or compromised VIO server can return a num_written value in the discover targets MAD response that exceeds max_targets. This value is stored directly in vhost->num_targets without validation, and is then used as the loop bound in ibmvfc_alloc_targets() to index into disc_buf[], which is only allocated for max_targets entries. Indices at or beyond max_targets access kernel memory outside the DMA-coherent allocation. The out-of-bounds data is subsequently embedded in Implicit Logout and PLOGI MADs that are sent back to the VIO server, leaking kernel memory. Fix by clamping num_written to max_targets before storing it.

Scores

CVSS v3 8.1
EPSS 0.0027
EPSS Percentile 19.3%
Attack Vector ADJACENT_NETWORK
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Details

CWE
CWE-125
Status published
Products (27)
linux/Kernel 2.6.27 - 5.10.253linux
linux/Kernel 5.11.0 - 5.15.203linux
linux/Kernel 5.16.0 - 6.1.168linux
linux/Kernel 6.13.0 - 6.18.21linux
linux/Kernel 6.19.0 - 6.19.11linux
linux/Kernel 6.2.0 - 6.6.131linux
linux/Kernel 6.7.0 - 6.12.80linux
Linux/Linux < 2.6.27
Linux/Linux 072b91f9c6510d0ec4a49d07dbc318760c7da7b3 - 394a1cac3c12fdd7d77f19ccfd222ab5ff87ef89
Linux/Linux 072b91f9c6510d0ec4a49d07dbc318760c7da7b3 - 4ed727e35b0ab17d3eeeb1e8023768396e2be161
... and 17 more
Published Apr 22, 2026
Tracked Since Apr 22, 2026