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 2084C392820 for ; Sun, 19 Jul 2026 12:04: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=1784462683; cv=none; b=Cr9fmCk2NLwnIcE8rP1kQNJ9ikOfYi77+bHrNuZKkurUDlgcPcvGVjXyK8jBDPrQem9PP1uMNFHWwA/RbBY4rHX+Apgwz2wnujL3+QBFWp0IU7JV1hDw0OxHbMlNo6f6suiat2vu/ck6647tg1HExAQwhZYNxdkBiTUIFwSyjME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462683; c=relaxed/simple; bh=SiNiC9dptd3iHJ3/W9dbOONMNZKfMB5muaKJO1UZYO4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rSSt2J8A8mwO0oZuKNA+LEWLS8pLODOl/6dbac7LVksSHM58VZH1g/cjUrBXhlpD3apS3AveccXHgvF/R3jQ/nfKq3Pd+kj7Kwf69AplBoKQ0i2b6jQ+TTQGtN+7z2NbNDo2ZJP+5BVlCpiT9jIG5p9dYiumLcKMv2rJr0uIfoY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Qo0t4RBN; 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="Qo0t4RBN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C5751F000E9; Sun, 19 Jul 2026 12:04:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784462682; bh=JHOCAbTAQmG5/CjLx4HTaeuYmd2De8mKQjiaVxThGWU=; h=From:To:Cc:Subject:Date:Reply-To; b=Qo0t4RBNYsMzRqvlrv6Z2Ced3CotYTOxlD+sCudmosh1o3vA/632yq7qPrY4K/Pu9 j16mXkRZqF69Nj7KW347rkKsrI6OcD2c1KJ02NoLpCaXxDVpA5xh3u+KkcAAkhJN+A Yq9UnjDYOvjFWDaTDSX2UZMhXGEC0mS/+wPjC7rQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63805: crypto: nx - fix nx_crypto_ctx_exit argument Date: Sun, 19 Jul 2026 14:02:22 +0200 Message-ID: <2026071902-CVE-2026-63805-118e@gregkh> X-Mailer: git-send-email 2.55.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=3130; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+yVcRn+RCw+Jrt5Cc5ACMgJOBI7zHB6I1CYqmNwR2es=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxe3Yxry/gtlmb0ix3UcjQ3K6x865l4oL5na7xffbCP SuiLlztiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkEVjAsaNg58ffcg+aCwrcN XNg4hLYttGFqZZjv9a0kZNr6SVcvBrlbfmaNiub5OEEJAA== 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: nx - fix nx_crypto_ctx_exit argument nx_crypto_ctx_shash_exit calls nx_crypto_ctx_exit with crypto_shash_ctx(...) but crypto_shash_ctx gives a nx_crypto_ctx *, not a crypto_tfm *. Fix the type in nx_crypto_ctx_exit and drop the bogus crypto_tfm_ctx call. This fixes the following oops: BUG: Unable to handle kernel data access at 0xc0403effffffffc8 Faulting instruction address: 0xc000000000396cb4 Oops: Kernel access of bad area, sig: 11 [#15] Call Trace: nx_crypto_ctx_shash_exit+0x24/0x60 crypto_shash_exit_tfm+0x28/0x40 crypto_destroy_tfm+0x98/0x140 crypto_exit_ahash_using_shash+0x20/0x40 crypto_destroy_tfm+0x98/0x140 hash_release+0x1c/0x30 alg_sock_destruct+0x38/0x60 __sk_destruct+0x48/0x2b0 af_alg_release+0x58/0xb0 __sock_release+0x68/0x150 sock_close+0x20/0x40 __fput+0x110/0x3a0 sys_close+0x48/0xa0 system_call_exception+0x140/0x2d0 system_call_common+0xf4/0x258 .. which came from hardlink(1) opportunistically using AF_ALG. The same problem exists with nx_crypto_ctx_skcipher_exit getting a context it wasn't expecting, but apparently nobody hit that for years. The Linux kernel CVE team has assigned CVE-2026-63805 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit bfd9efddf990d152dc9912fdca520c5e1e19e1e2 and fixed in 6.18.38 with commit 8d8507a457667f23477a15496b91908a5b5b7cf3 Issue introduced in 5.5 with commit bfd9efddf990d152dc9912fdca520c5e1e19e1e2 and fixed in 7.1.3 with commit 833033e6e55acf11304ff7bbbdf18351d139c281 Issue introduced in 5.5 with commit bfd9efddf990d152dc9912fdca520c5e1e19e1e2 and fixed in 7.2-rc1 with commit 4e67f504ee9ded15e256b64f4fde150e917381d7 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-63805 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: drivers/crypto/nx/nx.c drivers/crypto/nx/nx.h 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/8d8507a457667f23477a15496b91908a5b5b7cf3 https://git.kernel.org/stable/c/833033e6e55acf11304ff7bbbdf18351d139c281 https://git.kernel.org/stable/c/4e67f504ee9ded15e256b64f4fde150e917381d7