cvelo
P3 · MediumCVSS 5.5EPSS 0.1%

CVE-2026-98063

  • CVE-2026-98063

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().

Text from the NVD record.

Recommendation

  • linux linux kernel

    • If you run a version from 6.19 to before 7.2.7update to 7.2.7 or laterMajor version change: expect breaking changes
    • If you run a version from 6.13 to before 6.18.53update to 6.18.53 or laterMinor version change: check the release notes
    • If you run a version from 6.7 to before 6.12.111update to 6.12.111 or laterMinor version change: check the release notes
    • If you run a version from 6.2 to before 6.6.158update to 6.6.158 or laterMinor version change: check the release notes
    • If you run a version from 5.16 to before 6.1.189update to 6.1.189 or laterMajor version change: expect breaking changes
    • If you run a version from 5.11 to before 5.15.222update to 5.15.222 or laterMinor version change: check the release notes
    • If you run 5.10.xupdate to 5.10.271 or laterPatch update: breaking changes are unlikely

    Some affected versions have no stated fix.

Taken from the version ranges of the NVD record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • linux linux kernel

    Affected versionsFixed in
    from 6.19 to before 7.2.77.2.7
    from 6.13 to before 6.18.536.18.53
    from 6.7 to before 6.12.1116.12.111
    from 6.2 to before 6.6.1586.6.158
    from 5.16 to before 6.1.1896.1.189
    from 5.11 to before 5.15.2225.15.222
    from 5.10 to before 5.10.2715.10.271
    7.3none stated

Product versions from the NVD record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.