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 C742A409627 for ; Wed, 27 May 2026 13:06:42 +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=1779887203; cv=none; b=nSprVAI6vHXjWxovDBRjYRS8bcxyl16E4MP0rc9fr3JH9HMjgWSQrMOCXgkFc+lUZcRxv1SPXRx1oBl8qxt84O1JA0ubzDLgzERa+8ClSuopYbV911lG/LG6xocAGTChxzd2tG7U1mpiWZudzDA/h8bhYd2th89+S2H+dXU7sQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887203; c=relaxed/simple; bh=TDPn+PLTunpqU8v6hgQ/27uKQ+nOgUjpJawSDrNV5XU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pAXZ0btEYDjkGt+EzpVA4DzqvKiTjUT1nBSBybvCUksOtxwzZLe+OEwg4Ofc/sOhVBdWuIul6mviACEWOzk7Xs3l1MOx/C/Qnz+QgQSnVozls62Od0NkK7u/qtEBWZ9pYMxsSMex5M0r2gdG3zk43hsz0/II3maF4AoFRyjI2c8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R6Bj+odw; 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="R6Bj+odw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23BF51F00A3A; Wed, 27 May 2026 13:06:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887202; bh=vJPDsJUudRe88h/LDzKisf0PQCtz7jncJrAOHXFJMVE=; h=From:To:Cc:Subject:Date:Reply-To; b=R6Bj+odwNc7qPtQwvaHkL/+3oJNrotsY5A8nZhgTDuuvtE1MlP7E2v2QIFRZiwurk 19TBHsP/PdPKU8N+PJ+po4dTnBce9s8PtWbi3x/bpJ5dq0CRlunrAD1KaiEU/7FgIJ paCkyapKz0tLC5CAcw3c79KxFlfuNrk02GQ4fZYk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46081: crypto: acomp - fix wrong pointer stored by acomp_save_req() Date: Wed, 27 May 2026 15:00:12 +0200 Message-ID: <2026052700-CVE-2026-46081-dd38@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=3480; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w5oqcbxnbXuLI5nb4My2OwQhu3qUH+l5j6U/xMhgn74=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir6Y84dpnrjOdu+K0+1TNOfXnMvab+NxK4KltC1lto rPcLrW9I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZyVYphnt7Ug8kX/h58cK1T NuH439WH/heb8zAsOCK3Z0F76OmfRpOEDl7ln8ap+/X9VAA= 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: crypto: acomp - fix wrong pointer stored by acomp_save_req() acomp_save_req() stores &req->chain in req->base.data. When acomp_reqchain_done() is invoked on asynchronous completion, it receives &req->chain as the data argument but casts it directly to struct acomp_req. Since data points to the chain member, all subsequent field accesses are at a wrong offset, resulting in memory corruption. The issue occurs when an asynchronous hardware implementation, such as the QAT driver, completes a request that uses the DMA virtual address interface (e.g. acomp_request_set_src_dma()). This combination causes crypto_acomp_compress() to enter the acomp_do_req_chain() path, which sets acomp_reqchain_done() as the completion callback via acomp_save_req(). With KASAN enabled, this manifests as a general protection fault in acomp_reqchain_done(): general protection fault, probably for non-canonical address 0xe000040000000000 KASAN: probably user-memory-access in range [0x0000400000000000-0x0000400000000007] RIP: 0010:acomp_reqchain_done+0x15b/0x4e0 Call Trace: qat_comp_alg_callback+0x5d/0xa0 [intel_qat] adf_ring_response_handler+0x376/0x8b0 [intel_qat] adf_response_handler+0x60/0x170 [intel_qat] tasklet_action_common+0x223/0x820 handle_softirqs+0x1ab/0x640 Fix this by storing the request itself in req->base.data instead of &req->chain, so that acomp_reqchain_done() receives the correct pointer. Simplify acomp_restore_req() accordingly to access req->chain directly. The Linux kernel CVE team has assigned CVE-2026-46081 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 64929fe8c0a43508eee952cf57903a61c52601e7 and fixed in 6.18.27 with commit 343a5bf68a8ff9affcf2b70677ea4cf40c195ee4 Issue introduced in 6.16 with commit 64929fe8c0a43508eee952cf57903a61c52601e7 and fixed in 7.0.4 with commit 1a2785e5985627f2265ba7775949601a29ba0d1e Issue introduced in 6.16 with commit 64929fe8c0a43508eee952cf57903a61c52601e7 and fixed in 7.1-rc1 with commit d7e20b9bd6c990773cf0c09e2642250b8a70263d 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-46081 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: crypto/acompress.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/343a5bf68a8ff9affcf2b70677ea4cf40c195ee4 https://git.kernel.org/stable/c/1a2785e5985627f2265ba7775949601a29ba0d1e https://git.kernel.org/stable/c/d7e20b9bd6c990773cf0c09e2642250b8a70263d