crypto: keembay - Fix AEAD unregister count in error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 88574332451380f4b51f6ca88ab9810e714bfb9b · < e264401ce4776a288524e5b87593d4d864147115| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
crypto: keembay - Fix AEAD unregister count in error path
register_aes_algs() registers the AEAD algorithms before registering the skcipher algorithms. If skcipher registration fails, the function unwinds the earlier AEAD registration with crypto_engine_unregister_aeads(), but it passes ARRAY_SIZE(algs), which is the skcipher table size.
Use ARRAY_SIZE(algs_aead) for the AEAD unwind path so the unregister helper iterates over the same table that was registered. Also clarify the nearby comment: the crypto registration helpers clean up algorithms registered within the same call, while this function must still unwind earlier successful registration steps.
From the CVE record · Linux
The Linux kernel's keembay crypto driver uses the skcipher table size when unregistering previously registered AEAD algorithms after skcipher registration fails. This can cause the unregister helper to iterate over the wrong number of entries. The input does not describe an attacker action or specify network access, authentication, or user interaction requirements.
Engineers running Linux kernels with the keembay crypto driver should check their versions; affected versions are not specified.