CVE-2023-53790
Last modified
CVE-2023-53790 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: bpf: Zeroing allocated object from slab in bpf memory allocator Currently the freed element in bpf memory allocator may be immediately reused, for htab map the reuse will reinitialize special fields in map value (e.g., bpf_spin_lock), but lookup procedure may still access these special fields, and it may lead to hard-lockup as shown below: NMI backtrace for cpu 16 CPU: 16 PID: 2574 Comm: htab.bin Tainted: G L 6.1.0+ #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), RIP: 0010:queued_spin_lock_slowpath+0x283/0x2c0 ...... Call Trace: <TASK> copy_map_value_locked+0xb7/0x170 bpf_map_copy_value+0x113/0x3c0 __sys_bpf+0x1c67/0x2780 __x64_sys_bpf+0x1c/0x20 do_syscall_64+0x30/0x60 entry_SYSCALL_64_after_hwframe+0x46/0xb0 ...... </TASK> For htab map, just like the preallocated case, these is no need to initialize these special fields in map value again once these fields have been initialized. For preallocated htab map, these fields are initialized through __GFP_ZERO in bpf_map_area_alloc(), so do the similar thing for non-preallocated htab in bpf memory allocator. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Zeroing allocated object from slab in bpf memory allocator Currently the freed element in bpf memory allocator may be immediately reused, for htab map the reuse will reinitialize special fields in map value (e.g., bpf_spin_lock), but lookup procedure may still access these special fields, and it may lead to hard-lockup as shown below: NMI backtrace for cpu 16 CPU: 16 PID: 2574 Comm: htab.bin Tainted: G L 6.1.0+ #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), RIP: 0010:queued_spin_lock_slowpath+0x283/0x2c0 ...... Call Trace: <TASK> copy_map_value_locked+0xb7/0x170 bpf_map_copy_value+0x113/0x3c0 __sys_bpf+0x1c67/0x2780 __x64_sys_bpf+0x1c/0x20 do_syscall_64+0x30/0x60 entry_SYSCALL_64_after_hwframe+0x46/0xb0 ...... </TASK> For htab map, just like the preallocated case, these is no need to initialize these special fields in map value again once these fields have been initialized. For preallocated htab map, these fields are initialized through __GFP_ZERO in bpf_map_area_alloc(), so do the similar thing for non-preallocated htab in bpf memory allocator. And there is no need to use __GFP_ZERO for per-cpu bpf memory allocator, because __alloc_percpu_gfp() does it implicitly.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 678ea18d6240299fd77d7000c8b1d7e5f274c8af; >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 5d447e04290e78bdc1a3a6c321320d384e09c2f1; >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 997849c4b969034e225153f41026657def66d286 |
| Linux | Linux | 6.1 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2023-53790?
How severe is CVE-2023-53790?
How do I fix CVE-2023-53790?
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-53785In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2023-53786In the Linux kernel, the following vulnerability has been re…
- CVE-2023-53787In the Linux kernel, the following vulnerability has been re…
- CVE-2023-53788In the Linux kernel, the following vulnerability has been re…
- CVE-2023-53789In the Linux kernel, the following vulnerability has been re…
- CVE-2023-5379A flaw was found in Undertow. When an AJP request is sent th…7.5
- CVE-2023-53791In the Linux kernel, the following vulnerability has been re…
- CVE-2023-53792In the Linux kernel, the following vulnerability has been re…
- CVE-2023-53793In the Linux kernel, the following vulnerability has been re…
- CVE-2023-53794In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2023-53795In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-53796In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2023-53790?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
