Description
In the Linux kernel, the following vulnerability has been resolved: crypto: virtio - bound the akcipher result length virtio_crypto_dataq_akcipher_callback() sets the result length from the device-reported response length without bounding it to the destination buffer, which was allocated for the original request length. sg_copy_from_buffer() then reads that many bytes from the destination buffer; a backend reporting a larger length over-reads adjacent kernel heap into the caller's scatterlist (an out-of-bounds read). Clamp the reported length to the originally requested destination length. A conforming device reports no more than that, so valid results are unaffected.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
a36bd0ad9fbf69d0d711b1c105954ce8d6cc144a to < e0ffee8adc71a0bc548e5ebc6e021c013a874d79affecteda36bd0ad9fbf69d0d711b1c105954ce8d6cc144a to < bd33cb19bcb432a4dd5e8f50be5e2547af1e9f78affecteda36bd0ad9fbf69d0d711b1c105954ce8d6cc144a to < 12c4f29e97f31b013f77ad65ba7daeb02aaa6abeaffecteda36bd0ad9fbf69d0d711b1c105954ce8d6cc144a to < 5545de5050cbc3594506d74f2c392b0716cf8bcaaffecteda36bd0ad9fbf69d0d711b1c105954ce8d6cc144a to < 3fda114a42f1510a4ec8a0b17a0cfc997952ccc2affecteda36bd0ad9fbf69d0d711b1c105954ce8d6cc144a to < 1f9f877b1ef1fbd4ee95571cddf39c8002cee252affecteda36bd0ad9fbf69d0d711b1c105954ce8d6cc144a to < f77a956f6a19f9463ef1527c9d0cda50dded6b92affected
Linux Linux
Default version status: affected
5.19affected0 to < 5.19unaffected6.1.191 to ≤ 6.1.*unaffected6.6.158 to ≤ 6.6.*unaffected6.12.111 to ≤ 6.12.*unaffected6.18.49 to ≤ 6.18.*unaffected7.1.13 to ≤ 7.1.*unaffected7.2.3 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/e0ffee8adc71a0bc548e5ebc6e021c013a874d79 ↗
- https://git.kernel.org/stable/c/bd33cb19bcb432a4dd5e8f50be5e2547af1e9f78 ↗
- https://git.kernel.org/stable/c/12c4f29e97f31b013f77ad65ba7daeb02aaa6abe ↗
- https://git.kernel.org/stable/c/5545de5050cbc3594506d74f2c392b0716cf8bca ↗
- https://git.kernel.org/stable/c/3fda114a42f1510a4ec8a0b17a0cfc997952ccc2 ↗
- https://git.kernel.org/stable/c/1f9f877b1ef1fbd4ee95571cddf39c8002cee252 ↗
- https://git.kernel.org/stable/c/f77a956f6a19f9463ef1527c9d0cda50dded6b92 ↗