В ядре Linux была устранена следующая уязвимость: s390/zcrypt: Fix out-of-bounds ptr advance in cca_query_crypto_facility() The FQ reply parser code слепо продвинул указатель хода на значение длины, прочитанное непосредственно из полезной нагрузки аппаратного ответа без проверки того, что аванс остался в пределах выделенного буфера ответа. Поврежденный или вредоносный ответ устройства может вытолкнуть ptr за пределы области cprbmem, вызывая удаление out-of-bounds или экспозицию памяти ядра через последующий memcpy(). Исправьте это, отслеживая оставшееся буферное пространство ответа в переменной и проверяя каждое поле длины, поставляемое устройством, перед продвижением или смещением указателя.
Показать оригинальное описание (EN)
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.