In the Linux kernel, the following vulnerability has been resolved:
misc: fastrpc: fix use-after-free of fastrpc_user in workqueue context
There is a race between fastrpc_device_release() and the workqueue that processes DSP responses. When the user closes the file descriptor, fastrpc_device_release() frees the fastrpc_user structure. Concurrently, an in-flight DSP invocation can complete and fastrpc_rpmsg_callback() schedules context cleanup via schedule_work(&ctx->put_work). If the workqueue runs fastrpc_context_free() in parallel with or after fastrpc_device_release() has freed the user structure, it dereferences the freed fastrpc_user. Depending on the state of the context at the time of the race, any one of the following accesses can be hit:
1. fastrpc_buf_free() calls fastrpc_ipa_to_dma_addr(buf->fl->cctx, ...) to strip the SID bits from the stored IOVA before passing the physical address to dma_free_coherent().
2. fastrpc_free_map() reads map->fl->cctx->vmperms[0].vmid to reconstruct the source permission bitmask needed for the qcom_scm_assign_mem() call that returns memory from the DSP VM back to HLOS.
3. fastrpc_free_map() acquires map->fl->lock to safely remove the map node from the fl->maps list.
The resulting use-after-free manifests as:
pc : fastrpc_buf_free+0x38/0x80 [fastrpc] lr : fastrpc_context_free+0xa8/0x1b0 [fastrpc] fastrpc_context_free+0xa8/0x1b0 [fastrpc] fastrpc_context_put_wq+0x78/0xa0 [fastrpc] process_one_work+0x180/0x450 worker_thread+0x26c/0x388
Add kref-based reference counting to fastrpc_user. Have each invoke context take a reference on the user at allocation time and release it when the context is freed. Release the initial reference in fastrpc_device_release() at file close. Move the teardown of the user structure — freeing pending contexts, maps, mmaps, and the channel context reference — into the kref release callback fastrpc_user_free(), so that it runs only when the last reference is dropped, regardless of whether that happens at device close or after the final in-flight context completes.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux-6.1Upgrade linux | Jul 5, 2026 | Jul 5, 2026 |
| Ubuntu | — | Upgrade linux-image-gcp-7.0Upgrade linux-image-genericUpgrade linux-image-7.0.0-1006-gke-64kUpgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-virtual-7.0Upgrade linux-image-aws-64kUpgrade linux-image-gcpUpgrade linux-image-7.0.0-1013-ibmUpgrade linux-image-nvidia-64k-7.0Upgrade linux-image-oem-26.04Upgrade linux-image-oracleUpgrade linux-image-ibm-7.0Upgrade linux-image-virtual-hwe-26.04Upgrade linux-image-virtual-hwe-24.04Upgrade linux-image-oracle-64k-7.0Upgrade linux-image-nvidiaUpgrade linux-image-oracle-7.0Upgrade linux-image-7.0.0-2018-nvidia-bos-64kUpgrade linux-image-7.0.0-1012-aws-64kUpgrade linux-image-raspi-realtimeUpgrade linux-image-generic-64k-7.0Upgrade linux-image-7.0.0-1011-oracleUpgrade linux-image-generic-64kUpgrade linux-image-nvidia-bos-7.0Upgrade linux-image-7.0.0-31-genericUpgrade linux-image-oem-26.04bUpgrade linux-image-oracle-64kUpgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-7.0.0-31-realtime-64kUpgrade linux-image-azure-lts-26.04Upgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-ibmUpgrade linux-image-virtualUpgrade linux-image-7.0.0-1006-gkeUpgrade linux-image-7.0.0-1018-nvidiaUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-aws-7.0Upgrade linux-image-realtimeUpgrade linux-image-generic-hwe-26.04Upgrade linux-image-generic-7.0Upgrade linux-image-gcp-64k-7.0Upgrade linux-image-raspi-7.0Upgrade linux-image-azureUpgrade linux-image-7.0.0-1019-raspi-realtimeUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-nvidia-7.0Upgrade linux-image-7.0.0-1018-nvidia-64kUpgrade linux-image-gke-hwe-26.04Upgrade linux-image-awsUpgrade linux-image-oem-26.04aUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-7.0.0-31-generic-64kUpgrade linux-image-gke-64k-7.0Upgrade linux-image-oem-7.0Upgrade linux-image-nvidia-bosUpgrade linux-image-aws-64k-7.0Upgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-gke-64kUpgrade linux-image-realtime-hwe-26.04Upgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-7.0.0-1012-awsUpgrade linux-image-7.0.0-1013-oemUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-realtime-7.0Upgrade linux-image-raspiUpgrade linux-image-7.0.0-1014-azureUpgrade linux-image-7.0.0-1011-oracle-64kUpgrade linux-image-nvidia-64kUpgrade linux-image-gkeUpgrade linux-image-gcp-64kUpgrade linux-image-7.0.0-1019-raspiUpgrade linux-image-7.0.0-31-realtimeUpgrade linux-image-gke-7.0Upgrade linux-image-realtime-64kUpgrade linux-image-7.0.0-2018-nvidia-bosUpgrade linux-image-realtime-64k-7.0Upgrade linux-image-nvidia-bos-64kUpgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-azure-7.0 | Sep 14, 2026 | Sep 7, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jul 6, 2026 | Jun 25, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub