CVE-2023-54325
Last modified
CVE-2023-54325 is a high-severity vulnerability rated 7.1/10 on the CVSS scale. 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. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
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
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 67916c9516893528ecce060ada1f58af0ce33d93, < 7697139d5dfd491f4c495a914a1dd68f6e827a0f; >= 67916c9516893528ecce060ada1f58af0ce33d93, < dc3809f390357c8992f0a23083da934a20fef9af; >= 67916c9516893528ecce060ada1f58af0ce33d93, < 2b1501f058245573a3aa6bf234d205dde1196184; >= 67916c9516893528ecce060ada1f58af0ce33d93, < f6044cc3030e139f60c281386f28bda6e3049d66 |
| Linux | Linux | 5.11 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2023-54325?
How severe is CVE-2023-54325?
How do I fix CVE-2023-54325?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-5432The Jquery news ticker plugin for WordPress is vulnerable to…5.4
- CVE-2023-54320In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54321In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-54322In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54323In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54324In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54326In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-54327Tinycontrol LAN Controller 1.58a contains an authentication …9.8
- CVE-2023-54328AimOne Video Converter 2.04 Build 103 contains a buffer over…6.5
- CVE-2023-54329Inbit Messenger 4.6.0 - 4.9.0 contains a remote command exec…9.8
- CVE-2023-5433The Message ticker plugin for WordPress is vulnerable to SQL…6.5
- CVE-2023-54330Inbit Messenger versions 4.6.0 to 4.9.0 contain a remote sta…9.8
Are you affected by CVE-2023-54325?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
