{"id":14941,"date":"2026-09-04T19:02:19","date_gmt":"2026-09-04T11:02:19","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-63887"},"modified":"2026-09-04T19:02:19","modified_gmt":"2026-09-04T11:02:19","slug":"cve-2026-63887","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-63887","title":{"rendered":"CVE-2026-63887 [CRITICAL] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: target: iscsi:"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>scsi: target: iscsi: Bound iscsi_encode_text_output() appends to rsp_buf<\/p>\n<p>iscsi_encode_text_output() concatenates &#8220;key=value&#8221; records into<br \/>\nlogin-&gt;rsp_buf, an 8192-byte kzalloc(MAX_KEY_VALUE_PAIRS) buffer<br \/>\nallocated in iscsit_alloc_login_setup_buffer(). The three sprintf() call<br \/>\nsites in this function (lines 1398, 1411, 1424 in v7.1-rc2) never check<br \/>\nthe remaining buffer capacity:<\/p>\n<p>\t*length += sprintf(output_buf, &#8220;%s=%s&#8221;, er-&gt;key, er-&gt;value);<br \/>\n\t*length += 1;<br \/>\n\toutput_buf = textbuf + *length;<\/p>\n<p>The 8192-byte ceiling at iscsi_target_check_login_request() bounds the<br \/>\n*input* Login PDU payload, but a single PDU can carry up to 2048 minimal<br \/>\nfour-byte &#8220;a=b&#8221; pairs, each unknown key expanding to a 16-byte<br \/>\n&#8220;a=NotUnderstood&#8221; output record via iscsi_add_notunderstood_response().<br \/>\n2048 * 16 = 32 KiB of output into an 8 KiB buffer, producing a ~24 KiB<br \/>\nheap overrun in the kmalloc-8k slab.<\/p>\n<p>The fix introduces a static iscsi_encode_text_record() helper that uses<br \/>\nsnprintf() with a per-call bounds check against the remaining buffer,<br \/>\nand threads a u32 textbuf_size parameter through<br \/>\niscsi_encode_text_output(). Both call sites in<br \/>\niscsi_target_handle_csg_zero() (PHASE_SECURITY) and<br \/>\niscsi_target_handle_csg_one() (PHASE_OPERATIONAL) pass<br \/>\nMAX_KEY_VALUE_PAIRS. On overflow the encoder logs the condition, calls<br \/>\niscsi_release_extra_responses() to drop queued records, and returns -1;<br \/>\nboth caller sites now emit ISCSI_STATUS_CLS_INITIATOR_ERR \/<br \/>\nISCSI_LOGIN_STATUS_INIT_ERR via iscsit_tx_login_rsp() before returning,<br \/>\nso the initiator sees an explicit failed-login response rather than a<br \/>\nsilent connection drop. (Prior to this patch only the PHASE_OPERATIONAL<br \/>\ncaller did that; the PHASE_SECURITY caller is converted to the same<br \/>\nshape.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>scsi: target: iscsi: Bound iscsi_encode_text_output() appends to rsp_buf<\/p>\n<p>iscsi_encode_text_output() concatenates &#8220;key=value&#8221; rec<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-14941","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/14941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}