crypto: authencesn - reject too-short AAD (assoclen<8) to match ESP/ESN spec
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 104880a6b470958ddc30e139c41aa4f6ed3a5234 · < 9532ff0d0e90ff78a214299f594ab9bac81defe4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
crypto: authencesn - reject too-short AAD (assoclen<8) to match ESP/ESN spec
authencesn assumes an ESP/ESN-formatted AAD. When assoclen is shorter than the minimum expected length, crypto_authenc_esn_decrypt() can advance past the end of the destination scatterlist and trigger a NULL pointer dereference in scatterwalk_map_and_copy(), leading to a kernel panic (DoS).
Add a minimum AAD length check to fail fast on invalid inputs.
From the CVE record · Linux
The Linux kernel's crypto authencesn code does not reject ESP/ESN-associated data shorter than eight bytes. Processing such input during decryption can trigger a NULL pointer dereference and kernel panic, causing a denial of service. The input does not specify whether exploitation requires network or local access, authentication, or user interaction.
Engineers running the Linux kernel should check whether their version is affected; affected versions are not specified.