summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorBryam Vargas <hexlabsecurity@proton.me>2026-06-22 01:52:15 -0500
committerMichael S. Tsirkin <mst@redhat.com>2026-08-03 23:08:16 -0400
commit93a5af4ed28ff5f1a2999892e959587369746981 (patch)
tree6fd17257aaaac2990a6a2e3a24f9670ead76ad92 /scripts/Makefile.thinlto
parent915d2dee0e3c1a83ec1f9cc7e69c1023776587eb (diff)
downloadlinux-next-93a5af4ed28ff5f1a2999892e959587369746981.tar.gz
linux-next-93a5af4ed28ff5f1a2999892e959587369746981.zip
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. Fixes: a36bd0ad9fbf ("virtio-crypto: adjust dst_len at ops callback") Cc: stable@vger.kernel.org Signed-off-by: Bryam Vargas <hexlabsecurity@proton.me> Message-ID: <20260622-b4-disp-3a2c09a8-v2-1-d1a809281db4@proton.me> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions