{"id":"CVE-2026-31464","aliases":["CVE-2026-31464"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: ibmvfc: Fix OOB access in ibmvfc_discover_targets_done()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ibmvfc: Fix OOB access in ibmvfc_discover_targets_done()\n\nA malicious or compromised VIO server can return a num_written value in the\ndiscover targets MAD response that exceeds max_targets. This value is\nstored directly in vhost->num_targets without validation, and is then used\nas the loop bound in ibmvfc_alloc_targets() to index into disc_buf[], which\nis only allocated for max_targets entries. Indices at or beyond max_targets\naccess kernel memory outside the DMA-coherent allocation.  The\nout-of-bounds data is subsequently embedded in Implicit Logout and PLOGI\nMADs that are sent back to the VIO server, leaking kernel memory.\n\nFix by clamping num_written to max_targets before storing it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ibmvfc: Fix OOB access in ibmvfc_discover_targets_done()\n\nA malicious or compromised VIO server can return a num_written value in the\ndiscover targets MAD response that exceeds max_targets. This value is\nstored directly in vhost->num_targets without validation, and is then used\nas the loop bound in ibmvfc_alloc_targets() to index into disc_buf[], which\nis only allocated for max_targets entries. Indices at or beyond max_targets\naccess kernel memory outside the DMA-coherent allocation.  The\nout-of-bounds data is subsequently embedded in Implicit Logout and PLOGI\nMADs that are sent back to the VIO server, leaking kernel memory.\n\nFix by clamping num_written to max_targets before storing it.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nscsi: ibmvfc: Corrección de acceso fuera de límites en ibmvfc_discover_targets_done()\n\nUn servidor VIO malicioso o comprometido puede devolver un valor num_written en la respuesta MAD de descubrimiento de objetivos que excede max_targets. Este valor se almacena directamente en vhost  ->  num_targets sin validación, y luego se utiliza como límite de bucle en ibmvfc_alloc_targets() para indexar en disc_buf[], que solo se asigna para entradas max_targets. Los índices en o más allá de max_targets acceden a memoria del kernel fuera de la asignación coherente con DMA. Los datos fuera de límites se incrustan posteriormente en MADs de Implicit Logout y PLOGI que se envían de vuelta al servidor VIO, filtrando memoria del kernel.\n\nCorrección mediante la limitación de num_written a max_targets antes de almacenarlo.","source":"nvd"}],"published":"2026-04-22T13:53:54.970Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"d842348f8a00d5b1d7358f207eb34ffcf5b16df3","status":"affected"},{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"a007246cb6c9ebdc93dafbf63cc2d43d98f402cc","status":"affected"},{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"394a1cac3c12fdd7d77f19ccfd222ab5ff87ef89","status":"affected"},{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"4ed727e35b0ab17d3eeeb1e8023768396e2be161","status":"affected"},{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"d1466bf991b2343cf2ba8336e440c8faf3cbb780","status":"affected"},{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"786f10b1966e485046839f992e89f2c18cbd1983","status":"affected"},{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"bae4df0a643fa7f84663473aa3082a9c2ed139db","status":"affected"},{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"61d099ac4a7a8fb11ebdb6e2ec8d77f38e77362f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.27","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.27","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.168","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.131","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.27","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.168"},{"status":"affected","introduced":"6.2","fixed":"6.6.131"},{"status":"affected","introduced":"6.7","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d842348f8a00d5b1d7358f207eb34ffcf5b16df3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a007246cb6c9ebdc93dafbf63cc2d43d98f402cc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/394a1cac3c12fdd7d77f19ccfd222ab5ff87ef89","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4ed727e35b0ab17d3eeeb1e8023768396e2be161","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d1466bf991b2343cf2ba8336e440c8faf3cbb780","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/786f10b1966e485046839f992e89f2c18cbd1983","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bae4df0a643fa7f84663473aa3082a9c2ed139db","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/61d099ac4a7a8fb11ebdb6e2ec8d77f38e77362f","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-16T15:09:42.415Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31464","url":"https://www.cve.org/CVERecord?id=CVE-2026-31464","licence":"CVE Terms of Use","modified":"2026-10-19T18:35:49.523Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31464","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31464","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.275Z","epss":{"score":0.00288,"percentile":0.22988,"date":"2026-12-01T12:00:22.000Z"}}