PT-2026-162710

CVE-2026-138850

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
misc: fastrpc: fix double-free in fastrpc map attach() error path
map->table is assigned right after dma buf map attachment unlocked() succeeds. The two failure checks that follow, the len > map->size test and, where subsystem VMIDs are configured, a failed qcom scm assign mem(), jump to map err with map->table already set.
map err manually calls dma buf detach() and dma buf put() and then falls through to fastrpc map put(). Since that change the error path tail is fastrpc map put() -> fastrpc free map(), and fastrpc free map() already unmaps, detaches and puts the dma-buf whenever map->table is set. The two operations therefore run twice: the second dma buf put() drops an extra reference on map->buf, and dma buf unmap attachment unlocked() dereferences the map->attach already freed by the manual dma buf detach(). kref init() sets the refcount to 1 with no intervening get, so the final fastrpc map put() frees the map synchronously and the redundant cleanup is deterministic.
The len > map->size branch is reachable by an unprivileged process via FASTRPC IOCTL MEM MAP with an fd whose dma-buf is smaller than the requested length, before any DSP invocation.
Route both map->table-is-set failure branches to get err instead of map err, so fastrpc free map() is the single owner of the unmap/detach/put sequence. map err is retained for the dma buf map attachment unlocked() failure, which is reached with map->table still NULL and an attachment that fastrpc free map() will not clean up, so its dma buf detach()/dma buf put() must still run manually.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾