What’s Vulnerable › Vulnerabilities

CVE-2026-90300: bpf: Clear buf on error in __bpf_get_task_stack

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Linux 5.11, 5.12. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-90300 or the next vulnerability affects your stack