VDB

CVE-2026-63886

CVE-2026-63886 PUBLISHED CVSS 9.8 CRITICAL

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.

PackageEcosystemFixed in
kernel-modules-extra-matchederrata.rockylinux.org6.12.0-211.49.1.el10
kernel-rt-64k-debuginfoerrata.rockylinux.org6.12.0-211.49.1.el10
kernel-rt-debug-modules-extraerrata.rockylinux.org6.12.0-211.49.1.el10, 4.18.0-553.158.1.rt7.499.el8
kernel-rt-debuginfoerrata.rockylinux.org6.12.0-211.49.1.el10
kernelerrata.rockylinux.org6.12.0-211.49.1.el10, 4.18.0-553.158.1.el8
perferrata.rockylinux.org6.12.0-211.49.1.el10, 5.14.0-687.44.1.el9, 4.18.0-553.158.1.el8
kernel-64k-coreerrata.rockylinux.org5.14.0-687.44.1.el9
kernel-devel-matchederrata.rockylinux.org6.12.0-211.49.1.el10
kernel-rt-debug-moduleserrata.rockylinux.org5.14.0-687.44.1.el9
rverrata.rockylinux.org5.14.0-687.44.1.el9
kernel-livepatch-6.12.94-123.174Amazon Linux1:1.0-0.amzn2023
kernel-rt-64k-debug-moduleserrata.rockylinux.org5.14.0-687.44.1.el9

52 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux1e5733883421495908f3b90d9d807663038b4136, 1e5733883421495908f3b90d9d807663038b4136, 1e5733883421495908f3b90d9d807663038b4136
LinuxLinux6.0, 0, 6.1.176
amazon:2023kernel-livepatch-6.12.94-123.1740
amazon:2023kernel6.18-modules-extra-common0
amazon:2023bpftool6.180
amazon:2023bpftool6.120
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.120
amazon:2023kernel-modules-extra0
amazon:2023bpftool0
amazon:2023kernel-livepatch-6.1.176-220.3580
amazon:2023kernel6.12-headers0
amazon:2023kernel-tools-devel0
amazon:2023kernel0
amazon:2023kernel6.18-tools0
amazon:2023kernel-devel0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.18-devel0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›