crypto: virtio/akcipher - Fix stack overflow on memcpy
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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
From the CVE record · Linux
The Linux kernel's virtio akcipher code copies more bytes from a stack variable than the variable contains when preparing a crypto operation control request. This can cause a stack overflow. The input does not specify how an attacker could trigger it, or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with virtio akcipher support should check their versions; affected versions were not provided.