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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2026-11-3013:25CVE publishedCNA
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.3 | ≥ 6.19.0, < 7.3.4 | 7.3.4 | OSV |
| 6.x | ≥ 6.13.0, < 6.18.64 | 6.18.64 | OSV |
| 6.x | ≥ 6.7.0, < 6.12.118 | 6.12.118 | OSV |
| 6.x | ≥ 6.2.0, < 6.6.163 | 6.6.163 | OSV |
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
Fix
- 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
- PoC-in-GitHubno public repository identifiedread 2026-12-01
- Metasploit modules
- none listed Metasploit Framework
Sources
Identifiers
- EUVD-2026-138553same flawENISA EUVD · LicenseRef-ENISA-legal-notice
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?
Is CVE-2026-138850 actively exploited?
What is the CVSS score for CVE-2026-138850?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served