crypto: ccp - copy IV using skcipher ivsize
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2b789435d7f36ed918d92db647f3a2f3fec9bb1f · < df9784bb5b637ac80f4a2768a58ca9a50bef28a9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
crypto: ccp - copy IV using skcipher ivsize
AF_ALG rfc3686-ctr-aes-ccp requests pass an 8-byte IV to the driver.
ccp_aes_complete() restores AES_BLOCK_SIZE bytes into the caller's IV buffer while RFC3686 skciphers expose an 8-byte IV, so the restore overruns the provided buffer.
Use crypto_skcipher_ivsize() to copy only the algorithm's IV length.
From the CVE record · Linux
The Linux kernel's crypto ccp driver copies 16 bytes into an 8-byte caller IV buffer when completing an AF_ALG rfc3686-ctr-aes-ccp request. This can overrun the buffer; the input does not specify the access, authentication, or user-interaction conditions needed to trigger it.
Engineers running the Linux kernel should check whether their kernel includes the affected crypto ccp code; affected versions are not specified.