{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138849","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.898Z","datePublished":"2026-11-30T13:25:33.357Z","dateUpdated":"2026-12-01T05:40:16.496Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:40:16.496Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: Allocate entire reserved memory for Audio PD in probe\n\nAllocating and freeing Audio PD memory from userspace is unsafe because\nthe kernel cannot reliably determine when the DSP has finished using the\nmemory. Userspace may free buffers while they are still in use by the DSP,\nand remote free requests cannot be safely trusted.\n\nAdditionally, the current implementation allows userspace to repeatedly\ngrow the Audio PD heap, but does not support shrinking it. This can lead\nto unbounded memory usage over time, effectively causing a memory leak.\n\nFix this by allocating the entire Audio PD reserved-memory region during\nrpmsg probe and tying its lifetime to the rpmsg channel. This removes\nuserspace-controlled alloc/free and ensures that memory is reclaimed only\nwhen the DSP process is torn down.\n\nThe reserved-memory region is now mandatory for the Audio PD domain.\nRather than failing rpmsg probe when it is missing, validate it in\nfastrpc_init_create_static_process() and reject only the static-process\ncreation. This keeps the fastrpc device probing for all other domains\neven on a misconfigured device tree."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached through local ioctls on the /dev/fastrpc-adsp misc device: FASTRPC_IOCTL_INIT_CREATE_STATIC → fastrpc_init_create_static_process(), and FASTRPC_IOCTL_MMAP with ADSP_MMAP_REMOTE_HEAP_ADDR → fastrpc_req_mmap(). No network or radio input is involved.\nAC:L - The attacker controls both sides of the race. Two threads issue INIT_CREATE_STATIC with a name the DSP rejects, and both reach err_map, where fastrpc_buf_free(cctx->remote_heap) runs before the pointer is NULLed. No lock covers this. The attacker can allocate the heap with their own first call, so no other state is needed.\nPR:L - fastrpc_device_open() and fastrpc_device_ioctl() have no capable() check, and INIT_CREATE_STATIC doesn't even call is_session_rejected(). Access is gated only by the device node's permissions, and the driver's secure/non-secure split exists to admit untrusted apps, so a basic local user is enough.\nUI:N - The attacker opens the device and issues the ioctls from their own threads. No other user has to act; even the audio daemon's earlier allocation is optional, because the attacker's first call allocates cctx->remote_heap itself.\nS:U - The demonstrable impact is a double free and use-after-free of the kernel's struct fastrpc_buf, plus kernel stage-2 faults on reused pages, all inside the kernel's own authority. Any compromise of the DSP Audio PD would depend on firmware behaviour I couldn't verify, so it isn't scored.\nC:H - The concurrent err_map frees of cctx->remote_heap cause a slab use-after-free and double kfree of struct fastrpc_buf, and the success path reads remote_heap->dma_addr/size from the freed object. Reclaiming that object with controlled data is a standard route to arbitrary kernel memory disclosure.\nI:H - A double kfree and double dma_free_coherent of the same fastrpc_buf corrupts allocator state and enables overlapping objects. In the REMOTE_HEAP mmap path the pages are freed while the DSP still holds them in the Audio PD pool. Both allow kernel memory modification and control-flow hijack.\nA:H - A slab double free crashes the kernel. On DTs with qcom,vmids set (hamoa, kodiak, sm8250, sm8750, lemans), the freed heap is still assigned to LPASS/ADSP_HEAP through SCM, so the kernel's next touch of a reused page takes a stage-2 abort and panics. Repeatedly growing the heap with REMOTE_HEAP mmaps also exhausts memory."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/misc/fastrpc.c"],"versions":[{"version":"0871561055e666da421d779397efcc1e5e964cab","lessThan":"718e48550419fa95b699cfa6fab7835220745600","status":"affected","versionType":"git"},{"version":"0871561055e666da421d779397efcc1e5e964cab","lessThan":"b6211aa495a38145c9222a5a148abc8c3ff04a58","status":"affected","versionType":"git"},{"version":"0871561055e666da421d779397efcc1e5e964cab","lessThan":"827cf4797be48722c06d25771d32a42e1cecfad2","status":"affected","versionType":"git"},{"version":"0871561055e666da421d779397efcc1e5e964cab","lessThan":"9e47ad9c562e82cabfbb9afa6c2b0dcdf2702a39","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/misc/fastrpc.c"],"versions":[{"version":"6.2","status":"affected"},{"version":"0","lessThan":"6.2","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/718e48550419fa95b699cfa6fab7835220745600"},{"url":"https://git.kernel.org/stable/c/b6211aa495a38145c9222a5a148abc8c3ff04a58"},{"url":"https://git.kernel.org/stable/c/827cf4797be48722c06d25771d32a42e1cecfad2"},{"url":"https://git.kernel.org/stable/c/9e47ad9c562e82cabfbb9afa6c2b0dcdf2702a39"}],"title":"misc: fastrpc: Allocate entire reserved memory for Audio PD in probe","x_generator":{"engine":"bippy-1.2.0"}}}}