Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FE3131F9B7 for ; Wed, 24 Jun 2026 16:37:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319026; cv=none; b=Y4pmEtW8wK9KUT7AodoUW/NMXm1ORYruqV6nNw7XdFVgolhMHR26eszOAMq+vFvc/OUfD1/Z8QUKX5QXrI+tJNv3liemLj1001+QJLYndtVdDRiIIhN0/juA/iBaJ9VPZ+Mr6mDPYqQBxWhMnn9wapq0ysEw4kw2hY9YR26nFNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319026; c=relaxed/simple; bh=cItvZOVtiWtDcgdvfF9/wl2Ko8VCjLXEGJJyc3EOFlk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fegL/Xo5OCp1qRrBJ/ndwOYPrSPGSRV5Ix3Q4xFH5I4sgunXVN8wh1MA+giKstNprJPmMKu1sz+Xs/ZrFnBOnJHxCpcs4fQ7C+A5YI7TpNPltCBXUoOEi4Rjdys6NJh6mcL4x1KUC3JSPetYJqLdIENrVkJ6ipkuAeml4AkNmvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q3W7kvS0; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="q3W7kvS0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 723B11F000E9; Wed, 24 Jun 2026 16:37:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782319022; bh=az/JxZ6YY5klUJ/0N5gAaflog6HcJ7Ewu0mh47lQHwE=; h=From:To:Cc:Subject:Date:Reply-To; b=q3W7kvS0mDY2RwZiN4lT5ViazjKJ3aob/pCVU6YotzYkgM5DBxnDPOIsBpflh6avB AUXFce7TGI0SfBAHzyMkAV0FZ437ryRWxNMtA5n4e/ykagaUE7P7U34Za+fNfsfFgQ eQKOcoglF8JZWgykbR9QegZy7yJpEzRvzQHM8fkw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53046: ksmbd: fix use-after-free from async crypto on Qualcomm crypto engine Date: Wed, 24 Jun 2026 17:31:10 +0100 Message-ID: <2026062458-CVE-2026-53046-39ee@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3857; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WeNwslf4AMoiIGk2dlfuRxm6M1eORev3XlF5MZpNAUI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bGw19ZfN1j6z588Jf9ex6wnfwgvG07MCrMMu5c+aO 1/9+RHZjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI3W6G+cUHtGS5D8WFtEW3 7zv2lLfw9om2ZIYFS74/WSNUuJRX42dPelPjPfe/mebrAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free from async crypto on Qualcomm crypto engine ksmbd_crypt_message() sets a NULL completion callback on AEAD requests and does not handle the -EINPROGRESS return code from async hardware crypto engines like the Qualcomm Crypto Engine (QCE). When QCE returns -EINPROGRESS, ksmbd treats it as an error and immediately frees the request while the hardware DMA operation is still in flight. The DMA completion callback then dereferences freed memory, causing a NULL pointer crash: pc : qce_skcipher_done+0x24/0x174 lr : vchan_complete+0x230/0x27c ... el1h_64_irq+0x68/0x6c ksmbd_free_work_struct+0x20/0x118 [ksmbd] ksmbd_exit_file_cache+0x694/0xa4c [ksmbd] Use the standard crypto_wait_req() pattern with crypto_req_done() as the completion callback, matching the approach used by the SMB client in fs/smb/client/smb2ops.c. This properly handles both synchronous engines (immediate return) and async engines (-EINPROGRESS followed by callback notification). The Linux kernel CVE team has assigned CVE-2026-53046 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 5.15.209 with commit 57b47231055b431ed0a1a55f33cac32981564405 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.1.175 with commit cc2da381875d4a67026e4c8feb3dba51a2a2d1bc Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.6.141 with commit 8fcefe840fa8c14ce667768e5b043286ac3bbcbe Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.12.91 with commit 8ef183216feaa24b66b940510d8b68f680eb56e9 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.18.33 with commit 7164b3953cefd540e7ebca828c793bc6869cfbc4 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.0.10 with commit b46aa129fa2807bfe1545fe74d9295d53c51520b Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.1 with commit 3e298897f41c61450c2e7a4f457e8b2485eb35b3 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-53046 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/smb/server/auth.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/57b47231055b431ed0a1a55f33cac32981564405 https://git.kernel.org/stable/c/cc2da381875d4a67026e4c8feb3dba51a2a2d1bc https://git.kernel.org/stable/c/8fcefe840fa8c14ce667768e5b043286ac3bbcbe https://git.kernel.org/stable/c/8ef183216feaa24b66b940510d8b68f680eb56e9 https://git.kernel.org/stable/c/7164b3953cefd540e7ebca828c793bc6869cfbc4 https://git.kernel.org/stable/c/b46aa129fa2807bfe1545fe74d9295d53c51520b https://git.kernel.org/stable/c/3e298897f41c61450c2e7a4f457e8b2485eb35b3