---
id: CVE-2026-63797
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  rpmsg: char: Fix use-after-free on probe error path

  rpmsg_chrdev_probe() stores the newly allocated eptdev in the default
  endpoint's priv pointer before calling rpmsg_…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  rpmsg: char: Fix use-after-free on probe error path

  rpmsg_chrdev_probe() stores the newly allocated eptdev in the default
  endpoint's priv pointer before calling rpmsg_…
severity: high
published: '2026-07-19'
updated: '2026-07-19'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-63797'
references:
  - url: 'https://git.kernel.org/stable/c/104d100212396801f1d9d388282f746e23e2bfd6'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/1ff3f528e67d20e2b1483dcaba899dc7832b2e6b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c5ebb06c7e24d531b68707168e04698859d642bc'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ddf13f91ca82c94ef7ad9c41a434a03313f8eb1b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ff268cd9ccbce6472a0658791b417bf11c31ee39'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-63797.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-63797'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2502226'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-63797'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-63797'
  - url: >-
      https://lore.kernel.org/linux-cve-announce/2026071900-CVE-2026-63797-44ec@gregkh/T
tags:
  - nvd
  - csaf
  - vex
  - red-hat
ingestedAt: '2026-07-20T00:35:12.252Z'
epss: 0.00146
epssPercentile: 0.0318
vendor: Red Hat
product: Red Hat Enterprise Linux 10
affected:
  - enterprise_linux 10
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: vendor
cwe:
  - CWE-825
---

## Overview

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

rpmsg: char: Fix use-after-free on probe error path

rpmsg_chrdev_probe() stores the newly allocated eptdev in the default
endpoint's priv pointer before calling rpmsg_chrdev_eptdev_add(). If
rpmsg_chrdev_eptdev_add() then fails, its error path frees eptdev while
the default endpoint may still dispatch callbacks with the stale priv
pointer.

Avoid publishing eptdev through the default endpoint until
rpmsg_chrdev_eptdev_add() succeeds. Messages received before the priv
pointer is published should be ignored by rpmsg_ept_cb(). Flow-control
updates can hit rpmsg_ept_flow_cb() in the same window, so make both
callbacks return success when priv is NULL.

## Remediation

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

## Vendor advisories

- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux 10 · no fix planned: Red Hat Enterprise Linux 10 · updated 2026-09-22 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-63797.json)
