CVE-2026-143449 in Linux
Summary
by MITRE • 12/05/2026
In the Linux kernel, the following vulnerability has been resolved:
bpf: Clear insn array jitted pointers on map reuse
An insn array records, per entry, the xlated offset, the jitted offset and a jitted target pointer in ips[]. bpf_insn_array_init() runs when the map
is bound to a program and resets only xlated_off; the jitted offset and the ips[] pointer are left as the previous owner set them. A program can be
verified and JITed and only then fail to load (e.g. bpf_check_tail_call()). By that point bpf_prog_update_insn_ptrs() has already filled ips[] with
pointers into that program's JIT image. Thus, the map is handed back for reuse with the stale pointers intact. If the next program reuses the map, the stale pointer survives in the now active program's jump table, pointing into the previous, freed image. Fix by resetting the jitted offset and the ips[] pointer alongside the xlated offset.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 12/05/2026
The vulnerability described involves a critical memory safety flaw within the Linux kernel’s Berkeley Packet Filter (BPF) subsystem, specifically concerning the lifecycle management of BPF maps used for instruction arrays. The core issue stems from improper cleanup procedures when a BPF map is released and subsequently reused by another program. In normal operation, an insn array maintains metadata about compiled instructions, including translated offsets, JITed offsets, and pointers to the actual JIT-compiled code targets stored in an ips array. When a new BPF program binds to such a map, initialization functions are expected to reset all relevant state variables to ensure isolation between different programs that might share or reuse underlying storage structures.
The technical flaw arises because bpf_insn_array_init() only resets the xlated_off field while leaving the jitted offset and the ips[] pointers untouched during this initialization phase. This oversight becomes problematic when a BPF program undergoes verification and JIT compilation but subsequently fails to load due to validation errors, such as those triggered by tail call checks in bpf_check_tail_call(). At this stage, the kernel has already populated the ips array with valid memory addresses pointing into the newly generated JIT image of that failed program. Because these pointers are not cleared before the map is returned to the general pool for reuse, they persist as stale references within the map structure.
When a subsequent BPF program reuses this same map object, it inherits these dangling pointers from its predecessor. Consequently, the new program’s jump table may contain addresses that point into memory regions previously allocated and potentially freed by the kernel after the first program failed to load or was unloaded. Accessing these stale pointers constitutes an out-of-bounds read or write vulnerability, depending on how the JITed code attempts to utilize them. This scenario creates a direct pathway for arbitrary code execution or information disclosure if an unprivileged user can trigger this sequence of map creation, verification failure, and reuse.
From a threat modeling perspective, this flaw aligns with CWE-416 Use After Free, as it involves accessing memory that has been deallocated by the system but is still referenced through stale pointers within kernel data structures. Furthermore, because BPF programs often run in privileged contexts or can influence network packet processing paths, successful exploitation could lead to privilege escalation (CWE-269) or denial of service conditions affecting system stability. The ATT&CK framework categorizes such vulnerabilities under techniques involving memory corruption and potentially code injection via kernel-level exploits, highlighting the severity of bypassing standard isolation mechanisms within the operating system core.
The operational impact of this vulnerability is significant due to its potential for remote exploitation in network-centric environments where BPF programs are commonly deployed for traffic filtering, monitoring, or security enforcement. An attacker with limited privileges could craft a sequence of eBPF programs designed specifically to exploit the map reuse logic, thereby gaining unauthorized access to kernel memory space. This compromises the integrity and confidentiality of the host system, potentially allowing lateral movement within compromised networks or complete system takeover if combined with other local privilege escalation vectors.
To mitigate this risk, it is imperative that developers ensure all stateful components associated with BPF maps are fully sanitized upon release from active use. The fix involves modifying bpf_insn_array_init() to explicitly reset not only the xlated_off field but also the jitted offset and the ips[] pointer array entries. This ensures that any reused map starts with a clean slate, preventing stale pointers from leaking into new program contexts. System administrators should apply kernel updates containing this patch immediately to close the window of exposure. Additionally, rigorous testing procedures for BPF programs should include scenarios involving verification failures followed by resource reuse to detect similar lifecycle management defects in other subsystems.