misc: fastrpc: Fix double free of 'buf' in error path
In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: Fix double free of 'buf' in error path smatch warning: drivers/misc/fastrpc.c:1926 fastrpc_req_mmap() error: double free of 'buf' In fastrpc_req_mmap() error path, the fastrpc buffer is freed in fastrpc_req_munmap_impl() if unmap is successful. But in the end, there is an unconditional call to fastrpc_buf_free(). So the above case triggers the double free of fastrpc buf.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.10.10, 6.6.51
- CVEs
- CVE-2024-46741
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 03:21 UTC · Revision 1
Source evidence
misc: fastrpc: Fix double free of 'buf' in error path
core-osv · Original sourcePublished 18 Sept 2024, 07:12 UTC
In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: Fix double free of 'buf' in error path smatch warning: drivers/misc/fastrpc.c:1926 fastrpc_req_mmap() error: double free of 'buf' In fastrpc_req_mmap() error path, the fastrpc buffer is freed in fastrpc_req_munmap_impl() if unmap is successful. But in the end, there is an unconditional call to fastrpc_buf_free(). So the above case triggers the double free of fastrpc buf.
osv:CVE-2024-46741
Kernel
Fixed versions: 6.6.51, 6.10.10
Complete source record
{
"id": "a9b3353251ca55f2b324981c554d9e1e85c00fdff8a68ad027c576e775342207",
"url": "https://osv.dev/vulnerability/CVE-2024-46741",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "misc: fastrpc: Fix double free of 'buf' in error path",
"summary": "In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: Fix double free of 'buf' in error path smatch warning: drivers/misc/fastrpc.c:1926 fastrpc_req_mmap() error: double free of 'buf' In fastrpc_req_mmap() error path, the fastrpc buffer is freed in fastrpc_req_munmap_impl() if unmap is successful. But in the end, there is an unconditional call to fastrpc_buf_free(). So the above case triggers the double free of fastrpc buf.",
"evidence": "osv:CVE-2024-46741",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.51",
"evidence": "/affected/1/ranges"
},
{
"value": "6.10.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2024-46741",
"aliases": [
"CVE-2024-46741"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "13327ed95222e70fa98805382b65636b872d87cb"
},
{
"fixed": "4753cc37b6606ef9a7ec22861d380d45e2707f9a"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2"
},
{
"fixed": "f77dc8a75859e559f3238a6d906206259227985e"
},
{
"fixed": "bfc1704d909dc9911a558b1a5833d3d61a43a1f2"
},
{
"fixed": "e8c276d4dc0e19ee48385f74426aebc855b49aaf"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5.10.267"
},
{
"fixed": "5.11"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5.15.218"
},
{
"fixed": "5.16"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "911737ad0c860251f640a05feb75f9dc7e41f0d7"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "b10e064ca0f708c4b4401ac5eab0f76cf7cec93d"
}
]
}
],
"versions": [
"v5.10.272",
"v5.10.271",
"v5.10.270",
"v5.10.269",
"v5.10.268",
"v5.10.267",
"v5.15.223",
"v5.15.222",
"v5.15.221",
"v5.15.220",
"v5.15.219",
"v5.15.218"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46741.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.51"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.10.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46741.json"
}
}
],
"modified": "2026-10-28T02:30:42.356954741Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/4753cc37b6606ef9a7ec22861d380d45e2707f9a",
"https://git.kernel.org/stable/c/bfc1704d909dc9911a558b1a5833d3d61a43a1f2",
"https://git.kernel.org/stable/c/e8c276d4dc0e19ee48385f74426aebc855b49aaf",
"https://git.kernel.org/stable/c/f77dc8a75859e559f3238a6d906206259227985e",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46741.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-46741",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46741.json"
}
},
"related_cves": [
{
"value": "CVE-2024-46741",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 509811,
"published_at": "2024-09-18T07:12:02.496+00:00"
}