In the Linux kernel, the following vulnerability has been resolved: scsi: target: iscsi: Validate CHAP_R length before base64 decode… (CVE-2026-63886)
A vulnerability in the Linux kernel's iSCSI target implementation was resolved involving improper validation of the CHAP_R length before base64 decoding. The chap_server_compute_hash() function allocated a buffer based on the expected digest size but did not verify that the base64-decoded input would fit, leading to a potential buffer overflow. The issue was fixed by adding a length check that strips trailing base64 padding and rejects inputs that would decode to more bytes than the allocated buffer can hold.
AI Analysis
Technical Summary
The Linux kernel's iSCSI target CHAP authentication code had a flaw where the length of the base64-encoded CHAP_R response was not validated before decoding. This allowed the base64 decoder to write beyond the allocated buffer size (client_digest), causing a buffer overflow. The vulnerability arises because the allocated buffer size is based on the digest size (e.g., 32 bytes for SHA-256), but up to 95 bytes could be decoded from the input, overflowing the buffer by up to 63 bytes. The fix applies a length check before decoding by stripping trailing '=' padding characters and rejecting inputs whose decoded length would exceed the buffer size. The HEX encoding branch already had this validation. The mutual CHAP path was not vulnerable due to stricter input length limits.
Potential Impact
This vulnerability could lead to a buffer overflow in the Linux kernel's iSCSI target CHAP authentication code. Buffer overflows in kernel code can potentially be exploited to cause denial of service or escalate privileges. However, no known exploits in the wild have been reported. The impact depends on the ability of an attacker to supply crafted CHAP_R responses to the vulnerable kernel component.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is applied, avoid exposing the vulnerable iSCSI target service to untrusted networks or inputs. Monitor vendor channels for updates and apply patches once available.
In the Linux kernel, the following vulnerability has been resolved: scsi: target: iscsi: Validate CHAP_R length before base64 decode… (CVE-2026-63886)
Description
A vulnerability in the Linux kernel's iSCSI target implementation was resolved involving improper validation of the CHAP_R length before base64 decoding. The chap_server_compute_hash() function allocated a buffer based on the expected digest size but did not verify that the base64-decoded input would fit, leading to a potential buffer overflow. The issue was fixed by adding a length check that strips trailing base64 padding and rejects inputs that would decode to more bytes than the allocated buffer can hold.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's iSCSI target CHAP authentication code had a flaw where the length of the base64-encoded CHAP_R response was not validated before decoding. This allowed the base64 decoder to write beyond the allocated buffer size (client_digest), causing a buffer overflow. The vulnerability arises because the allocated buffer size is based on the digest size (e.g., 32 bytes for SHA-256), but up to 95 bytes could be decoded from the input, overflowing the buffer by up to 63 bytes. The fix applies a length check before decoding by stripping trailing '=' padding characters and rejecting inputs whose decoded length would exceed the buffer size. The HEX encoding branch already had this validation. The mutual CHAP path was not vulnerable due to stricter input length limits.
Potential Impact
This vulnerability could lead to a buffer overflow in the Linux kernel's iSCSI target CHAP authentication code. Buffer overflows in kernel code can potentially be exploited to cause denial of service or escalate privileges. However, no known exploits in the wild have been reported. The impact depends on the ability of an attacker to supply crafted CHAP_R responses to the vulnerable kernel component.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is applied, avoid exposing the vulnerable iSCSI target service to untrusted networks or inputs. Monitor vendor channels for updates and apply patches once available.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-f9cg-2c9v-xhmh
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63886"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5d27ab2a4a8d598912fc8f
Added to database: 07/19/2026, 19:38:19 UTC
Last enriched: 07/19/2026, 20:11:45 UTC
Last updated: 07/20/2026, 07:19:40 UTC
Views: 10
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.