CVE-2026-138849: misc: fastrpc: Allocate entire reserved memory for Audio PD in probe
In the Linux kernel, the following vulnerability has been resolved:
misc: fastrpc: Allocate entire reserved memory for Audio PD in probe
Allocating and freeing Audio PD memory from userspace is unsafe because the kernel cannot reliably determine when the DSP has finished using the memory. Userspace may free buffers while they are still in use by the DSP, and remote free requests cannot be safely trusted.
Additionally, the current implementation allows userspace to repeatedly grow the Audio PD heap, but does not support shrinking it. This can lead to unbounded memory usage over time, effectively causing a memory leak.
Fix this by allocating the entire Audio PD reserved-memory region during rpmsg probe and tying its lifetime to the rpmsg channel. This removes userspace-controlled alloc/free and ensures that memory is reclaimed only when the DSP process is torn down.
The reserved-memory region is now mandatory for the Audio PD domain. Rather than failing rpmsg probe when it is missing, validate it in fastrpcinitcreatestaticprocess() and reject only the static-process creation. This keeps the fastrpc device probing for all other domains even on a misconfigured device tree.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Compensating control
In fastrpc, allocate the entire Audio PD reserved-memory region during rpmsg probe and tie its lifetime to the rpmsg channel. Validate the region in fastrpc_init_create_static_process() and reject only static-process creation when it is missing, so other domains can still probe.
Event History
Frequently Asked Questions
Which systems are exposed to the unsafe memory-management behavior?
The issue concerns Linux kernel fastrpc Audio PD handling. It applies where an Audio PD static process is created and uses its reserved-memory region; the provided data does not identify specific kernel versions or hardware platforms.
What conditions lead to the memory-safety and resource-exhaustion risk?
Userspace must be able to allocate or free Audio PD memory. It can free a buffer while the DSP still uses it, and repeated heap growth without a corresponding shrink operation can cause unbounded memory usage over time.
What changes if the required Audio PD reserved-memory region is absent?
The fastrpc device can still probe for other domains. Creation of the Audio PD static process is rejected when its reserved-memory region is missing.
What is the remediation described by the fix?
Allocate the complete Audio PD reserved-memory region during rpmsg probe and keep it for the lifetime of the rpmsg channel. This removes userspace-controlled Audio PD allocation and freeing, and reclaims the memory only when the DSP process is torn down.