misc: fastrpc: Fix use-after-free and race in fastrpc_map_find
In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: Fix use-after-free and race in fastrpc_map_find Currently, there is a race window between the point when the mutex is unlocked in fastrpc_map_lookup and the reference count increasing (fastrpc_map_get) in fastrpc_map_find, which can also lead to use-after-free. So lets merge fastrpc_map_find into fastrpc_map_lookup which allows us to both protect the maps list by also taking the &fl->lock spinlock and the reference count, since the spinlock will be released only after. Add take_ref argument to make this suitable for all callers.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.8
- CVEs
- CVE-2022-48874
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 03:24 UTC · Revision 1
Source evidence
misc: fastrpc: Fix use-after-free and race in fastrpc_map_find
core-osv · Original sourcePublished 21 Aug 2024, 06:10 UTC
In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: Fix use-after-free and race in fastrpc_map_find Currently, there is a race window between the point when the mutex is unlocked in fastrpc_map_lookup and the reference count increasing (fastrpc_map_get) in fastrpc_map_find, which can also lead to use-after-free. So lets merge fastrpc_map_find into fastrpc_map_lookup which allows us to both protect the maps list by also taking the &fl->lock spinlock and the reference count, since the spinlock will be released only after. Add take_ref argument to make this suitable for all callers.
osv:CVE-2022-48874
Kernel
Fixed versions: 6.1.8
Complete source record
{
"id": "c84d82af2d7fb9173a6e6ba337ff34a9228f02164064940560be40526f25d1da",
"url": "https://osv.dev/vulnerability/CVE-2022-48874",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "misc: fastrpc: Fix use-after-free and race in fastrpc_map_find",
"summary": "In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: Fix use-after-free and race in fastrpc_map_find Currently, there is a race window between the point when the mutex is unlocked in fastrpc_map_lookup and the reference count increasing (fastrpc_map_get) in fastrpc_map_find, which can also lead to use-after-free. So lets merge fastrpc_map_find into fastrpc_map_lookup which allows us to both protect the maps list by also taking the &fl->lock spinlock and the reference count, since the spinlock will be released only after. Add take_ref argument to make this suitable for all callers.",
"evidence": "osv:CVE-2022-48874",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2022-48874",
"aliases": [
"CVE-2022-48874"
],
"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": "8f6c1d8c4f0cc316b0456788fff8373554d1d99d"
},
{
"fixed": "a50c5c25b6e7d2824698c0e6385f882a18f4a498"
},
{
"fixed": "9446fa1683a7e3937d9970248ced427c1983a1c5"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48874.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.18.0"
},
{
"fixed": "6.1.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48874.json"
}
}
],
"modified": "2026-10-28T02:30:49.610842660Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/9446fa1683a7e3937d9970248ced427c1983a1c5",
"https://git.kernel.org/stable/c/a50c5c25b6e7d2824698c0e6385f882a18f4a498",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48874.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-48874",
"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/2022/48xxx/CVE-2022-48874.json"
}
},
"related_cves": [
{
"value": "CVE-2022-48874",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 517731,
"published_at": "2024-08-21T06:10:05.081+00:00"
}