<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Thu, 01 Oct 2026 11:33:16 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-63887 — scsi: target: iscsi: Bound iscsi_encode_text_output() appends to rsp_buf</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-63887</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;scsi: target: iscsi: Bound iscsi_encode_text_output() appends to rsp_buf&lt;/p&gt;
&lt;p&gt;iscsi_encode_text_output() concatenates &amp;#34;key=value\0&amp;#34; records into
login-&amp;gt;rsp_buf, an 8192-byte kzalloc(MAX_KEY_VALUE_PAIRS) buffer
allocated in iscsit_alloc_login_setup_buffer(). The three sprintf() call
sites in this function (lines 1398, 1411, 1424 in v7.1-rc2) never check
the remaining buffer capacity:&lt;/p&gt;
&lt;p&gt;*length += sprintf(output_buf, &amp;#34;%s=%s&amp;#34;, er-&amp;gt;key, er-&amp;gt;value);
	*length += 1;
	output_buf = textbuf + *length;&lt;/p&gt;
&lt;p&gt;The 8192-byte ceiling at iscsi_target_check_login_request() bounds the
*input* Login PDU payload, but a single PDU can carry up to 2048 minimal
four-byte &amp;#34;a=b\0&amp;#34; pairs, each unknown key expanding to a 16-byte
&amp;#34;a=NotUnderstood\0&amp;#34; output record via iscsi_add_notunderstood_response().
2048 * 16 = 32 KiB of output into an 8 KiB buffer, producing a ~24 KiB
heap overrun in the kmalloc-8k slab.&lt;/p&gt;
&lt;p&gt;The fix introduces a static iscsi_encode_text_record() helper that uses
snprintf() with a per-call bounds check against the remaining buffer,
and threads a u32 textbuf_size parameter through
iscsi_encode_text_output(). Both call sites in
iscsi_target_handle_csg_zero() (PHASE_SECURITY) and
iscsi_target_handle_csg_one() (PHASE_OPERATIONAL) pass
MAX_KEY_VALUE_PAIRS. On overflow the encoder logs the condition, calls
iscsi_release_extra_responses() to drop queued records, and returns -1;
both caller sites now emit ISCSI_STATUS_CLS_INITIATOR_ER…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;scsi: target: iscsi: Bound iscsi_encode_text_output() appends to rsp_buf&lt;/p&gt;
&lt;p&gt;iscsi_encode_text_output() concatenates &amp;#34;key=value\0&amp;#34; records into
login-&amp;gt;rsp_buf, an 8192-byte kzalloc(MAX_KEY_VALUE_PAIRS) buffer
allocated in iscsit_alloc_login_setup_buffer(). The three sprintf() call
sites in this function (lines 1398, 1411, 1424 in v7.1-rc2) never check
the remaining buffer capacity:&lt;/p&gt;
&lt;p&gt;*length += sprintf(output_buf, &amp;#34;%s=%s&amp;#34;, er-&amp;gt;key, er-&amp;gt;value);
	*length += 1;
	output_buf = textbuf + *length;&lt;/p&gt;
&lt;p&gt;The 8192-byte ceiling at iscsi_target_check_login_request() bounds the
*input* Login PDU payload, but a single PDU can carry up to 2048 minimal
four-byte &amp;#34;a=b\0&amp;#34; pairs, each unknown key expanding to a 16-byte
&amp;#34;a=NotUnderstood\0&amp;#34; output record via iscsi_add_notunderstood_response().
2048 * 16 = 32 KiB of output into an 8 KiB buffer, producing a ~24 KiB
heap overrun in the kmalloc-8k slab.&lt;/p&gt;
&lt;p&gt;The fix introduces a static iscsi_encode_text_record() helper that uses
snprintf() with a per-call bounds check against the remaining buffer,
and threads a u32 textbuf_size parameter through
iscsi_encode_text_output(). Both call sites in
iscsi_target_handle_csg_zero() (PHASE_SECURITY) and
iscsi_target_handle_csg_one() (PHASE_OPERATIONAL) pass
MAX_KEY_VALUE_PAIRS. On overflow the encoder logs the condition, calls
iscsi_release_extra_responses() to drop queued records, and returns -1;
both caller sites now emit ISCSI_STATUS_CLS_INITIATOR_ER…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-63887</guid>
    </item>
  </channel>
</rss>
