Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-53790

published high CVSS 3.1 · 7.8

bpf: Zeroing allocated object from slab in bpf memory allocator

Published
09 Dec 2025, 00:00:47 UTC
Updated
15 Oct 2026, 21:41:36 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0fd7c5d43339b783ee3301a05f925d1e52ac87c9 to < 678ea18d6240299fd77d7000c8b1d7e5f274c8af · 0fd7c5d43339b783ee3301a05f925d1e52ac87c9 to < 5d447e04290e78bdc1a3a6c321320d384e09c2f1 · 0fd7c5d43339b783ee3301a05f925d1e52ac87c9 to < 997849c4b969034e225153f41026657def66d286 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.1 (affected) · 0 to < 6.1 (unaffected · semver) · 6.1.16 through 6.1.* (unaffected · semver) · 6.2.3 through 6.2.* (unaffected · semver) · 6.3 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2023-138 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 kernelaarch64 Listed in advisory Not stated ALAS2023-2023-138
Amazon Linux AL2023 kernelsrc Listed in advisory Not stated ALAS2023-2023-138
Amazon Linux AL2023 kernelx86_64 Listed in advisory Not stated ALAS2023-2023-138

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerability is reached exclusively through the `bpf(2)` syscall (map create/update/delete/lookup) or through a loaded BPF program calling `bpf_obj_new()`, both of which require local access to the system. There is no remote or adjacent-network path into the BPF memory allocator. AC:L - The attacker controls both sides of the race — one thread issuing `BPF_MAP_LOOKUP_ELEM` with `BPF_F_LOCK` while another deletes and re-adds the same key — and `unit_free`/`unit_alloc` recycle the element off the per-CPU `free_llist` with no grace period, so reuse is deterministic and can be forced by CPU pinning. The separate uninitialized-slab exposure via `bpf_obj_new()` requires no race whatsoever. PR:L - Creating a non-preallocated hash map whose BTF value embeds a `bpf_spin_lock` requires `bpf_capable()` (CAP_BPF), a capability routinely delegated to unprivileged BPF agents, container workloads and systemd services rather than reserved for full root. No further authentication or map-specific access control gates the update/delete/lookup calls once the attacker holds its own map fd. UI:N - The attacker drives the entire sequence — map creation, the concurrent update/delete threads, and the locked lookup — from its own processes. No victim action, mount, or file open is involved. S:U - The corruption stays inside the kernel's own memory and the BPF subsystem's structures, with no crossing of a VM, IOMMU, or other security-authority boundary. This is a standard same-authority kernel flaw. C:H - Without `__GFP_ZERO`, `bpf_obj_new_impl()` handed BPF programs slab objects still holding stale kernel heap contents that the program can read wholesale and exfiltrate via ringbuf or map, a broad kernel memory disclosure. The concurrent zeroing of kptr fields racing `bpf_kptr_xchg` can additionally surface stale object references usable for further reads. I:H - Zeroing a live queued spinlock destroys the mutual exclusion that the verifier assumes for `bpf_list_head` and `bpf_rb_root` operations, allowing concurrent linked-list and rbtree manipulation that corrupts kernel pointers, and the non-atomic reinitialization of kptr fields can drop or duplicate references. Such heap and refcount corruption is leverageable toward arbitrary write and control-flow hijack. A:H - The commit documents the concrete outcome: a hard lockup with a CPU stuck indefinitely in `queued_spin_lock_slowpath` under an NMI watchdog backtrace, unrecoverable without a reboot. An unprivileged-BPF-capable attacker can trigger it repeatedly at will.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0fd7c5d43339b783ee3301a05f925d1e52ac87c9 to < 678ea18d6240299fd77d7000c8b1d7e5f274c8af (affected · git)0fd7c5d43339b783ee3301a05f925d1e52ac87c9 to < 5d447e04290e78bdc1a3a6c321320d384e09c2f1 (affected · git)0fd7c5d43339b783ee3301a05f925d1e52ac87c9 to < 997849c4b969034e225153f41026657def66d286 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.1 (affected)0 to < 6.1 (unaffected · semver)6.1.16 through 6.1.* (unaffected · semver)6.2.3 through 6.2.* (unaffected · semver)6.3 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

2

Linux · cna

bpf: Zeroing allocated object from slab in bpf memory allocator

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
25cf43fa0845b374fcf6be49a354897d6a23e01cedf2c0004d41ac23fc148a39
Ingested
15 Oct 2026, 23:26:24 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected