AZL-118127: CVE-2026-143112 affecting package kernel 6.6.161.1-1
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 cryptoaeadencrypt() or cryptoaeaddecrypt() returns. In case this happens, essivaeaddone() calls aeadrequestcomplete() on the original ESSIV request, which can end up freeing the request before essivaeadcrypt() resumes, creating a UAF:
BUG: KASAN: slab-use-after-free in essivaeadcrypt+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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
After submitting the wrapped AEAD request, check its return status before dereferencing rctx. Treat the request as still pending only if the status is -EINPROGRESS or -EBUSY; otherwise, completion may have freed the original request.
Event History
Frequently Asked Questions
What conditions are required for the use-after-free to occur?
The issue occurs in the ESSIV AEAD encryption or decryption path when the wrapped AEAD request completes before crypto_aead_encrypt() or crypto_aead_decrypt() returns. Its completion handler can then complete and free the original ESSIV request while essiv_aead_crypt() is still executing.
How can I determine whether an affected system has encountered this issue?
The provided report shows KASAN detecting a slab use-after-free in essiv_aead_crypt. Systems with KASAN enabled may log a "BUG: KASAN: slab-use-after-free" report referencing essiv_aead_crypt when the condition is triggered.
What code behavior addresses the vulnerability?
After submitting the wrapped AEAD request, the return status must be checked before dereferencing the request context. A return value other than -EINPROGRESS or -EBUSY indicates that the request cannot yet have been freed.