Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-138849

published high CVSS 3.1 · 7.8

misc: fastrpc: Allocate entire reserved memory for Audio PD in probe

Published
30 Nov 2026, 13:25:33 UTC
Updated
01 Dec 2026, 05:40:16 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0871561055e666da421d779397efcc1e5e964cab to < 718e48550419fa95b699cfa6fab7835220745600 · 0871561055e666da421d779397efcc1e5e964cab to < b6211aa495a38145c9222a5a148abc8c3ff04a58 · 0871561055e666da421d779397efcc1e5e964cab to < 827cf4797be48722c06d25771d32a42e1cecfad2 · 0871561055e666da421d779397efcc1e5e964cab to < 9e47ad9c562e82cabfbb9afa6c2b0dcdf2702a39 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.2 (affected) · 0 to < 6.2 (unaffected · semver) · 6.12.120 through 6.12.* (unaffected · semver) · 6.18.66 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux

Description

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 fastrpc_init_create_static_process() and reject only the static-process creation. This keeps the fastrpc device probing for all other domains even on a misconfigured device tree.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0871561055e666da421d779397efcc1e5e964cab to < 718e48550419fa95b699cfa6fab7835220745600 (affected · git)0871561055e666da421d779397efcc1e5e964cab to < b6211aa495a38145c9222a5a148abc8c3ff04a58 (affected · git)0871561055e666da421d779397efcc1e5e964cab to < 827cf4797be48722c06d25771d32a42e1cecfad2 (affected · git)0871561055e666da421d779397efcc1e5e964cab to < 9e47ad9c562e82cabfbb9afa6c2b0dcdf2702a39 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.2 (affected)0 to < 6.2 (unaffected · semver)6.12.120 through 6.12.* (unaffected · semver)6.18.66 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

misc: fastrpc: Allocate entire reserved memory for Audio PD in probe

Provenance

Schema
5.2
Searchable
yes
Content hash
b3756c33f9c5367d64629c17daf3642b905487223955f01a1c5262fa97f3549f
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected