---
id: CVE-2023-39191
title: 'Kernel: ebpf: insufficient stack type checks in dynptr'
summary: >-
  An improper input validation flaw was found in the eBPF subsystem in the Linux
  kernel. The issue occurs due to a lack of proper validation of dynamic
  pointers within user-supplied eBPF programs prior to executing them. This may
  allow an …
severity: high
cvss: 8.2
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-20
vendor: Red Hat
product: kernel
affected:
  - kernel (all versions)
  - kernel (all versions)
  - kernel (all versions)
  - kernel-rt (all versions)
  - kpatch-patch
  - kernel
  - kernel
  - kernel-rt
  - kernel
  - kernel-rt
  - kernel-rt (all versions)
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2025-02-26T21:50:31.558165Z'
published: '2023-10-04'
updated: '2026-11-07'
sourceUpdated: '2026-11-07T11:32:43.929Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2023-39191'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2023:6583'
    label: 'RHSA-2023:6583'
  - url: 'https://access.redhat.com/errata/RHSA-2024:0381'
    label: 'RHSA-2024:0381'
  - url: 'https://access.redhat.com/errata/RHSA-2024:0439'
    label: 'RHSA-2024:0439'
  - url: 'https://access.redhat.com/errata/RHSA-2024:0448'
    label: 'RHSA-2024:0448'
  - url: 'https://access.redhat.com/security/cve/CVE-2023-39191'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2226783'
    label: RHBZ#2226783
  - url: 'https://www.zerodayinitiative.com/advisories/ZDI-CAN-19399/'
tags:
  - cve.org
epss: 0.00531
epssPercentile: 0.45156
zeroDay: true
ingestedAt: '2026-11-07T12:16:41.109Z'
---

## Overview

An improper input validation flaw was found in the eBPF subsystem in the Linux kernel. The issue occurs due to a lack of proper validation of dynamic pointers within user-supplied eBPF programs prior to executing them. This may allow an attacker with CAP_BPF privileges to escalate privileges and execute arbitrary code in the context of the kernel.

## Affected

- `kernel (all versions)`
- `kernel (all versions)`
- `kernel (all versions)`
- `kernel-rt (all versions)`
- `kpatch-patch`
- `kernel`
- `kernel`
- `kernel-rt`
- `kernel`
- `kernel-rt`
- `kernel-rt (all versions)`

## Remediation

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