# CVE-2026-63805: crypto: nx - fix nx_crypto_ctx_exit argument

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-07-19T12:02:09.669Z
- Modified: 2026-08-17T05:17:17.243Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from bfd9efddf990d152dc9912fdca520c5e1e19e1e2 before 8d8507a457667f23477a15496b91908a5b5b7cf3; from bfd9efddf990d152dc9912fdca520c5e1e19e1e2 before 833033e6e55acf11304ff7bbbdf18351d139c281; from bfd9efddf990d152dc9912fdca520c5e1e19e1e2 before 4e67f504ee9ded15e256b64f4fde150e917381d7; 5.5 (not affected: before 5.5; from 6.18.38 up to 6.18.*; from 7.1.3 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 5.5 before 6.18.38; from 6.19 before 7.1.3

## References

- <https://git.kernel.org/stable/c/8d8507a457667f23477a15496b91908a5b5b7cf3> (patch)
- <https://git.kernel.org/stable/c/833033e6e55acf11304ff7bbbdf18351d139c281> (patch)
- <https://git.kernel.org/stable/c/4e67f504ee9ded15e256b64f4fde150e917381d7> (patch)

## Sources

- CVE List: [CVE-2026-63805](https://www.cve.org/CVERecord?id=CVE-2026-63805), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-63805](https://nvd.nist.gov/vuln/detail/CVE-2026-63805), Public domain, modified 2026-08-17

---

Page: https://cve.day/CVE-2026-63805 · Whole record: https://cve.day/CVE-2026-63805.json · Rebuilt by cve.day 2026-11-25T22:59:28.720Z
