CVE-2026-63797

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

State
Published
Severity
8.4 High
Published
Jul 19, 2026
Updated
Aug 17, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.18.4 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • bc69d10665690492421d926b1cd9a7a36bffd691 to before 1306fc4f76f765727a6d5aefbf08ef0c8f32996fAffected
  • bc69d10665690492421d926b1cd9a7a36bffd691 to before ddf13f91ca82c94ef7ad9c41a434a03313f8eb1bAffected
  • bc69d10665690492421d926b1cd9a7a36bffd691 to before c5ebb06c7e24d531b68707168e04698859d642bcAffected
  • bc69d10665690492421d926b1cd9a7a36bffd691 to before 104d100212396801f1d9d388282f746e23e2bfd6Affected
  • bc69d10665690492421d926b1cd9a7a36bffd691 to before ff268cd9ccbce6472a0658791b417bf11c31ee39Affected
  • bc69d10665690492421d926b1cd9a7a36bffd691 to before 1ff3f528e67d20e2b1483dcaba899dc7832b2e6bAffected
LinuxLinux
  • 5.18Affected
  • before 5.18Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.144 through 6.6.*Not affected
  • 6.12.95 through 6.12.*Not affected
  • 6.18.38 through 6.18.*Not affected
  • 7.1.3 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.