crypto: qce - fix CCM AAD buffer underallocation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9363efb4181c5e0fbf86bdfa759262aa29f0eb50 · < 46a84efe2dbaddde89073a3c00c694486937c34b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
crypto: qce - fix CCM AAD buffer underallocation
The AAD buffer allocated in qce_aead_ccm_prepare_buf_assoclen() can be smaller than the length later programmed into the DMA scatterlist.
The allocation size is currently calculated as:
ALIGN(assoclen, 16) + MAX_CCM_ADATA_HEADER_LEN
while the DMA length is set to:
ALIGN(assoclen + adata_header_len, 16)
Since ALIGN() does not distribute over addition, the allocation can be smaller than the DMA length. For example, when assoclen = 32 and adata_header_len = 2:
From the CVE record · Linux
The Linux kernel QCE CCM implementation can allocate an AAD buffer smaller than the length read by DMA. This can produce incorrect authentication tags and CCM self-test failures; the input does not specify an attack path, authentication requirement, or user interaction.
Engineers running Linux kernels with the QCE CCM implementation should check their deployments; affected versions are not specified.