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-2026-45951

published high CVSS 3.1 · 7.8

bpf: Fix a potential use-after-free of BTF object

Published
27 May 2026, 12:18:07 UTC
Updated
05 Aug 2026, 12:28:53 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux76145f7255326761dafb76721a785799d8a00d5f to < eac65c272f3b49021a843cba5107d63627395e0e · 76145f7255326761dafb76721a785799d8a00d5f to < 9ff46ffeecdb1802d6e26183177935b948a12e7f · 76145f7255326761dafb76721a785799d8a00d5f to < ccd2d799ed4467c07f5ee18c2f5c59bcc990822c · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.14 (affected) · 0 to < 6.14 (unaffected · semver) · 6.18.14 through 6.18.* (unaffected · semver) · 6.19.4 through 6.19.* (unaffected · semver) · 7.0 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-2026-1514 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 kernel6.18aarch64 Listed in advisory Not stated ALAS2023-2026-1514
Amazon Linux AL2023 kernel6.18src Listed in advisory Not stated ALAS2023-2026-1514
Amazon Linux AL2023 kernel6.18x86_64 Listed in advisory Not stated ALAS2023-2026-1514

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix a potential use-after-free of BTF object Refcounting in the check_pseudo_btf_id() function is incorrect: the __check_pseudo_btf_id() function might get called with a zero refcounted btf. Fix this, and patch related code accordingly. v3: rephrase a comment (AI) v2: fix a refcount leak introduced in v1 (AI)

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 only through the local bpf() syscall (BPF_PROG_LOAD verifying a BPF_PSEUDO_BTF_ID ldimm64 instruction); there is no network, adjacent, or physical input path. AC:L - Triggering the UAF requires racing a concurrent close of the BTF fd against the verifier, but the attacker controls both sides (loading thread and closing thread) and can retry/heap-spray indefinitely, so per kernel guidance an attacker-created race is Low. PR:L - Obtaining a BTF fd (BPF_BTF_LOAD) and loading the program both require CAP_BPF, which can be delegated to a non-init user namespace via BPF token/bpffs in reasonable container deployments, making this reachable to a non-host-root local user. UI:N - The attacker performs the entire attack themselves by issuing bpf() syscalls and closing the fd; no victim action is required. S:U - The use-after-free and its consequences are confined to the kernel's own memory and security authority; no boundary such as VM or IOMMU is crossed. C:H - The freed BTF object is dereferenced (type/name/kallsyms lookups) and can be reallocated with attacker-controlled data, giving a kernel-memory read primitive characteristic of a use-after-free. I:H - The UAF causes a refcount increment on freed memory and stores a dangling btf pointer into env->used_btfs[] that is used later, enabling heap grooming and type confusion that can be leveraged into a write/control-flow primitive. A:H - Dereferencing the freed BTF object reliably crashes the kernel (oops/panic), so availability impact is High.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 76145f7255326761dafb76721a785799d8a00d5f to < eac65c272f3b49021a843cba5107d63627395e0e (affected · git)76145f7255326761dafb76721a785799d8a00d5f to < 9ff46ffeecdb1802d6e26183177935b948a12e7f (affected · git)76145f7255326761dafb76721a785799d8a00d5f to < ccd2d799ed4467c07f5ee18c2f5c59bcc990822c (affected · git)Default: unaffected Linux · cna
Linux Linux 6.14 (affected)0 to < 6.14 (unaffected · semver)6.18.14 through 6.18.* (unaffected · semver)6.19.4 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

bpf: Fix a potential use-after-free of BTF object

Provenance

Schema
5.2
Searchable
yes
Content hash
bbf4658d7e398ebda5f01086f6913e0ea721e64ea786b78139c5a2f763687b42
Ingested
23 Sep 2026, 09:15:56 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