# CVE-2023-53599: crypto: af_alg - Fix missing initialisation affecting gcm-aes-s390

- 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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2025-10-04T15:44:11.096Z
- Modified: 2026-08-05T09:15:02.975Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

crypto: af_alg - Fix missing initialisation affecting gcm-aes-s390

Fix af_alg_alloc_areq() to initialise areq->first_rsgl.sgl.sgt.sgl to point
to the scatterlist array in areq->first_rsgl.sgl.sgl.

Without this, the gcm-aes-s390 driver will oops when it tries to do
gcm_walk_start() on req->dst because req->dst is set to the value of
areq->first_rsgl.sgl.sgl by _aead_recvmsg() calling
aead_request_set_crypt().

The problem comes if an empty ciphertext is passed: the loop in
af_alg_get_rsgl() just passes straight out and doesn't set areq->first_rsgl
up.

This isn't a problem on x86_64 using gcmaes_crypt_by_sg() because, as far
as I can tell, that ignores req->dst and only uses req->src[*].

[*] Is this a bug in aesni-intel_glue.c?

The s390x oops looks something like:

 Unable to handle kernel pointer dereference in virtual kernel address space
 Failing address: 0000000a00000000 TEID: 0000000a00000803
 Fault in home space mode while using kernel ASCE.
 AS:00000000a43a0007 R3:0000000000000024
 Oops: 003b ilc:2 [#1] SMP
 ...
 Call Trace:
  [<000003ff7fc3d47e>] gcm_walk_start+0x16/0x28 [aes_s390]
  [<00000000a2a342f2>] crypto_aead_decrypt+0x9a/0xb8
  [<00000000a2a60888>] aead_recvmsg+0x478/0x698
  [<00000000a2e519a0>] sock_recvmsg+0x70/0xb0
  [<00000000a2e51a56>] sock_read_iter+0x76/0xa0
  [<00000000a273e066>] vfs_read+0x26e/0x2a8
  [<00000000a273e8c4>] ksys_read+0xbc/0x100
  [<00000000a311d808>] __do_syscall+0x1d0/0x1f8
  [<00000000a312ff30>] system_call+0x70/0x98
 Last Breaking-Event-Address:
  [<000003ff7fc3e6b4>] gcm_aes_crypt+0x104/0xa68 [aes_s390]

(As written by CVE List.)

## Affected

- Linux Linux: from c1abe6f570aff4b6d396dc551e60570d2f50bd79 before 2c9d205040d7c0eaccc473917f9b0bb0a923e440; from c1abe6f570aff4b6d396dc551e60570d2f50bd79 before 6a4b8aa0a916b39a39175584c07222434fa6c6ef; 6.5 (not affected: before 6.5; from 6.5.3 up to 6.5.*; from 6.6 up to *)
- linux linux_kernel: from 6.5 before 6.5.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/2c9d205040d7c0eaccc473917f9b0bb0a923e440> (patch)
- <https://git.kernel.org/stable/c/6a4b8aa0a916b39a39175584c07222434fa6c6ef> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-53599 · Whole record: https://cve.day/CVE-2023-53599.json · Rebuilt by cve.day 2026-11-25T22:58:34.961Z
