# CVE-2026-31464: scsi: ibmvfc: Fix OOB access in ibmvfc\_discover\_targets\_done()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.44% (percentile 30, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2026-04-22T13:53:54.970Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< d842348f8a00d5b1d7358f207eb34ffcf5b16df3; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< a007246cb6c9ebdc93dafbf63cc2d43d98f402cc; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< 394a1cac3c12fdd7d77f19ccfd222ab5ff87ef89; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< 4ed727e35b0ab17d3eeeb1e8023768396e2be161; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< d1466bf991b2343cf2ba8336e440c8faf3cbb780; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< 786f10b1966e485046839f992e89f2c18cbd1983; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< bae4df0a643fa7f84663473aa3082a9c2ed139db; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< 61d099ac4a7a8fb11ebdb6e2ec8d77f38e77362f
- Anyone running Linux 2.6.27

## 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.

## Affected and fixed versions

- Linux: \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< d842348f8a00d5b1d7358f207eb34ffcf5b16df3; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< a007246cb6c9ebdc93dafbf63cc2d43d98f402cc; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< 394a1cac3c12fdd7d77f19ccfd222ab5ff87ef89; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< 4ed727e35b0ab17d3eeeb1e8023768396e2be161; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< d1466bf991b2343cf2ba8336e440c8faf3cbb780; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< 786f10b1966e485046839f992e89f2c18cbd1983; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< bae4df0a643fa7f84663473aa3082a9c2ed139db; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< 61d099ac4a7a8fb11ebdb6e2ec8d77f38e77362f (cvelist)
- Linux: 2.6.27 (cvelist)

## Mitigation

- Upgrade Linux to 61d099ac4a7a8fb11ebdb6e2ec8d77f38e77362f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31464. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31464.md
Affected: Linux >= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, < d842348f8a00d5b1d7358f207eb34ffcf5b16df3; >= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, < a007246cb6c9ebdc93dafbf63cc2d43d98f402cc; >= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, < 394a1cac3c12fdd7d77f19ccfd222ab5ff87ef89; >= 072b91f9c6510d0ec4a49d0…
Fixed in: Linux 394a1cac3c12fdd7d77f19ccfd222ab5ff87ef89, Linux 4ed727e35b0ab17d3eeeb1e8023768396e2be161, Linux 786f10b1966e485046839f992e89f2c18cbd1983, Linux 61d099ac4a7a8fb11ebdb6e2ec8d77f38e77362f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31464 being exploited?

There is no confirmed exploitation: CVE-2026-31464 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.44% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31464?

High: CVSS 8.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-31464?

Linux \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< d842348f8a00d5b1d7358f207eb34ffcf5b16df3; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< a007246cb6c9ebdc93dafbf63cc2d43d98f402cc; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< 394a1cac3c12fdd7d77f19ccfd222ab5ff87ef89; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< 4ed727e35b0ab17d3eeeb1e8023768396e2be161; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< d1466bf991b2343cf2ba8336e440c8faf3cbb780; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< 786f10b1966e485046839f992e89f2c18cbd1983; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< bae4df0a643fa7f84663473aa3082a9c2ed139db; \>= 072b91f9c6510d0ec4a49d07dbc318760c7da7b3, \< 61d099ac4a7a8fb11ebdb6e2ec8d77f38e77362f; Linux 2.6.27.

### Is there a fix for CVE-2026-31464?

Yes. Fixed in Linux 394a1cac3c12fdd7d77f19ccfd222ab5ff87ef89, Linux 4ed727e35b0ab17d3eeeb1e8023768396e2be161, Linux 786f10b1966e485046839f992e89f2c18cbd1983, Linux 61d099ac4a7a8fb11ebdb6e2ec8d77f38e77362f. Upgrade Linux to 61d099ac4a7a8fb11ebdb6e2ec8d77f38e77362f or later.

### How do I check if I'm affected by CVE-2026-31464?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d842348f8a00d5b1d7358f207eb34ffcf5b16df3>
- patch: <https://git.kernel.org/stable/c/a007246cb6c9ebdc93dafbf63cc2d43d98f402cc>
- patch: <https://git.kernel.org/stable/c/394a1cac3c12fdd7d77f19ccfd222ab5ff87ef89>
- patch: <https://git.kernel.org/stable/c/4ed727e35b0ab17d3eeeb1e8023768396e2be161>
- patch: <https://git.kernel.org/stable/c/d1466bf991b2343cf2ba8336e440c8faf3cbb780>
- patch: <https://git.kernel.org/stable/c/786f10b1966e485046839f992e89f2c18cbd1983>
- patch: <https://git.kernel.org/stable/c/bae4df0a643fa7f84663473aa3082a9c2ed139db>
- patch: <https://git.kernel.org/stable/c/61d099ac4a7a8fb11ebdb6e2ec8d77f38e77362f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31464>

HTML: <https://flawdb.com/CVE-2026-31464> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31464>
