CVE-2026-63886
scsi: target: iscsi: Validate CHAP_R length before base64 decode
Reported by linux · Published July 19, 2026
In the Linux kernel, the following vulnerability has been resolved: scsi: target: iscsi: Validate CHAP_R length before base64 decode chap_server_compute_hash() allocates client_digest as kzalloc(chap->digest_size) and then, for BASE64-encoded responses, passes chap_r directly to chap_base64_decode() without checking whether the input length could produce more than digest_size bytes of output. chap_base64_decode() writes to the destination unconditionally as long as there is input to consume. With MAX_RESPONSE_LENGTH set to 128 and the "0b" prefix stripped by extract_param(), up to 127 base64 characters can reach the decoder. 127 characters decode to 95 bytes. For SHA-256 (digest_size=32) this overflows client_digest by 63 bytes; for MD5 (digest_size=16) the overflow is 79 bytes. The length check at line 344 fires after the write has already happened. The HEX branch in the same switch statement already validates the length up front. Apply the same approach to the BASE64 branch: strip trailing base64 padding characters, then reject any input whose data length exceeds DIV_ROUND_UP(digest_size * 4, 3) before calling the decoder. Stripping trailing '=' before the comparison handles both padded and unpadded encodings. chap_base64_decode() already returns early on '=', so the full original string is still passed to the decoder unchanged. The mutual CHAP path decodes CHAP_C into initiatorchg_binhex, which is kzalloc(CHAP_CHALLENGE_STR_LEN). extract_param() caps initiatorchg at CHAP_CHALLENGE_STR_LEN characters, so at most CHAP_CHALLENGE_STR_LEN-1 base64 characters reach the decoder. The maximum decoded size, DIV_ROUND_UP((CHAP_CHALLENGE_STR_LEN-1) * 3, 4), is less than CHAP_CHALLENGE_STR_LEN, so no overflow is possible there. A comment is added at the call site to document this.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra-matched | errata.rockylinux.org | 6.12.0-211.49.1.el10 |
| kernel-rt-64k-debuginfo | errata.rockylinux.org | 6.12.0-211.49.1.el10 |
| kernel-rt-debug-modules-extra | errata.rockylinux.org | 6.12.0-211.49.1.el10, 4.18.0-553.158.1.rt7.499.el8 |
| kernel-rt-debuginfo | errata.rockylinux.org | 6.12.0-211.49.1.el10 |
| kernel | errata.rockylinux.org | 6.12.0-211.49.1.el10, 4.18.0-553.158.1.el8 |
| perf | errata.rockylinux.org | 6.12.0-211.49.1.el10, 5.14.0-687.44.1.el9, 4.18.0-553.158.1.el8 |
| kernel-64k-core | errata.rockylinux.org | 5.14.0-687.44.1.el9 |
| kernel-devel-matched | errata.rockylinux.org | 6.12.0-211.49.1.el10 |
| kernel-rt-debug-modules | errata.rockylinux.org | 5.14.0-687.44.1.el9 |
| rv | errata.rockylinux.org | 5.14.0-687.44.1.el9 |
| kernel-livepatch-6.12.94-123.174 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-rt-64k-debug-modules | errata.rockylinux.org | 5.14.0-687.44.1.el9 |
52 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1e5733883421495908f3b90d9d807663038b4136, 1e5733883421495908f3b90d9d807663038b4136, 1e5733883421495908f3b90d9d807663038b4136 |
| Linux | Linux | 6.0, 0, 6.1.176 |
| amazon:2023 | kernel-livepatch-6.12.94-123.174 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-livepatch-6.1.176-220.358 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
…and 18 more
Timeline
- Jul 19, 2026 CVE Published
- Jul 20, 2026 Coalition ESS Score
- Jul 20, 2026 Security Advisory (37 in total, the first dated here)
- Aug 7, 2026 EPSS Score (30 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (40 in total, the first dated here)
- Sep 15, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-63886
vulnetix vdb fixes CVE-2026-63886
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-63886/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart