CVE-2026-31464: scsi: ibmvfc: Fix OOB access in ibmvfc_discover_targets_done()

Published Apr 22, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

scsi: ibmvfc: Fix OOB access in ibmvfcdiscovertargetsdone()

A malicious or compromised VIO server can return a numwritten value in the discover targets MAD response that exceeds maxtargets. This value is stored directly in vhost->numtargets without validation, and is then used as the loop bound in ibmvfcalloctargets() to index into discbuf[], which is only allocated for maxtargets entries. Indices at or beyond maxtargets 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 numwritten to maxtargets before storing it.

Affected Software

14 affected componentsFixes available
Linux ibmvfc (Linux kernel scsi driver)
Linux Linux kernel>=2.6.27<5.10.253
Linux Linux kernel>=5.11<5.15.203
Linux Linux kernel>=5.16<6.1.168
Linux Linux kernel>=6.2<6.6.131
Linux Linux kernel>=6.7<6.12.80
Linux Linux kernel>=6.13<6.18.21
Linux Linux kernel>=6.19<6.19.11
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
Linux Linux kernel=7.0-rc5
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
  2. Compensating control

    Clamp the num_written value to max_targets before storing it, preventing ibmvfc_discover_targets_done() from using an out-of-bounds loop bound.

Event History

Apr 22, 2026
CVE Published
via MITRE·01:53 PM
Data Sourced
via MITRE·01:53 PM
DescriptionSeverity
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 23, 2026
Data Sourced
via Microsoft·08:06 AM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux ibmvfc SCSI driver and communicating with a VIO server are exposed. The vulnerable path processes Discover Targets MAD responses received from that server.

2

What does exploitation require?

A malicious or compromised VIO server must return a Discover Targets response with a num_written value greater than max_targets. No local privileges or user interaction are indicated by the supplied severity vector.

3

What is the impact of a successful exploit?

The oversized value causes indexing beyond the allocated disc_buf[] entries. Data from outside that DMA-coherent allocation can be included in Implicit Logout and PLOGI MADs sent to the VIO server, leaking kernel memory.

4

What is the remediation?

Apply a kernel update containing the fix that clamps num_written to max_targets before it is stored and used as a loop bound. This prevents accesses beyond the buffer allocated for target discovery.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203