CVE-2026-72084

Source
https://cve.org/CVERecord?id=CVE-2026-72084
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72084.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-72084
Downstream
Published
2026-08-15T05:52:32.789Z
Modified
2026-08-24T03:47:33.754494490Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
scsi: target: Bound PR-OUT TransportID parsing to the received buffer
Details

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

scsi: target: Bound PR-OUT TransportID parsing to the received buffer

corescsi3decodespeciport() and corescsi3emulateregisterandmove() hand the raw PERSISTENT RESERVE OUT parameter buffer to targetparseprouttransportid() without telling it how many bytes are valid. For an iSCSI TransportID (FORMAT CODE 01b), iscsiparseprouttransportid() locates the ",i,0x" ISID separator with an unbounded strstr() (and on the error path prints the name with a further unbounded "%s"). An initiator can submit a TransportID whose iSCSI name contains neither a ",i,0x" substring nor a NUL terminator, filling the parameter list to its end, so the scan runs off the end of the buffer.

When the parameter list spans more than one page the buffer is a multi-page vmap (transportkmapdata_sg()), so the over-read walks into the trailing vmalloc guard page and oopses (KASAN: vmalloc-out-of-bounds in strstr). It is reachable by any fabric that delivers a PR OUT to a device exported through an iSCSI TPG, including a guest via vhost-scsi.

Pass the number of received bytes down to the parser and validate the iSCSI TransportID's own self-described length (ADDITIONAL LENGTH + 4) once, up front: reject it if it is below the spc4r17 minimum or larger than the received buffer, then bound the separator search, the ISID walk and the name copy by that length. This is the length check the callers already perform after the parse (corescsi3decodespeciport() compares tidlen against tpdl, corescsi3emulateregisterandmove() validates it against datalength), moved ahead of the scan. Also drop the unbounded "%s" of the unterminated name.

Add per-format explicit name-length checks before copying into istr, rather than silently truncating with mint: for FORMAT CODE 00b reject if the descriptor body (tidlen - 4 bytes) cannot fit in istr[TRANSPORTIQNLEN]; for FORMAT CODE 01b reject if the name portion (from &buf[4] up to the separator) cannot fit. Both checks make the bounds intent explicit at each format branch.

While here, also reject a FORMAT CODE 01b TransportID whose ",i,0x" separator sits at the very end of the descriptor: that leaves an empty ISID and points the returned port nexus pointer at buf + tid_len, one past the descriptor, which the registration code (__corescsi3locateprreg(), _corescsi3allocregistration()) then dereferences as the ISID string -- the same over-read of the parameter buffer for a malformed descriptor.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72084.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5
Fixed
88c67c3de914e19172e1d878a7625c5b06c20ec5
Fixed
842248047ef28dbf3b3f7f49a0ec315054d4dab8
Fixed
03fbc7de8d5e85fc8420e57e8304c855efd453ab
Fixed
6ca5de8782e67573a61a6736b6dc0ffe58dcdf59
Fixed
9298078a8f7d8181a04614a34ab655ccdf038204
Fixed
004ccd2d3b4ac36a300e05e01df152e5c02a5a82
Fixed
555a89846ed888d7401b3f7200934c0fbedcbb46
Fixed
d04a179085c262c9ed577d0a4cbc6482ff1fd9a3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72084.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.38
Fixed
5.10.266
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.212
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.178
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.97
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.40
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72084.json"