Skip to main content
No exploitation reportedFix availableAwaiting NVD analysis

CVE-2026-138850

misc: fastrpc: fix double-free in fastrpc_map_attach() error path

No exploitation reported by the sources we read.

  • Published2026-11-30
  • Fixed in7.3.4 · 6.18.64 · 6.12.118 · 6.6.163

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: fix double-free in fastrpc_map_attach() error path map->table is assigned right after dma_buf_map_attachment_unlocked() succeeds. The two failure checks that follow, the len > map->size test and, where subsystem VMIDs are configured, a failed qcom_scm_assign_mem(), jump to map_err with map->table already set. map_err manually calls dma_buf_detach() and dma_buf_put() and then falls through to fastrpc_map_put(). Since that change the error path tail is fastrpc_map_put() -> fastrpc_free_map(), and fastrpc_free_map() already unmaps, detaches and puts the dma-buf whenever map->table is set. The two operations therefore run twice: the second dma_buf_put() drops an extra reference on map->buf, and dma_buf_unmap_attachment_unlocked() dereferences the map->attach already freed by the manual dma_buf_detach(). kref_init() sets the refcount to 1 with no intervening get, so the final fastrpc_map_put() frees the map synchronously and the redundant cleanup is deterministic. 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. Route both map->table-is-set failure branches to get_err instead of map_err, so fastrpc_free_map() is the single owner of the unmap/detach/put sequence. map_err is retained 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, so its dma_buf_detach()/dma_buf_put() must still run manually.

Timeline

dates in UTC
  1. 2026-11-3013:25CVE publishedCNA

Versions per branch

OSV
Linux kernel
BranchAffectedFixed in
7.3≥ 6.19.0, < 7.3.47.3.4
6.x≥ 6.13.0, < 6.18.646.18.64
6.x≥ 6.7.0, < 6.12.1186.12.118
6.x≥ 6.2.0, < 6.6.1636.6.163

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As Linux, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Linuxother versions: not affected

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

    Affected
    • ≥ 334f1a1cbe032d85fd58e771629e3a3b373b96d5, < 3a05f8579fc0a3d04e1e9de766630a722d7ca6b6fixed in 3a05f8579fc0a3d04e1e9de766630a722d7ca6b6git
    • ≥ 334f1a1cbe032d85fd58e771629e3a3b373b96d5, < 0bde6e438035a3bb80ba4f735b8c61a68001f8aafixed in 0bde6e438035a3bb80ba4f735b8c61a68001f8aagit
    • ≥ 334f1a1cbe032d85fd58e771629e3a3b373b96d5, < 5ba8a7ebd96d2e271905348e8aed19fe726e3648fixed in 5ba8a7ebd96d2e271905348e8aed19fe726e3648git
    • ≥ 334f1a1cbe032d85fd58e771629e3a3b373b96d5, < 51731e49fe9a7359d4dd17e77189a21b29115233fixed in 51731e49fe9a7359d4dd17e77189a21b29115233git
    • ≥ 334f1a1cbe032d85fd58e771629e3a3b373b96d5, < 09fa66ec1b4896ab841da085ca58b6433f28f07ffixed in 09fa66ec1b4896ab841da085ca58b6433f28f07fgit
  • Linuxother versions: affected

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

    Affected
    • = 6.2no fix stated

    Not affected < 6.2 · ≥ 6.6.163, ≤ 6.6.* · ≥ 6.12.118, ≤ 6.12.* · ≥ 6.18.64, ≤ 6.18.* · ≥ 7.3.4, ≤ 7.3.* · ≥ 7.4-rc1

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-11-30

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • linuxDebian:14all versions · fixed in 7.3.4-1
  • linuxDebian:13all versions · fixed in 6.12.118-1

Full record on NVD

Fix

  1. Update Linux kernel to 7.3.4 · 6.18.64 · 6.12.118 · 6.6.163

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-11-30
  • CNACVSS 3.17.82026-12-01
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2026-11-30
Last modified
2026-11-30
NVD status
Received

Frequently asked questions

What is CVE-2026-138850?

In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: fix double-free in fastrpc_map_attach() error path map->table is assigned right after dma_buf_map_attachment_unlocked() succeeds. The two failure checks that follow, the len > map->size test and, where subsystem VMIDs are configured, a failed qcom_scm_assign_mem(), jump to map_err with map->table already set. map_err manually calls dma_buf_detach() and dma_buf_put() and then falls through to fastrpc_map_put(). Since that change the error path tail is fastrpc_map_put() -> fastrpc_free_map(), and fastrpc_free_map() already unmaps, detaches and puts the dma-buf whenever map->table is set. The two operations therefore run twice: the second dma_buf_put() drops an extra reference on map->buf, and dma_buf_unmap_attachment_unlocked() dereferences the map->attach already freed by the manual dma_buf_detach(). kref_init() sets the refcount to 1 with no intervening get, so the final fastrpc_map_put() frees the map synchronously and the redundant cleanup is deterministic. 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. Route both map->table-is-set failure branches to get_err instead of map_err, so fastrpc_free_map() is the single owner of the unmap/detach/put sequence. map_err is retained 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, so its dma_buf_detach()/dma_buf_put() must still run manually.

Is CVE-2026-138850 actively exploited?

Active exploitation of CVE-2026-138850 has not been confirmed.

What is the CVSS score for CVE-2026-138850?

CVE-2026-138850 has a CVSS v3 base score of 7.8 (High severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running Linux kernel? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record