# CVE-2023-53790: bpf: Zeroing allocated object from slab in bpf memory allocator

> 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-12-09T00:00:47.025Z
- **Modified:** 2026-10-15T22:17:48.733Z

## Who should check

- Anyone running Linux \>= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, \< 678ea18d6240299fd77d7000c8b1d7e5f274c8af; \>= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, \< 5d447e04290e78bdc1a3a6c321320d384e09c2f1; \>= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, \< 997849c4b969034e225153f41026657def66d286
- Anyone running Linux 6.1

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

- Linux: \>= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, \< 678ea18d6240299fd77d7000c8b1d7e5f274c8af; \>= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, \< 5d447e04290e78bdc1a3a6c321320d384e09c2f1; \>= 0fd7c5d43339b783ee3301a05f925d1e52ac87c9, \< 997849c4b969034e225153f41026657def66d286 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 997849c4b969034e225153f41026657def66d286 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-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.
```

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

## References

- other: <https://git.kernel.org/stable/c/678ea18d6240299fd77d7000c8b1d7e5f274c8af>
- other: <https://git.kernel.org/stable/c/5d447e04290e78bdc1a3a6c321320d384e09c2f1>
- other: <https://git.kernel.org/stable/c/997849c4b969034e225153f41026657def66d286>

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

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