---
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: medium
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-10-15'
sourceUpdated: '2026-10-15T11:18:00.413'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-90300'
references:
  - url: 'https://git.kernel.org/stable/c/1f0f61573ba4cb899105b5cef65be3ca02205f93'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - 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
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-90300.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-90300'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2536306'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-90300'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-90300'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-90300.mbox
  - url: 'https://git.kernel.org/stable/c/4acc761b4e3feca1eb648d21fc4d665b23c5372d'
  - url: 'https://git.kernel.org/stable/c/6f5a7bcc049709af12e403111d5e73e80910dafc'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00209
epssPercentile: 0.10954
ingestedAt: '2026-09-17T16:21:47.829Z'
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cvssSource: vendor
cwe:
  - CWE-908
---

## 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.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · updated 2026-10-17 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-90300.json)
