{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99754","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.432Z","datePublished":"2026-11-20T05:51:23.755Z","dateUpdated":"2026-11-22T11:10:01.163Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:10:01.163Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: target: Verify the iSCSI ISID is null-terminated\n\niscsi_parse_pr_out_transport_id() returns the ISID of a FORMAT CODE 01b\nTransportID as a pointer into the PERSISTENT RESERVE OUT parameter list,\nlowercased in place and never null-terminated.  spc4r37 Table 508 requires\nthe field to be null-terminated, but a non-conforming initiator can omit\nthe NULL; when the ISID ends at the end of the received buffer, the pointer\nis not a C string.\n\nThe registration code still consumes it as one: strcmp() in\n__core_scsi3_locate_pr_reg() and in the REGISTER AND MOVE path, and\nsnprintf(\"%s\") in __core_scsi3_do_alloc_registration(), which also reads\nits first 8 bytes unconditionally with get_unaligned_be64() - a NUL check\ndoes not bound that read.\n\nWhen the parameter list spans more than one page, transport_kmap_data_sg()\nmaps it with vmap(), and the over-read walks off the end of the mapping\ninto the vmalloc() guard page and oopses.  Reproduced with a PR OUT\nREGISTER + SPEC_I_PT parameter list of exactly 8192 bytes whose final\nTransportID carries a 12-byte ISID without a terminating NUL:\n\n  BUG: unable to handle page fault for address: ffffc9000138c000\n  RIP: 0010:strcmp+0xc/0x30\n  Call Trace:\n   __core_scsi3_locate_pr_reg+0xd3/0x120 [target_core_mod]\n   core_scsi3_decode_spec_i_port+0x8fc/0x13a0 [target_core_mod]\n   core_scsi3_emulate_pro_register+0x73c/0x900 [target_core_mod]\n   ...\n   iscsi_target_rx_thread+0xef/0x1d0 [iscsi_target_mod]\n\nWith a single-page parameter list the buffer is a kmap() direct mapping, so\nthe over-read continues into the physically adjacent page instead of\nfaulting.  snprintf(\"%s\") then copies whatever follows the ISID in memory\ninto pr_reg_isid, and PR IN READ FULL STATUS reports the registration back\nto any initiator, turning the over-read into an info leak of kernel heap\ncontents.  Reproduced with a 4096-byte parameter list whose last\nTransportID ends at the end of the buffer with a 4-byte ISID and no NUL,\ninterleaved with I/O to populate adjacent pages: the READ FULL STATUS\nresponse returned the ISID as \"0xleak\" followed by raw bytes that were not\npart of the parameter list.  The snprintf() into\npr_reg_isid[PR_REG_ISID_LEN] caps the echoed ISID at 15 characters, so at\nmost 11 bytes past the buffer are leaked per command, but the PR OUT\ncommand is not rate limited.\n\nAny initiator that can send PR OUT to an iSCSI-exported LUN can trigger\neither variant, including a guest via vhost-scsi.\n\nRequire 8 bytes to remain after the \",i,0x\" separator, and a NUL inside the\nrest of the descriptor, before the ISID pointer is returned.  REGISTER AND\nMOVE fails with TCM_INVALID_PARAMETER_LIST; on SPEC_I_PT no target port\nclaims the malformed TransportID, and the command fails the same way."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - A logged-in iSCSI initiator places the malformed format-code 01b TransportID, including the unterminated ISID, in the PERSISTENT RESERVE OUT parameter list of a SCSI Command PDU. iscsi_target_rx_thread() receives that PDU and core_scsi3_decode_spec_i_port() passes it to iscsi_parse_pr_out_transport_id(); iSCSI is carried over TCP.\nAC:L - The initiator chooses the parameter-list length and the ISID bytes. transport_kmap_data_sg() vmap()s a multi-page list, so an ISID that ends on that mapping faults on the guard page in get_unaligned_be64() or snprintf(\"%s\") in __core_scsi3_do_alloc_registration(). core_scsi3_pr_seq_non_holder() accepts PRO_REGISTER even when another reservation is held.\nPR:L - target_scsi3_emulate_pr_out() runs only after iscsi_post_login_handler() sets TARG_CONN_STATE_LOGGED_IN and wakes iscsi_target_rx_thread(). iscsi_target_locate_portal() requires a node ACL, and with default TA_AUTHENTICATION=1 iscsit_tpg_enable_portal_group() keeps AuthMethod=CHAP, so the attacker is an authorized initiator.\nUI:N - That initiator sends the PR OUT SCSI Command PDU that reaches iscsi_parse_pr_out_transport_id(), and sends PR IN READ FULL STATUS to read back the stored pr_reg_isid.\nS:U - The guard-page fault and the leaked pr_reg_isid both occur in the host kernel that owns the iSCSI session. The initiator and the affected memory are under that same target security authority.\nC:L - For a one-page parameter list, transport_kmap_data_sg() uses kmap(), and snprintf() into pr_reg->pr_reg_isid[PR_REG_ISID_LEN] retains at most 15 characters. iscsi_get_pr_transport_id() copies that string into the PR IN READ FULL STATUS TransportID, disclosing only those adjacent bytes per command.\nI:N - The ISID pointer is consumed by strcmp() in __core_scsi3_locate_pr_reg(), get_unaligned_be64(), and snprintf(\"%s\") into the 16-byte pr_reg_isid. The tolower loop in iscsi_parse_pr_out_transport_id() writes only while p remains inside tid_len.\nA:H - A parameter list longer than one page is vmap()'d by transport_kmap_data_sg() with a guard page. The unterminated ISID makes strcmp() in __core_scsi3_locate_pr_reg(), or snprintf()/get_unaligned_be64() in __core_scsi3_do_alloc_registration(), fault there and oops iscsi_target_rx_thread()."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/target/target_core_fabric_lib.c"],"versions":[{"version":"c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5","lessThan":"29c5ce6465b5696fbdf8126fcd0a6946b005c8b7","status":"affected","versionType":"git"},{"version":"c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5","lessThan":"8a71f25a34439e99e094fabb619f787d15aaf9ae","status":"affected","versionType":"git"},{"version":"c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5","lessThan":"d1db24c32bbe7b998573392070c3a6bdd9f4066c","status":"affected","versionType":"git"},{"version":"c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5","lessThan":"cdf4b87a18cb6a0ee26865cb1b7b5660a491d302","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/target/target_core_fabric_lib.c"],"versions":[{"version":"2.6.38","status":"affected"},{"version":"0","lessThan":"2.6.38","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/29c5ce6465b5696fbdf8126fcd0a6946b005c8b7"},{"url":"https://git.kernel.org/stable/c/8a71f25a34439e99e094fabb619f787d15aaf9ae"},{"url":"https://git.kernel.org/stable/c/d1db24c32bbe7b998573392070c3a6bdd9f4066c"},{"url":"https://git.kernel.org/stable/c/cdf4b87a18cb6a0ee26865cb1b7b5660a491d302"}],"title":"scsi: target: Verify the iSCSI ISID is null-terminated","x_generator":{"engine":"bippy-1.2.0"}}}}