{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-46741",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-09-11T15:12:18.263Z",
        "datePublished": "2024-09-18T07:12:02.496Z",
        "dateUpdated": "2026-08-27T12:39:34.666Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-27T12:39:34.666Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: Fix double free of 'buf' in error path\n\nsmatch warning:\ndrivers/misc/fastrpc.c:1926 fastrpc_req_mmap() error: double free of 'buf'\n\nIn fastrpc_req_mmap() error path, the fastrpc buffer is freed in\nfastrpc_req_munmap_impl() if unmap is successful.\n\nBut in the end, there is an unconditional call to fastrpc_buf_free().\nSo the above case triggers the double free of fastrpc buf."
                }
            ],
            "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 vulnerable code is reached only via `ioctl(FASTRPC_IOCTL_MMAP)` on the `/dev/fastrpc-*` misc device node, requiring local access to the system. No network or remote peer input reaches this path.\nAC:L - The attacker deterministically forces the error path by passing a read-only user mapping as `argp`, so `copy_from_user()` succeeds but the final `copy_to_user()` returns `-EFAULT`, and the subsequent DSP munmap of the just-mapped buffer always succeeds — no race or uncontrolled condition is involved.\nPR:L - The fastrpc driver contains no `capable()` or `CAP_*` checks on any path to `fastrpc_req_mmap()`; any local user able to open the fastrpc device node (routinely granted to unprivileged applications on Qualcomm Android/embedded/laptop systems) can trigger it.\nUI:N - The attacking process performs the entire sequence itself with two ioctls and its own memory mapping; no action by another user or victim is required.\nS:U - The corruption is confined to the kernel's own slab and DMA/CMA allocators within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed.\nC:H - The second `fastrpc_buf_free()` reads `buf->dev/size/virt/phys` from freed slab memory, and the duplicated `dma_free_coherent()` releases pages that remain mappable to userspace via this driver's dma-buf `.mmap`, allowing an attacker-mapped page to be re-issued to another kernel consumer and read — an arbitrary kernel-memory disclosure primitive.\nI:H - A same-object double free poisons the SLUB freelist so the same chunk is handed out to two owners, yielding overlapping-object heap corruption and, together with the still-mapped doubly-freed DMA pages, an arbitrary kernel write suitable for privilege escalation.\nA:H - Even without successful exploitation the double free corrupts the slab and page allocators, and on kernels with SLUB debugging or freelist hardening it trips an immediate BUG, causing a kernel panic that any local user can trigger at will."
                        }
                    ]
                }
            ],
            "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": "13327ed95222e70fa98805382b65636b872d87cb",
                            "lessThan": "4753cc37b6606ef9a7ec22861d380d45e2707f9a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2",
                            "lessThan": "f77dc8a75859e559f3238a6d906206259227985e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2",
                            "lessThan": "bfc1704d909dc9911a558b1a5833d3d61a43a1f2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2",
                            "lessThan": "e8c276d4dc0e19ee48385f74426aebc855b49aaf",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "911737ad0c860251f640a05feb75f9dc7e41f0d7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b10e064ca0f708c4b4401ac5eab0f76cf7cec93d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5.10.267",
                            "lessThan": "5.11",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.218",
                            "lessThan": "5.16",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "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.6.51",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.10.10",
                            "lessThanOrEqual": "6.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.11",
                            "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.6.51"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.2",
                                    "versionEndExcluding": "6.10.10"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.2",
                                    "versionEndExcluding": "6.11"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10.267"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15.218"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/4753cc37b6606ef9a7ec22861d380d45e2707f9a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f77dc8a75859e559f3238a6d906206259227985e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/bfc1704d909dc9911a558b1a5833d3d61a43a1f2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e8c276d4dc0e19ee48385f74426aebc855b49aaf"
                }
            ],
            "title": "misc: fastrpc: Fix double free of 'buf' in error path",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-09-29T14:50:16.910976Z",
                                "id": "CVE-2024-46741",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-29T14:50:31.769Z"
                }
            }
        ]
    }
}