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-2024-42075

published high CVSS 3.1 · 7.8

bpf: Fix remap of arena.

Published
29 Jul 2024, 15:52:38 UTC
Updated
05 Aug 2026, 11:35:31 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux317460317a02a1af512697e6e964298dedd8a163 to < 87496a1b01e8e2e399428c0db25e106f7961d01e · 317460317a02a1af512697e6e964298dedd8a163 to < b90d77e5fd784ada62ddd714d15ee2400c28e1cf · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.9.8 through 6.9.* (unaffected · semver) · 6.10 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

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix remap of arena. The bpf arena logic didn't account for mremap operation. Add a refcnt for multiple mmap events to prevent use-after-free in arena_vm_close.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

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 through the bpf(2) syscall (map creation or BPF_OBJ_GET on a bpffs pin) followed by mmap()/mremap()/fork() on the arena map fd, all of which require local access to the system. There is no network-facing path into kernel/bpf/arena.c. AC:L - Triggering is fully deterministic with no race involved — mmap the arena, then either fork() and let both processes exit, or mremap() the VMA to a new address and unmap it, and arena_vm_close() runs twice on the same vma_list object. No unusual kernel config is needed since arena.c is built with CONFIG_BPF_SYSCALL. PR:L - The trigger (mmap/mremap/fork on an arena map fd) needs no privileges at all, and an fd can be obtained by an unprivileged process via a bpffs pin, since bpf_obj_do_get() gates only on path_permission() and bpf_map_mmap() performs no capability check. Arena map creation itself is reachable by an unprivileged user in a user namespace through a delegated BPF token (bpf_token_capable() uses ns_capable() against token->userns), which is the intended container delegation model shipped in the same release. UI:N - The attacking process performs every step itself — create/obtain the map fd, mmap, then fork or mremap and exit. No action by any other user or victim process is required. S:U - The corruption is confined to kernel slab memory and the BPF arena's own bookkeeping, all within the kernel's security authority. No VM, IOMMU, or sandbox boundary is crossed. C:H - The dangling vma_list pointer is dereferenced after being freed from the kmalloc-32 cache, so an attacker who reclaims the object with a heap spray gets the kernel reading and acting on attacker-shaped data, and the unlink write can be aimed to disclose arbitrary kernel memory. The corrupted arena->vma_list also breaks the liveness check in arena_map_free(), extending the exposure to arena-backed pages. I:H - The second arena_vm_close() performs list_del() on freed, attacker-reclaimable memory, giving the classic unlink write-what-where primitive with both the prev and next pointers under attacker control, and then kfree()s the object a second time. Combined, this yields arbitrary kernel memory write and a controlled double free, i.e. a realistic path to privilege escalation. A:H - Even without any exploitation attempt, the double free and use-after-free reliably produce slab corruption, list poison dereferences, and kernel panics (immediately so with KASAN, CONFIG_DEBUG_LIST, or CONFIG_LIST_HARDENED). An unprivileged local user can repeat this at will to crash the machine.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 317460317a02a1af512697e6e964298dedd8a163 to < 87496a1b01e8e2e399428c0db25e106f7961d01e (affected · git)317460317a02a1af512697e6e964298dedd8a163 to < b90d77e5fd784ada62ddd714d15ee2400c28e1cf (affected · git)Default: unaffected Linux · cna
Linux Linux 6.9 (affected)0 to < 6.9 (unaffected · semver)6.9.8 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

3

Linux · cna

bpf: Fix remap of arena.

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
9d47809d7e2cbb7c001f13a91c5e3e4809b1960ea0ea9fd29a8a4422bd204031
Ingested
23 Sep 2026, 08:26:31 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