What’s Vulnerable › Vulnerabilities

CVE-2024-26753: crypto: virtio/akcipher - Fix stack overflow on memcpy

Description

In the Linux kernel, the following vulnerability has been resolved: crypto: virtio/akcipher - Fix stack overflow on memcpy sizeof(struct virtio_crypto_akcipher_session_para) is less than sizeof(struct virtio_crypto_op_ctrl_req::u), copying more bytes from stack variable leads stack overflow. Clang reports this issue by commands: make -j CC=clang-14 mrproper >/dev/null 2>&1 make -j O=/tmp/crypto-build CC=clang-14 allmodconfig >/dev/null 2>&1 make -j O=/tmp/crypto-build W=1 CC=clang-14 drivers/crypto/virtio/ virtio_crypto_akcipher_algs.o

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.212, 6.1.80, 6.6.19, 6.7.7. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-26753 or the next vulnerability affects your stack