# CVE-2023-54325: crypto: qat - fix out-of-bounds read

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; 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-28)
- **Published:** 2025-12-30T12:37:09.015Z
- **Modified:** 2026-08-05T09:19:16.226Z

## Who should check

- Anyone running Linux \>= 67916c9516893528ecce060ada1f58af0ce33d93, \< 7697139d5dfd491f4c495a914a1dd68f6e827a0f; \>= 67916c9516893528ecce060ada1f58af0ce33d93, \< dc3809f390357c8992f0a23083da934a20fef9af; \>= 67916c9516893528ecce060ada1f58af0ce33d93, \< 2b1501f058245573a3aa6bf234d205dde1196184; \>= 67916c9516893528ecce060ada1f58af0ce33d93, \< f6044cc3030e139f60c281386f28bda6e3049d66
- Anyone running Linux 5.11

## Description

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

crypto: qat - fix out-of-bounds read

When preparing an AER-CTR request, the driver copies the key provided by
the user into a data structure that is accessible by the firmware.
If the target device is QAT GEN4, the key size is rounded up by 16 since
a rounded up size is expected by the device.
If the key size is rounded up before the copy, the size used for copying
the key might be bigger than the size of the region containing the key,
causing an out-of-bounds read.

Fix by doing the copy first and then update the keylen.

This is to fix the following warning reported by KASAN:

	\[  138.150574\] BUG: KASAN: global-out-of-bounds in qat\_alg\_skcipher\_init\_com.isra.0+0x197/0x250 \[intel\_qat\]
	\[  138.150641\] Read of size 32 at addr ffffffff88c402c0 by task cryptomgr\_test/2340

	\[  138.150651\] CPU: 15 PID: 2340 Comm: cryptomgr\_test Not tainted 6.2.0-rc1+ \#45
	\[  138.150659\] Hardware name: Intel Corporation ArcherCity/ArcherCity, BIOS EGSDCRB1.86B.0087.D13.2208261706 08/26/2022
	\[  138.150663\] Call Trace:
	\[  138.150668\]  \<TASK\>
	\[  138.150922\]  kasan\_check\_range+0x13a/0x1c0
	\[  138.150931\]  memcpy+0x1f/0x60
	\[  138.150940\]  qat\_alg\_skcipher\_init\_com.isra.0+0x197/0x250 \[intel\_qat\]
	\[  138.151006\]  qat\_alg\_skcipher\_init\_sessions+0xc1/0x240 \[intel\_qat\]
	\[  138.151073\]  crypto\_skcipher\_setkey+0x82/0x160
	\[  138.151085\]  ? prepare\_keybuf+0xa2/0xd0
	\[  138.151095\]  test\_skcipher\_vec\_cfg+0x2b8/0x800

## Affected and fixed versions

- Linux: \>= 67916c9516893528ecce060ada1f58af0ce33d93, \< 7697139d5dfd491f4c495a914a1dd68f6e827a0f; \>= 67916c9516893528ecce060ada1f58af0ce33d93, \< dc3809f390357c8992f0a23083da934a20fef9af; \>= 67916c9516893528ecce060ada1f58af0ce33d93, \< 2b1501f058245573a3aa6bf234d205dde1196184; \>= 67916c9516893528ecce060ada1f58af0ce33d93, \< f6044cc3030e139f60c281386f28bda6e3049d66 (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-54325.md
Affected: Linux >= 67916c9516893528ecce060ada1f58af0ce33d93, < 7697139d5dfd491f4c495a914a1dd68f6e827a0f; >= 67916c9516893528ecce060ada1f58af0ce33d93, < dc3809f390357c8992f0a23083da934a20fef9af; >= 67916c9516893528ecce060ada1f58af0ce33d93, < 2b1501f058245573a3aa6bf234d205dde1196184; >= 67916c9516893528ecce060…
Fixed in: Linux 7697139d5dfd491f4c495a914a1dd68f6e827a0f, Linux 2b1501f058245573a3aa6bf234d205dde1196184

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-54325 being exploited?

There is no confirmed exploitation: CVE-2023-54325 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-28).

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

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

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

Linux \>= 67916c9516893528ecce060ada1f58af0ce33d93, \< 7697139d5dfd491f4c495a914a1dd68f6e827a0f; \>= 67916c9516893528ecce060ada1f58af0ce33d93, \< dc3809f390357c8992f0a23083da934a20fef9af; \>= 67916c9516893528ecce060ada1f58af0ce33d93, \< 2b1501f058245573a3aa6bf234d205dde1196184; \>= 67916c9516893528ecce060ada1f58af0ce33d93, \< f6044cc3030e139f60c281386f28bda6e3049d66; Linux 5.11.

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

Yes. Fixed in Linux 7697139d5dfd491f4c495a914a1dd68f6e827a0f, Linux 2b1501f058245573a3aa6bf234d205dde1196184. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/7697139d5dfd491f4c495a914a1dd68f6e827a0f>
- other: <https://git.kernel.org/stable/c/dc3809f390357c8992f0a23083da934a20fef9af>
- other: <https://git.kernel.org/stable/c/2b1501f058245573a3aa6bf234d205dde1196184>
- other: <https://git.kernel.org/stable/c/f6044cc3030e139f60c281386f28bda6e3049d66>

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

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