CVE-2023-53494: crypto: xts - Handle EBUSY correctly
JIRA: https://issues.redhat.com/browse/RHEL-119237
CVE: CVE-2023-53494
commit 51c082514c2dedf2711c99d93c196cc4eedceb40
Author: Herbert Xu <herbert@gondor.apana.org.au>
Date: Sun Jan 22 16:07:37 2023 +0800
crypto: xts - Handle EBUSY correctly
As it is xts only handles the special return value of EINPROGRESS,
which means that in all other cases it will free data related to the
request.
However, as the caller of xts may specify MAY_BACKLOG, we also need
to expect EBUSY and treat it in the same way. Otherwise backlogged
requests will trigger a use-after-free.
Fixes: 8083b1bf8163 ("crypto: xts - add support for ciphertext stealing")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: CKI Backport Bot cki-ci-bot+cki-gitlab-backport-bot@redhat.com
Created 2025-10-03 16:31 UTC by backporter - KWF FAQ - Slack #team-kernel-workflow - Source - Documentation - Report an issue