CVE-2023-53790
bpf: Zeroing allocated object from slab in bpf memory allocator
Mitigation
- Upgrade Linux to 997849c4b969034e225153f41026657def66d286 or later.
Who should check
- Anyone running Linux >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 678ea18d6240299fd77d7000c8b1d7e5f274c8af; >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 5d447e04290e78bdc1a3a6c321320d384e09c2f1; >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 997849c4b969034e225153f41026657def66d286
- Anyone running Linux 6.1
Vulnerability facts
- Affected
- Linux >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 678ea18d6240299fd77d7000c8b1d7e5f274c8af; >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 5d447e04290e78bdc1a3a6c321320d384e09c2f1; >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 997849c4b969034e225153f41026657def66d286; Linux 6.1
- Fixed in
- Linux 678ea18d6240299fd77d7000c8b1d7e5f274c8af, Linux 5d447e04290e78bdc1a3a6c321320d384e09c2f1, Linux 997849c4b969034e225153f41026657def66d286
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 678ea18d6240299fd77d7000c8b1d7e5f274c8af; >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 5d447e04290e78bdc1a3a6c321320d384e09c2f1; >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 997849c4b969034e225153f41026657def66d286 | — | cvelist |
| Linux | 6.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-53790. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-53790.md Affected: Linux >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 678ea18d6240299fd77d7000c8b1d7e5f274c8af; >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 5d447e04290e78bdc1a3a6c321320d384e09c2f1; >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 997849c4b969034e225153f41026657def66d286; Linux 6.1 Fixed in: Linux 678ea18d6240299fd77d7000c8b1d7e5f274c8af, Linux 5d447e04290e78bdc1a3a6c321320d384e09c2f1, Linux 997849c4b969034e225153f41026657def66d286 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.
References
FAQ
Is CVE-2023-53790 being exploited?
There is no confirmed exploitation: CVE-2023-53790 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-53790?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2023-53790?
Linux >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 678ea18d6240299fd77d7000c8b1d7e5f274c8af; >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 5d447e04290e78bdc1a3a6c321320d384e09c2f1; >= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, < 997849c4b969034e225153f41026657def66d286; Linux 6.1.
Is there a fix for CVE-2023-53790?
Yes. Fixed in Linux 678ea18d6240299fd77d7000c8b1d7e5f274c8af, Linux 5d447e04290e78bdc1a3a6c321320d384e09c2f1, Linux 997849c4b969034e225153f41026657def66d286. Upgrade Linux to 997849c4b969034e225153f41026657def66d286 or later.
How do I check if I'm affected by CVE-2023-53790?
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.