In the Linux kernel, the following vulnerability has been resolved: scsi: target: iscsi: Bound iscsi_encode_text_output() appends to rsp_buf… (CVE-2026-63887)
In the Linux kernel, the following vulnerability has been resolved: scsi: target: iscsi: Bound iscsi_encode_text_output() appends to rsp_buf iscsi_encode_text_output() concatenates "key=value\0" records into login->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: *length += sprintf(output_buf, "%s=%s", er->key, er->value); *length += 1; output_buf = textbuf + *length; 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 "a=b\0" pairs, each unknown key expanding to a 16-byte "a=NotUnderstood\0" 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. 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_ERR / ISCSI_LOGIN_STATUS_INIT_ERR via iscsit_tx_login_rsp() before returning, so the initiator sees an explicit failed-login response rather than a silent connection drop. (Prior to this patch only the PHASE_OPERATIONAL caller did that; the PHASE_SECURITY caller is converted to the same shape.)
AI Analysis
Technical Summary
The Linux kernel iSCSI target component had a vulnerability (CVE-2026-63887) where iscsi_encode_text_output() appended key=value records into an 8192-byte buffer without verifying remaining capacity. Although the input Login PDU payload was limited to 8192 bytes, the output could expand significantly (up to 32 KiB) due to multiple 'NotUnderstood' responses for unknown keys, causing a heap overrun of about 24 KiB in the kmalloc-8k slab. The patch introduces a helper function using snprintf() with bounds checking and propagates a buffer size parameter through the encoding functions. On overflow, the code logs the event, drops extra responses, and returns an error status that results in an explicit failed-login response to the initiator, preventing silent connection drops.
Potential Impact
This vulnerability could lead to a heap buffer overrun in the Linux kernel's iSCSI target subsystem, potentially causing memory corruption. The exact impact is not detailed in the input data, but heap overruns can lead to system instability or security breaches. The fix prevents this by enforcing buffer size limits and proper error signaling to the initiator.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this vulnerability by adding bounds checking and error handling in iscsi_encode_text_output() and related functions. Users should apply the official Linux kernel updates that include this patch. Since this is not a cloud service, remediation depends on deploying the fixed kernel version. Patch status is not explicitly confirmed in the input; check the vendor advisory for current remediation guidance.
In the Linux kernel, the following vulnerability has been resolved: scsi: target: iscsi: Bound iscsi_encode_text_output() appends to rsp_buf… (CVE-2026-63887)
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: target: iscsi: Bound iscsi_encode_text_output() appends to rsp_buf iscsi_encode_text_output() concatenates "key=value\0" records into login->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: *length += sprintf(output_buf, "%s=%s", er->key, er->value); *length += 1; output_buf = textbuf + *length; 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 "a=b\0" pairs, each unknown key expanding to a 16-byte "a=NotUnderstood\0" 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. 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_ERR / ISCSI_LOGIN_STATUS_INIT_ERR via iscsit_tx_login_rsp() before returning, so the initiator sees an explicit failed-login response rather than a silent connection drop. (Prior to this patch only the PHASE_OPERATIONAL caller did that; the PHASE_SECURITY caller is converted to the same shape.)
CVSS v3.1
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel iSCSI target component had a vulnerability (CVE-2026-63887) where iscsi_encode_text_output() appended key=value records into an 8192-byte buffer without verifying remaining capacity. Although the input Login PDU payload was limited to 8192 bytes, the output could expand significantly (up to 32 KiB) due to multiple 'NotUnderstood' responses for unknown keys, causing a heap overrun of about 24 KiB in the kmalloc-8k slab. The patch introduces a helper function using snprintf() with bounds checking and propagates a buffer size parameter through the encoding functions. On overflow, the code logs the event, drops extra responses, and returns an error status that results in an explicit failed-login response to the initiator, preventing silent connection drops.
Potential Impact
This vulnerability could lead to a heap buffer overrun in the Linux kernel's iSCSI target subsystem, potentially causing memory corruption. The exact impact is not detailed in the input data, but heap overruns can lead to system instability or security breaches. The fix prevents this by enforcing buffer size limits and proper error signaling to the initiator.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this vulnerability by adding bounds checking and error handling in iscsi_encode_text_output() and related functions. Users should apply the official Linux kernel updates that include this patch. Since this is not a cloud service, remediation depends on deploying the fixed kernel version. Patch status is not explicitly confirmed in the input; check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cccw-rxpj-wfqf
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63887"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5d27ab2a4a8d598912fc99
Added to database: 07/19/2026, 19:38:19 UTC
Last enriched: 07/19/2026, 20:11:51 UTC
Last updated: 07/20/2026, 19:41:22 UTC
Views: 13
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.