bpf: Fix insn_aux_data leak on verifier err_free_env path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 26490a375cb9be9bac96b5171610fd85ca6c2305, Kernel d8df91756890de058646597367507b239a6d2025 and Kernel 7.1.5.
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix insn_aux_data leak on verifier err_free_env path When bpf_check() allocates env->insn_aux_data successfully but later fails to allocate env->succ, it jumps directly to err_free_env. The existing vfree(env->insn_aux_data) sits before the err_free_env label, so that direct jump bypasses it and leaks insn_aux_data. Move vfree(env->insn_aux_data) into err_free_env so all early and late exit paths release it consistently.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.19, >=2f69c5685427308d2f312646779313f3677536bc <26490a375cb9be9bac96b5171610fd85ca6c2305, >=2f69c5685427308d2f312646779313f3677536bc <d8df91756890de058646597367507b239a6d2025 | 26490a375cb9be9bac96b5171610fd85ca6c2305, d8df91756890de058646597367507b239a6d2025 |
| linux-kernel: Kernel | >=6.19.0 <7.1.5 | 7.1.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket