CVE-2022-50240
published high CVSS 3.1 · 7.8android: binder: stop saving a pointer to the VMA
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxdd2283f2605e3b3e9c61bcae844b34f2afa4813f to < 27a594bc7a7c8238d239e3cdbcf2edfa3bbe9a1b · dd2283f2605e3b3e9c61bcae844b34f2afa4813f to < 015ac18be7de25d17d6e5f1643cb3b60bfbe859e · dd2283f2605e3b3e9c61bcae844b34f2afa4813f to < 622ef885a89ad04cfb76ee478fb44f051125d1f1 · dd2283f2605e3b3e9c61bcae844b34f2afa4813f to < 925e6b6f82c9c80ab3c17acbde8d16f349da7d26 · dd2283f2605e3b3e9c61bcae844b34f2afa4813f to < 1ec3f76a436d750fd5023caec5da0494fc2870d2 · dd2283f2605e3b3e9c61bcae844b34f2afa4813f to < a43cfc87caaf46710c8027a8c23b8a55f1078f19 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.20 (affected) · 0 to < 4.20 (unaffected · semver) · 5.4.224 through 5.4.* (unaffected · semver) · 5.10.154 through 5.10.* (unaffected · semver) · 5.15.61 through 5.15.* (unaffected · semver) · 5.18.18 through 5.18.* (unaffected · semver) · 5.19.2 through 5.19.* (unaffected · semver) · 6.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-023 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2023-021 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2022-039 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-023 |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2023-021 |
Show 15 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-228 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.4-2022-039 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-023 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2023-021 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.4-2022-039 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-023 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2023-021 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.4-2022-039 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-023 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2023-021 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.4-2022-039 |
| Amazon Linux | AL2023 | kernelaarch64 | Listed in advisory | Not stated | ALAS2023-2023-228 |
| Amazon Linux | AL2023 | kernelsrc | Listed in advisory | Not stated | ALAS2023-2023-228 |
| Amazon Linux | AL2023 | kernelx86_64 | Listed in advisory | Not stated | ALAS2023-2023-228 |
Description
In the Linux kernel, the following vulnerability has been resolved: android: binder: stop saving a pointer to the VMA Do not record a pointer to a VMA outside of the mmap_lock for later use. This is unsafe and there are a number of failure paths *after* the recorded VMA pointer may be freed during setup. There is no callback to the driver to clear the saved pointer from generic mm code. Furthermore, the VMA pointer may become stale if any number of VMA operations end up freeing the VMA so saving it was fragile to being with. Instead, change the binder_alloc struct to record the start address of the VMA and use vma_lookup() to get the vma when needed. Add lockdep mmap_lock checks on updates to the vma pointer to ensure the lock is held and depend on that lock for synchronization of readers and writers - which was already the case anyways, so the smp_wmb()/smp_rmb() was not necessary. [[email protected]: fix drivers/android/binder_alloc_selftest.c]
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is reached via local binder device operations (open/mmap/ioctl on /dev/binder or binderfs), not via network packets or adjacent-network protocols. AC:L - The attacker controls both sides of the race (one thread munmaps the binder mapping while another issues binder transactions that call binder_update_page_range), so the race can be reliably created without depending on external conditions. PR:L - binder_open() has no capability checks; unprivileged local users can open binder devices on Android, and binderfs is mountable in user namespaces (FS_USERNS_MOUNT), so only low privileges are required. UI:N - The attacker triggers the race entirely within their own process via concurrent munmap and binder ioctl calls; no victim interaction is needed. S:U - Successful exploitation yields privilege escalation within the same kernel/OS security authority (standard local LPE), not a VM/IOMMU/sandbox boundary crossing. C:H - Use-after-free of struct vm_area_struct enables heap reuse and controlled reads of reallocated object contents, providing an arbitrary kernel information-disclosure primitive. I:H - UAF of the VMA passed to vm_insert_page allows corruption of kernel memory/page-table state via heap spray, enabling arbitrary write and control-flow hijacking for code execution. A:H - The UAF causes kernel oops/panic (KASAN-confirmed use-after-free in vm_insert_page), so availability impact is high even without full exploitation.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | dd2283f2605e3b3e9c61bcae844b34f2afa4813f to < 27a594bc7a7c8238d239e3cdbcf2edfa3bbe9a1b (affected · git)dd2283f2605e3b3e9c61bcae844b34f2afa4813f to < 015ac18be7de25d17d6e5f1643cb3b60bfbe859e (affected · git)dd2283f2605e3b3e9c61bcae844b34f2afa4813f to < 622ef885a89ad04cfb76ee478fb44f051125d1f1 (affected · git)dd2283f2605e3b3e9c61bcae844b34f2afa4813f to < 925e6b6f82c9c80ab3c17acbde8d16f349da7d26 (affected · git)dd2283f2605e3b3e9c61bcae844b34f2afa4813f to < 1ec3f76a436d750fd5023caec5da0494fc2870d2 (affected · git)dd2283f2605e3b3e9c61bcae844b34f2afa4813f to < a43cfc87caaf46710c8027a8c23b8a55f1078f19 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.20 (affected)0 to < 4.20 (unaffected · semver)5.4.224 through 5.4.* (unaffected · semver)5.10.154 through 5.10.* (unaffected · semver)5.15.61 through 5.15.* (unaffected · semver)5.18.18 through 5.18.* (unaffected · semver)5.19.2 through 5.19.* (unaffected · semver)6.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/015ac18be7de25d17d6e5f1643cb3b60bfbe859e
- https://git.kernel.org/stable/c/1ec3f76a436d750fd5023caec5da0494fc2870d2
- https://git.kernel.org/stable/c/27a594bc7a7c8238d239e3cdbcf2edfa3bbe9a1b
- https://git.kernel.org/stable/c/622ef885a89ad04cfb76ee478fb44f051125d1f1
- https://git.kernel.org/stable/c/925e6b6f82c9c80ab3c17acbde8d16f349da7d26
- https://git.kernel.org/stable/c/a43cfc87caaf46710c8027a8c23b8a55f1078f19
Provider assertions
1Linux · cna
android: binder: stop saving a pointer to the VMA
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d65cddaf5cbb54fb7df5dfa2f8cf1804e0baca1ad9dc7dc67394e94cb710bba0
- Ingested
- 23 Sep 2026, 08:04:39 UTC
- Source record
- Official CVE record