Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DB0F357D0C for ; Sat, 15 Aug 2026 06:12:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774374; cv=none; b=g93re2+fk/7NmauCSCU7ltQios+kbH+t4rCe/V+IcNErVU7YH4UqGEHtnwgByqeEeFiSdKWRKGAMIRoojIYOvTmsnvYGadnjSlMlsge7+8iL3MeFgkLJWa/dOq8ViVbQCopqjMSnIxUfSevpZQT+rYDC2cq027G6doKf0Srz4qw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774374; c=relaxed/simple; bh=HckQ/3A1C7Jtn8/G9SqXDhyE/K/HQ8IU8svIFHe7pgM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OVZKjxqdDcJnGnN8sU2uIT+16/eawrKdSkPVXBILsdoJw/5rioj8tU7AQv/A9t0TvLfWVaH/mxEXgRsKDW9lJtkmYX8eJKHAvE9+UViSG+40s/1DlZJm0Qsw8bHinSi+onO0+/NyPkm48vQYyc+MI//y+CPwEcuEdsJsDNyacx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R4m5eFNj; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="R4m5eFNj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 968B71F000E9; Sat, 15 Aug 2026 06:12:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774373; bh=vOiGE/9/mOjIOY93gSt5dGTZlkFtfXaF3eyKAm8IKeA=; h=From:To:Cc:Subject:Date:Reply-To; b=R4m5eFNjGxisD7c5ZOB88li8NPUOJKvUZRKC+KFCVq3F+GBJqJJKbmCuulXKYWTW9 aMYE1ocmmhq2n3eMZfXmvhcGd29UAx6MRthNQIASEd9ACt6wFtEFWfc/ZP1NP2s9Qq g8VcP9DXGdP1tusSxxariB7O+4roaLSUwWBIZTTQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72084: scsi: target: Bound PR-OUT TransportID parsing to the received buffer Date: Sat, 15 Aug 2026 15:02:43 +0900 Message-ID: <2026081521-CVE-2026-72084-e48d@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=5471; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3ENTQ6F5KamGSGzZHD8oGvga9/aSMyhihT07+Ai7NS0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDBuLH3794sMk+7Ixb014xKmJd1eofb4hu/Jfzut3/ 5onWl/g74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ/I9kWLDBR2Ghu+CbpT3S +1XT9DYkmh/92sgwP1Mw9Yepso1Ncdijl57zbk2+cj7bCQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: scsi: target: Bound PR-OUT TransportID parsing to the received buffer core_scsi3_decode_spec_i_port() and core_scsi3_emulate_register_and_move() hand the raw PERSISTENT RESERVE OUT parameter buffer to target_parse_pr_out_transport_id() without telling it how many bytes are valid. For an iSCSI TransportID (FORMAT CODE 01b), iscsi_parse_pr_out_transport_id() 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 (transport_kmap_data_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 (core_scsi3_decode_spec_i_port() compares tid_len against tpdl, core_scsi3_emulate_register_and_move() validates it against data_length), moved ahead of the scan. Also drop the unbounded "%s" of the unterminated name. Add per-format explicit name-length checks before copying into i_str, rather than silently truncating with min_t: for FORMAT CODE 00b reject if the descriptor body (tid_len - 4 bytes) cannot fit in i_str[TRANSPORT_IQN_LEN]; 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 (__core_scsi3_locate_pr_reg(), __core_scsi3_alloc_registration()) then dereferences as the ISID string -- the same over-read of the parameter buffer for a malformed descriptor. The Linux kernel CVE team has assigned CVE-2026-72084 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.38 with commit c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 and fixed in 5.15.212 with commit 842248047ef28dbf3b3f7f49a0ec315054d4dab8 Issue introduced in 2.6.38 with commit c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 and fixed in 6.1.178 with commit 03fbc7de8d5e85fc8420e57e8304c855efd453ab Issue introduced in 2.6.38 with commit c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 and fixed in 6.6.145 with commit 6ca5de8782e67573a61a6736b6dc0ffe58dcdf59 Issue introduced in 2.6.38 with commit c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 and fixed in 6.12.97 with commit 9298078a8f7d8181a04614a34ab655ccdf038204 Issue introduced in 2.6.38 with commit c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 and fixed in 6.18.40 with commit 004ccd2d3b4ac36a300e05e01df152e5c02a5a82 Issue introduced in 2.6.38 with commit c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 and fixed in 7.1.5 with commit 555a89846ed888d7401b3f7200934c0fbedcbb46 Issue introduced in 2.6.38 with commit c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 and fixed in 7.2-rc4 with commit d04a179085c262c9ed577d0a4cbc6482ff1fd9a3 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-72084 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/target/target_core_fabric_lib.c drivers/target/target_core_internal.h drivers/target/target_core_pr.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/842248047ef28dbf3b3f7f49a0ec315054d4dab8 https://git.kernel.org/stable/c/03fbc7de8d5e85fc8420e57e8304c855efd453ab https://git.kernel.org/stable/c/6ca5de8782e67573a61a6736b6dc0ffe58dcdf59 https://git.kernel.org/stable/c/9298078a8f7d8181a04614a34ab655ccdf038204 https://git.kernel.org/stable/c/004ccd2d3b4ac36a300e05e01df152e5c02a5a82 https://git.kernel.org/stable/c/555a89846ed888d7401b3f7200934c0fbedcbb46 https://git.kernel.org/stable/c/d04a179085c262c9ed577d0a4cbc6482ff1fd9a3