# CVE-2023-53599: crypto: af\_alg - Fix missing initialisation affecting gcm-aes-s390

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-10-04T15:44:11.096Z
- **Modified:** 2026-08-05T09:15:02.975Z

## Who should check

- Anyone running Linux \>= c1abe6f570aff4b6d396dc551e60570d2f50bd79, \< 2c9d205040d7c0eaccc473917f9b0bb0a923e440; \>= c1abe6f570aff4b6d396dc551e60570d2f50bd79, \< 6a4b8aa0a916b39a39175584c07222434fa6c6ef
- Anyone running Linux 6.5

## 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\]

## Affected and fixed versions

- Linux: \>= c1abe6f570aff4b6d396dc551e60570d2f50bd79, \< 2c9d205040d7c0eaccc473917f9b0bb0a923e440; \>= c1abe6f570aff4b6d396dc551e60570d2f50bd79, \< 6a4b8aa0a916b39a39175584c07222434fa6c6ef (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 6a4b8aa0a916b39a39175584c07222434fa6c6ef or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53599. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53599.md
Affected: Linux >= c1abe6f570aff4b6d396dc551e60570d2f50bd79, < 2c9d205040d7c0eaccc473917f9b0bb0a923e440; >= c1abe6f570aff4b6d396dc551e60570d2f50bd79, < 6a4b8aa0a916b39a39175584c07222434fa6c6ef; Linux 6.5
Fixed in: Linux 2c9d205040d7c0eaccc473917f9b0bb0a923e440, Linux 6a4b8aa0a916b39a39175584c07222434fa6c6ef

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53599 being exploited?

There is no confirmed exploitation: CVE-2023-53599 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53599?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53599?

Linux \>= c1abe6f570aff4b6d396dc551e60570d2f50bd79, \< 2c9d205040d7c0eaccc473917f9b0bb0a923e440; \>= c1abe6f570aff4b6d396dc551e60570d2f50bd79, \< 6a4b8aa0a916b39a39175584c07222434fa6c6ef; Linux 6.5.

### Is there a fix for CVE-2023-53599?

Yes. Fixed in Linux 2c9d205040d7c0eaccc473917f9b0bb0a923e440, Linux 6a4b8aa0a916b39a39175584c07222434fa6c6ef. Upgrade Linux to 6a4b8aa0a916b39a39175584c07222434fa6c6ef or later.

### How do I check if I'm affected by CVE-2023-53599?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53599>

HTML: <https://flawdb.com/CVE-2023-53599> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53599>
