crypto: virtio - bound the akcipher result length
- 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.6.158, 6.12.111, 6.18.49, 7.1.13, 7.2.3
- 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: 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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From a36bd0ad9fbf69d0d711b1c105954ce8d6cc144a · fixed in bd33cb19bcb432a4dd5e8f50be5e2547af1e9f78; From a36bd0ad9fbf69d0d711b1c105954ce8d6cc144a · fixed in 12c4f29e97f31b013f77ad65ba7daeb02aaa6abe; From a36bd0ad9fbf69d0d711b1c105954ce8d6cc144a · fixed in 5545de5050cbc3594506d74f2c392b0716cf8bca; From a36bd0ad9fbf69d0d711b1c105954ce8d6cc144a · fixed in 3fda114a42f1510a4ec8a0b17a0cfc997952ccc2; From a36bd0ad9fbf69d0d711b1c105954ce8d6cc144a · fixed in 1f9f877b1ef1fbd4ee95571cddf39c8002cee252; From a36bd0ad9fbf69d0d711b1c105954ce8d6cc144a · fixed in f77a956f6a19f9463ef1527c9d0cda50dded6b92
- Linux Linux
5.19
- KernelLinux
From 5.19.0 · fixed in 6.6.158; From 6.7.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.49; From 6.19.0 · fixed in 7.1.13; From 7.2.0 · fixed in 7.2.3