# CVE-2026-63797: rpmsg: char: Fix use-after-free on probe error path

- Severity: High 8.4 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-07-19T12:02:05.227Z
- Modified: 2026-08-17T05:17:15.980Z
- Weaknesses: CWE-416
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from bc69d10665690492421d926b1cd9a7a36bffd691 before 1306fc4f76f765727a6d5aefbf08ef0c8f32996f; from bc69d10665690492421d926b1cd9a7a36bffd691 before ddf13f91ca82c94ef7ad9c41a434a03313f8eb1b; from bc69d10665690492421d926b1cd9a7a36bffd691 before c5ebb06c7e24d531b68707168e04698859d642bc; from bc69d10665690492421d926b1cd9a7a36bffd691 before 104d100212396801f1d9d388282f746e23e2bfd6; from bc69d10665690492421d926b1cd9a7a36bffd691 before ff268cd9ccbce6472a0658791b417bf11c31ee39; from bc69d10665690492421d926b1cd9a7a36bffd691 before 1ff3f528e67d20e2b1483dcaba899dc7832b2e6b; 5.18 (not affected: before 5.18; from 6.1.178 up to 6.1.*; from 6.6.144 up to 6.6.*; from 6.12.95 up to 6.12.*; from 6.18.38 up to 6.18.*; from 7.1.3 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 5.18 before 6.1.178; from 6.2 before 6.6.144; from 6.7 before 6.12.95; from 6.13 before 6.18.38; from 6.19 before 7.1.3

## Every score

- Linux: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/1306fc4f76f765727a6d5aefbf08ef0c8f32996f> (patch)
- <https://git.kernel.org/stable/c/ddf13f91ca82c94ef7ad9c41a434a03313f8eb1b> (patch)
- <https://git.kernel.org/stable/c/c5ebb06c7e24d531b68707168e04698859d642bc> (patch)
- <https://git.kernel.org/stable/c/104d100212396801f1d9d388282f746e23e2bfd6> (patch)
- <https://git.kernel.org/stable/c/ff268cd9ccbce6472a0658791b417bf11c31ee39> (patch)
- <https://git.kernel.org/stable/c/1ff3f528e67d20e2b1483dcaba899dc7832b2e6b> (patch)

## Sources

- CVE List: [CVE-2026-63797](https://www.cve.org/CVERecord?id=CVE-2026-63797), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-63797](https://nvd.nist.gov/vuln/detail/CVE-2026-63797), Public domain, modified 2026-08-17

---

Page: https://cve.day/CVE-2026-63797 · Whole record: https://cve.day/CVE-2026-63797.json · Rebuilt by cve.day 2026-11-25T22:59:28.711Z
