GPU VulnDB

Database/Kernel, userspace & hypervisor

Linux kernel BPF: bpf_snprintf_btf() on a BTF_KIND_VAR from base BTF NULL-derefs in btf_var_show()

UnscoredCVE-2026-98063Kernel, userspace & hypervisorcurated

Impact

btf_var_show() called btf_type_id_resolve() unconditionally, dereferencing btf->resolved_ids, which is NULL for base BTF such as the vmlinux BTF that bpf_snprintf_btf() renders against - btf_modifier_show() guards for this, btf_var_show() did not. A BPF program that hands the type_id of a vmlinux BTF variable to bpf_snprintf_btf() therefore crashes the kernel. The exposure is a host crash on a node loaded with BPF tooling: the running training or inference job on that GPU node dies and the node needs a reboot. Requires BPF load privilege, so the realistic source is a faulty or malicious observability agent rather than a tenant workload.

Who can reach it

Local, privileged: requires the ability to load and run a BPF program calling bpf_snprintf_btf() (CAP_BPF/CAP_SYS_ADMIN). No remote or unprivileged path.

What to do

Update to a stable kernel carrying the fix, which resolves the variable's type with btf_type_skip_modifiers() when resolved_ids is NULL, mirroring btf_modifier_show(). Requires a node reboot after drain. No vendor-supplied mitigation; in the meantime limit BPF program loading to trusted system components.

References

Related entries

All Kernel, userspace & hypervisor entries

This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.