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

CVE-2026-63797
HIGH 8.4

At a glance

Source
NVD
EPSS
EPSS 0.15 % · percentile 4 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 8.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 8.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected bc69d10665690492421d926b1cd9a7a36bffd691 < 1306fc4f76f765727a6d5aefbf08ef0c8f32996f ; affected bc69d10665690492421d926b1cd9a7a36bffd691 < ddf13f91ca82c94ef7ad9c41a434a03313f8eb1b ; affected bc69d10665690492421d926b1cd9a7a36bffd691 < c5ebb06c7e24d531b68707168e04698859d642bc ; affected bc69d10665690492421d926b1cd9a7a36bffd691 < 104d100212396801f1d9d388282f746e23e2bfd6 ; affected bc69d10665690492421d926b1cd9a7a36bffd691 < ff268cd9ccbce6472a0658791b417bf11c31ee39 ; affected bc69d10665690492421d926b1cd9a7a36bffd691 < 1ff3f528e67d20e2b1483dcaba899dc7832b2e6b
Linux · Linuxaffected 5.18 ; unaffected 0 < 5.18 ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.144 ≤ 6.6.* ; unaffected 6.12.95 ≤ 6.12.* ; unaffected 6.18.38 ≤ 6.18.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD