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

Published Sep 17, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

bpf: Clear buf on error in bpfgettaskstack

Both bpfgettaskstack and bpfgettaskstacksleepable helpers that use bpfgettaskstack have buf defined as ARGPTRTOUNINITMEM argument and we should initialize the buf on every return path.

Adding missing buf memset for bpfgettaskstack fail paths. This provides deterministic buffer contents, which is useful when the buffer is used directly as a map key.

Event History

Sep 17, 2026
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
Description

Frequently Asked Questions

1

Which BPF helpers are involved?

The affected paths are bpf_get_task_stack and bpf_get_task_stack_sleepable, both of which use __bpf_get_task_stack.

2

When can the caller receive non-deterministic buffer contents?

This occurs on failure paths in __bpf_get_task_stack when the output buffer is not cleared before returning an error. It is particularly relevant when the buffer is used directly as a map key.

3

What does the fix change?

The fix adds buffer clearing on __bpf_get_task_stack failure paths, ensuring deterministic contents for the buffer on every return path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203