fastrpc_map_attach() in drivers/misc/fastrpc.c maps a user-supplied DMA-buf for the DSP. Once the attachment succeeded and map->table was set, two later failure checks still jumped to a label that “manually calls dma_buf_detach() and dma_buf_put() and then falls through to fastrpc_map_put()”, whose fastrpc_free_map() “already unmaps, detaches and puts the dma-buf whenever map->table is set”. The second dma_buf_put() drops a reference the driver no longer owns and the unmap “dereferences the map->attach already freed by the manual dma_buf_detach()”. The record says 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”, and that the double free is deterministic. If a machine has a /dev/fastrpc-* node, upgrade it to a kernel at or above 6.6.163, 6.12.118, 6.18.64 or 7.3.4 and reboot; hosts without Qualcomm DSP hardware, including every RHEL kernel, are not affected.
CVE-2026-138850 at a glance.
| Component | Linux kernel, Qualcomm FastRPC driver: the map_err error path of fastrpc_map_attach() in drivers/misc/fastrpc.c, reached through FASTRPC_IOCTL_MEM_MAP |
| Affected versions | mainline 6.2 up to 7.4-rc1 (from commit 334f1a1c); 6.6.x below 6.6.163, 6.12.x below 6.12.118, 6.18.x below 6.18.64, 7.3.x below 7.3.4. Kernels before 6.2 are not affected |
| Fixed in | mainline 7.4-rc1 (commit 09fa66ec) and stable 6.6.163, 6.12.118, 6.18.64, 7.3.4; five fix commits in the record. The fix routes both map->table-is-set failure branches to get_err “so fastrpc_free_map() is the single owner of the unmap/detach/put sequence”, keeping the manual clean-up only for the attachment failure where map->table is still NULL |
| Severity | kernel CNA CVSS 3.1 7.8 High (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H); NVD Received with no score, CWE or CPE of its own. Red Hat Important, 7.8 with the same vector, CWE-1341 (multiple releases of the same resource), score marked draft; Ubuntu needs triage on every release with no priority shown; SUSE not reachable |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30, released 30 November). EPSS: no score yet on 1 December 2026 |
| Who is exposed | machines with a Qualcomm DSP and the FastRPC driver bound: Snapdragon laptops, phones and boards on upstream, Debian or Ubuntu arm64 kernels with CONFIG_QCOM_FASTRPC. The attacker is any local process that can open the FastRPC device node; no DSP call has to succeed first, and the precondition is just a DMA-buf smaller than the length in the ioctl. Red Hat lists every RHEL release as not affected and says “systems without the fastrpc device node are not exposed by default” |
| Published | CVE record 30 November 2026 (kernel CNA, updated 1 December); this page built 1 December 2026, last updated 1 December 2026 |
What it is
A FastRPC map wraps a DMA-buf file descriptor from user space: the driver gets the buffer, attaches it to the DSP’s device, maps the attachment to get a scatter-gather table, and stores that in map->table. From that point fastrpc_free_map() owns the teardown, unmapping, detaching and dropping the buffer whenever the table pointer is set. Two checks after the mapping — the requested length exceeding the buffer’s size, and a failed qcom_scm_assign_mem() where subsystem VMIDs are configured — jumped to map_err, which was written for the earlier failure where no table exists yet and so detaches and puts the buffer by hand before falling into fastrpc_map_put().
With the table set, that is two releases of one resource. The extra dma_buf_put() drops a reference the driver does not hold, so the buffer can be freed under whoever else still uses it, and dma_buf_unmap_attachment_unlocked() runs on an attachment the manual dma_buf_detach() has already freed. Because the map’s kref starts at one with no intervening get, “the final fastrpc_map_put() frees the map synchronously and the redundant cleanup is deterministic”: there is no race to win. The length check is the easy branch, since the ioctl takes the length from user space and the buffer from any DMA-buf exporter the process can reach.
The fix is a routing change in the error path. Both failure branches that run with map->table set now go to get_err, leaving fastrpc_free_map() as the one place that unmaps, detaches and puts; map_err survives only 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”. git.kernel.org refused our reader, so the change is described from the CNA’s copy of the commit message and the one file the record names.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted for this page | — |
| Debian | bookworm not affected (“vulnerable code not present” in the 6.1 kernel); the plain trixie row (6.12.117-1) vulnerable, trixie’s security update fixed; forky and sid fixed; no DSA or DLA on 1 December 2026 | trixie 6.12.118-1; forky and sid 7.3.6-1 (fix recorded at 7.3.4-1) |
| Ubuntu | the linux package is needs triage on every release from 14.04 to 26.10; no priority set and nothing released or in progress on 1 December 2026 | nothing on 1 December 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Important, 7.8, CWE-1341 (bug 2586217); not affected on RHEL 6, 7, 8, 9 and 10 (kernel and kernel-rt) and on the OpenShift RHCOS images; no errata | none needed per Red Hat |
| openSUSE/SLE | Tracker unreachable on 1 December 2026 (client error); nothing inferred | — |
| Fedora, Arch; self-built kernels | Not consulted; upstream stable versions apply | 6.6.163 / 6.12.118 / 6.18.64 / 7.3.4 or later |
How to check
Three questions, in order: which kernel is running, is the FastRPC driver built or loaded, and can an unprivileged user open the device node. The record is explicit that no DSP invocation has to happen first, so the node’s permissions are the whole precondition.
# 1. the running kernel (compare with the fixed stable version for its series)
uname -r
# 2. is the driver built, loaded, or loadable (arm64 Qualcomm boards and laptops only)
grep -E 'CONFIG_QCOM_FASTRPC=' /boot/config-$(uname -r) 2>/dev/null
lsmod | grep -E '^fastrpc'
modinfo -n fastrpc 2>/dev/null
# 3. the device nodes and who can open them; a mode ending in 6 or 7 means any user
ls -l /dev/fastrpc-* 2>/dev/null
stat -c '%n %a %U:%G' /dev/fastrpc-* 2>/dev/nullA kernel at or above the fixed stable version for its series is done. A host with no fastrpc module and no CONFIG_QCOM_FASTRPC in its config cannot be reached by this bug, and that covers every x86 machine and every RHEL kernel. A Snapdragon device with world-readable and world-writable /dev/fastrpc-* nodes is the case the score is about: a single FASTRPC_IOCTL_MEM_MAP with a short buffer and a long length frees the attachment twice, deterministically, from any process that can open the node.
How to fix it
Install the fixed kernel and reboot; a kernel bug is not patched in place and the ioctl path stays in memory until the machine boots the new image. Debian trixie’s security update is out and forky and sid carry 7.3.6; Ubuntu had not triaged it and Red Hat is not affected on 1 December 2026.
# Debian trixie (security) / forky / sid
apt update && apt install linux-image-arm64 && systemctl reboot
# Ubuntu, SUSE: when the builds land
apt update && apt full-upgrade && systemctl reboot
zypper patch && systemctl reboot
uname -r
# until then: narrow who can open the node, or keep the driver out of memory on boards that do not use the DSPs
chmod 660 /dev/fastrpc-* 2>/dev/null
echo 'install fastrpc /bin/false' > /etc/modprobe.d/fastrpc.confTightening the node to the audio or sensor service’s group removes the unprivileged path while keeping the DSPs working; a udev rule makes it stick across reboots. What not to do: do not rely on blacklist fastrpc alone, since the device-tree match loads the driver at boot regardless of a blacklist; the install … /bin/false form is the one that holds. And do not treat Red Hat’s “not affected” as a statement about Qualcomm hardware running Debian or Ubuntu, where the driver is built.
Sources
- CVE-2026-138850 at CVE.org — the kernel CNA record (30 November 2026, updated 1 December when the CNA added its CVSS 3.1 metric): the commit message with the ioctl reachability note, the git and version ranges, CVSS 3.1 7.8
- Fix commits on git.kernel.org: 09fa66ec, 3a05f857, 0bde6e43, 5ba8a7eb, 51731e49; git.kernel.org refuses automated readers, so the diffs were not read for this page and the fix is described from the CNA’s copy of the commit message and the file the record names
- NVD entry — Received on 30 November, carrying the CNA’s ranges; no NVD score, CWE or CPE on 1 December
- Distribution trackers: Debian (bookworm not affected, trixie security 6.12.118-1 fixed) · Ubuntu (needs triage, no priority) · Red Hat (Important 7.8, CWE-1341, not affected on every RHEL release) · SUSE (unreachable on 1 December)
- CISA KEV catalogue 2026.11.30, not listed · EPSS: no score for this CVE on 1 December 2026
Related reading
- CVE-2026-138849: Linux kernel Qualcomm FastRPC let user space free Audio PD memory the DSP was still using — the sibling in the same driver from the same day, a lifetime bug rather than a double free
- CVE-2026-99523: Linux kernel RDMA DMABUF release races the user-verbs cleanup and reads a freed buffer — the same DMA-buf attachment lifecycle going wrong in another driver
- CVE-2026-138914: Linux kernel Amlogic video decoder writes a 32-aligned frame into a buffer sized for the raw width — another SoC media driver from the same rated batch
- CVE-2026-99800: Linux kernel io_uring frees the task context while another task still uses it — a reference-count error that does reach every architecture
- The Kernel — module autoload, why an unused driver is still an attack surface, and how
install … /bin/falsediffers fromblacklist
This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.
