---
id: CVE-2026-90300
title: |-
  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_…
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_…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 06ab134ce8ecfa5a69e850f88f81c8a4c3fa91df <
    f523359c4789bb0396d2d642464a6e2fd4f2299d
  - >-
    Linux >= 06ab134ce8ecfa5a69e850f88f81c8a4c3fa91df <
    f5d242825ca417bb6afe35fde6e8880f97ca43fb
  - Linux d921baabd96445ef9c9c9410ca06164359c8a1a5
  - Linux 9c020a533eaae1c2d41a7e3835c4c818a9b4b656
  - Linux ff6bdc205fd0a83bd365405d4e31fb5905826996
  - Linux >= 5.10.30 < 5.11
  - Linux >= 5.11.14 < 5.12
  - Linux >= 5.10.96 < 5.11
  - Linux 5.12
published: '2026-09-17'
updated: '2026-09-17'
sourceUpdated: '2026-09-17T17:17:27.503'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-90300'
references:
  - url: 'https://git.kernel.org/stable/c/f523359c4789bb0396d2d642464a6e2fd4f2299d'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f5d242825ca417bb6afe35fde6e8880f97ca43fb'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
  - cve.org
ingestedAt: '2026-09-17T16:21:47.829Z'
epss: 0.00198
epssPercentile: 0.08487
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
