s390/zcrypt: Fix out-of-bounds ptr advance in cca_query_crypto_facility()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel bd30e2b60e811140861d53030cf9b6226b46c032, Kernel 21268907891d5496e495ca17511aff11d8f99731, Kernel 49dfd61f1c2ddfe028d4a9a603afc33b013e9ee9 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: s390/zcrypt: Fix out-of-bounds ptr advance in cca_query_crypto_facility() The FQ reply parser code blindly advanced the walk pointer by a length value read directly from the hardware reply payload without checking that the advance stayed within the allocated reply buffer. A corrupt or malicious device response could push ptr beyond the cprbmem region, causing an out-of-bounds dereference or kernel memory exposure via the subsequent memcpy(). Fix this by tracking the remaining reply buffer space in a variable and validating each device-supplied length field against it before advancing or dereferencing the pointer.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2004b57cde6b21170d058244b53043105d89f83f <bd30e2b60e811140861d53030cf9b6226b46c032, >=2004b57cde6b21170d058244b53043105d89f83f <21268907891d5496e495ca17511aff11d8f99731, >=2004b57cde6b21170d058244b53043105d89f83f <49dfd61f1c2ddfe028d4a9a603afc33b013e9ee9, >=2004b57cde6b21170d058244b53043105d89f83f <9fd7fca66735307fd7afa3450882a55ef80f2add, =5.19 | bd30e2b60e811140861d53030cf9b6226b46c032, 21268907891d5496e495ca17511aff11d8f99731, 49dfd61f1c2ddfe028d4a9a603afc33b013e9ee9, 9fd7fca66735307fd7afa3450882a55ef80f2add |
| linux-kernel: Kernel | >=6.13.0 <6.18.61, >=6.19.0 <7.3.2, >=5.19.0 <6.12.117 | 6.18.61, 7.3.2, 6.12.117 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket