Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix NULL-ptr-deref in btf_var_show()

btf_var_show() calls btf_type_id_resolve() unconditionally, which
dereferences btf->resolved_ids. That is NULL for a base BTF - e.g. the
vmlinux BTF that bpf_snprintf_btf() renders against - since base BTF is
not resolved during parsing. btf_modifier_show() guards this with
'if (btf->resolved_ids)', but btf_var_show() does not.

A BPF program that passes the type_id of a BTF_KIND_VAR from the vmlinux
BTF to bpf_snprintf_btf() thus NULL-derefs:

KASAN: probably user-memory-access in range [0x46638-0x4663f]
RIP: 0010:btf_var_show (kernel/bpf/btf.c:2929)
Call Trace:
<TASK>
btf_type_show (kernel/bpf/btf.c:8259)
btf_type_snprintf_show (kernel/bpf/btf.c:8329)
bpf_snprintf_btf (kernel/trace/bpf_trace.c:1047)
bpf_prog_test_run_raw_tp (net/bpf/test_run.c:829)
__sys_bpf (kernel/bpf/syscall.c:4804)
do_syscall_64 (arch/x86/entry/syscall_64.c:84)
entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)
</TASK>

Resolve the var's type directly with btf_type_skip_modifiers() when
resolved_ids is NULL, mirroring btf_modifier_show().
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via kernel crash
Action: Apply Patch
AI Analysis

Impact

A NULL pointer dereference occurs in the BPF field‑type display routine when the BTF (BPF Type Format) structure supplies an unresolved type table. If a BPF program supplies a type identifier for a BTF_KIND_VAR from the system’s base BTF to the kernel’s print routine, the kernel dereferences a null pointer in btf_var_show, causing a kernel crash and system stop or reboot. The crash manifests as a KASAN error indicating a user-memory-access violation. This denial‑of‑service flaw occurs within kernel space, affecting the integrity and availability of the affected system.

Affected Systems

The vulnerability is present in any Linux kernel version that contains the unguarded btf_var_show implementation and does not yet include the fix that checks for a NULL resolved_ids pointer. Exact kernel versions are not listed in the CVE data; therefore, any distribution running an unpatched kernel prior to the upstream commit is potentially impacted. Users should verify whether their installed kernel includes the patch that adds the guard for missing resolved identifiers.

Risk and Exploitability

The CVSS score of 5.5 and EPSS score of < 1% indicate a moderate severity and a low probability of exploitation. Exploitation requires the ability to load or execute BPF programs that reference a base BTF variable; such programs are typically allowed for privileged or local users. The vulnerability is not listed in the CISA KEV catalog. While no public exploit is available, a successful crash is a straightforward denial-of-service gain. The likelihood of exploitation is inferred to be low unless an attacker already has the capability to load BPF programs on the target system.

Generated by OpenCVE AI on September 30, 2026 at 09:28 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that contains the bpf null‑pointer dereference fix; the upstream patch adds a guard for resolved_ids in btf_var_show.
  • If an up‑to‑date kernel is not available from your distribution, backport the relevant upstream commits that implement the resolved_ids check or use a newer ancestor kernel from a trusted source.
  • Restrict the ability to load user-space BPF programs by applying local policy or removing the CONFIG_BPF capability from untrusted users; disabling BPF altogether is a temporary mitigation that limits the attack surface.

Generated by OpenCVE AI on September 30, 2026 at 09:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4841-1 linux security update
Debian DSA Debian DSA DSA-6528-1 linux security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
History

Sat, 03 Oct 2026 11:15:00 +0000


Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 25 Sep 2026 16:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Fix NULL-ptr-deref in btf_var_show() btf_var_show() calls btf_type_id_resolve() unconditionally, which dereferences btf->resolved_ids. That is NULL for a base BTF - e.g. the vmlinux BTF that bpf_snprintf_btf() renders against - since base BTF is not resolved during parsing. btf_modifier_show() guards this with 'if (btf->resolved_ids)', but btf_var_show() does not. A BPF program that passes the type_id of a BTF_KIND_VAR from the vmlinux BTF to bpf_snprintf_btf() thus NULL-derefs: KASAN: probably user-memory-access in range [0x46638-0x4663f] RIP: 0010:btf_var_show (kernel/bpf/btf.c:2929) Call Trace: <TASK> btf_type_show (kernel/bpf/btf.c:8259) btf_type_snprintf_show (kernel/bpf/btf.c:8329) bpf_snprintf_btf (kernel/trace/bpf_trace.c:1047) bpf_prog_test_run_raw_tp (net/bpf/test_run.c:829) __sys_bpf (kernel/bpf/syscall.c:4804) do_syscall_64 (arch/x86/entry/syscall_64.c:84) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) </TASK> Resolve the var's type directly with btf_type_skip_modifiers() when resolved_ids is NULL, mirroring btf_modifier_show().
Title bpf: Fix NULL-ptr-deref in btf_var_show()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:13:13.031Z

Reserved: 2026-09-25T10:19:56.073Z

Link: CVE-2026-98063

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-09-25T11:17:35.327

Modified: 2026-10-19T10:18:00.800

Link: CVE-2026-98063

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98063 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T09:30:18Z

Weaknesses