s390/zcrypt: Improve EP11 CPRB length and overflow checks
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.13, 7.1.10
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: s390/zcrypt: Improve EP11 CPRB length and overflow checks The xcrb_msg_to_type6_ep11cprb_msgx() function lacks proper input validation, creating security vulnerabilities: 1. Missing minimum size validation: The ep11_cprb structure and subsequent payload fields (pld_tag, pld_lenfmt) are copied from userspace without verifying sufficient buffer length. 2. Arithmetic overflow in length calculations: CEIL4 alignment could overflow, bypassing size checks and enabling buffer overflows. 3. The payload is asn1 encoded but the function just uses a simple c struct overlay to access some fields of the payload. Fix by using size_t for length calculations, adding U32_MAX boundary checks after alignment, and validating minimum request size and minimum reply size before copying from userspace. Do a very simple asn1 parsing of the payload up to the function value field.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 20b0b0159390fa5c00a435195649680fefda81e0 · fixed in f463f474773aa49ed1d6087d95d44cea7099fdc7; From e2c6d91eb8b1533753755f07803e47eceed263d0 · fixed in 2976b9d2e716c7e5487ca7c29a7bd076cf9adf08; From e2c6d91eb8b1533753755f07803e47eceed263d0 · fixed in 17ac0bc866fc624cd05f022dcd8b730c0af11bb1; From 6.12.114 · fixed in 6.13
- Linux Linux
7.1
- KernelLinux
From 7.1.0 · fixed in 7.1.10