Description
In the Linux kernel, the following vulnerability has been resolved: crypto: essiv - fix use-after-free in AEAD path The request that ESSIV submits to its wrapped AEAD transform may finish before crypto_aead_encrypt() or crypto_aead_decrypt() returns. In case this happens, essiv_aead_done() calls aead_request_complete() on the original ESSIV request, which can end up freeing the request before essiv_aead_crypt() resumes, creating a UAF: BUG: KASAN: slab-use-after-free in essiv_aead_crypt+0x8e6/0x950 Read of size 8 at addr ffff888102af1360 by task init/66 Check the return status before dereferencing rctx after submitting that request. If the operation did not return -EINPROGRESS or -EBUSY, then the request cannot have been freed yet.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
be1eb7f78aa8fbe34779c56c266ccd0364604e71 to < 7bc21bd6c9c86d0e9be7c8e38f306df84cebfc33affectedbe1eb7f78aa8fbe34779c56c266ccd0364604e71 to < 10fac0aa92fd71eaac744cc7d44807f6514f73abaffectedbe1eb7f78aa8fbe34779c56c266ccd0364604e71 to < e46fad652d07a9dda4efda43b5be1344f8ef5bd9affectedbe1eb7f78aa8fbe34779c56c266ccd0364604e71 to < 052a1969e83f7fbf263126a8939fc4ea48c1d835affectedbe1eb7f78aa8fbe34779c56c266ccd0364604e71 to < ef857caf7f0ec6380d927b37a1b5378d0ac01e29affectedbe1eb7f78aa8fbe34779c56c266ccd0364604e71 to < e9ce64dce975a14700e835003847415e29918474affected
Linux Linux
Default version status: affected
5.4affected0 to < 5.4unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/7bc21bd6c9c86d0e9be7c8e38f306df84cebfc33 ↗
- https://git.kernel.org/stable/c/10fac0aa92fd71eaac744cc7d44807f6514f73ab ↗
- https://git.kernel.org/stable/c/e46fad652d07a9dda4efda43b5be1344f8ef5bd9 ↗
- https://git.kernel.org/stable/c/052a1969e83f7fbf263126a8939fc4ea48c1d835 ↗
- https://git.kernel.org/stable/c/ef857caf7f0ec6380d927b37a1b5378d0ac01e29 ↗
- https://git.kernel.org/stable/c/e9ce64dce975a14700e835003847415e29918474 ↗