diff options
author | Benoît Ganne <bganne@cisco.com> | 2022-01-18 15:56:41 +0100 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2023-02-03 21:04:24 -0500 |
commit | 9b8dc82531d9cbe5859488a886405a69b163f8a7 (patch) | |
tree | 62456aa3304aa68d4323bc665628cbee9fa4475d /src/plugins/nat/det44 | |
parent | d03b3bf62fdcf855d493653fc410c6bf839d6393 (diff) |
ipsec: fix AES CBC IV generation (CVE-2022-46397)
For AES-CBC, the IV must be unpredictable (see NIST SP800-38a Appendix
C). Chaining IVs like is done by ipsecmb and native backends for the
VNET_CRYPTO_OP_FLAG_INIT_IV is fully predictable.
Encrypt a counter as part of the message, making the (predictable)
counter-generated IV unpredictable.
Fixes: VPP-2037
Type: fix
Change-Id: If4f192d62bf97dda553e7573331c75efa11822ae
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/nat/det44')
0 files changed, 0 insertions, 0 deletions