Skip to main content
← All vulnerabilities
CVE-2026-90300

bpf: Clear buf on error in __bpf_get_task_stack

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.11, 5.12, 6.6.160, 6.12.114, 6.18.57, and 1 more
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: bpf: Clear buf on error in __bpf_get_task_stack Both bpf_get_task_stack and bpf_get_task_stack_sleepable helpers that use __bpf_get_task_stack have buf defined as ARG_PTR_TO_UNINIT_MEM argument and we should initialize the buf on every return path. Adding missing buf memset for __bpf_get_task_stack fail paths. This provides deterministic buffer contents, which is useful when the buffer is used directly as a map key.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 5.10.30 · fixed in 5.11; From 5.11.14 · fixed in 5.12; From 5.10.96 · fixed in 5.11

  • Linux Linux

    5.12

  • KernelLinux

    From 5.12.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.57; From 6.19.0 · fixed in 7.2.6

References 6

git.kernel.org