CVE-2022-50240
Last modified
CVE-2022-50240 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
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. [akpm@linux-foundation.org: fix drivers/android/binder_alloc_selftest.c]
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 4.20, < 5.4.224 |
| Linux | Linux Kernel | >= 5.5, < 5.10.154 |
| Linux | Linux Kernel | >= 5.11, < 5.15.61 |
| Linux | Linux Kernel | >= 5.16, < 5.18.18 |
| Linux | Linux Kernel | >= 5.19, < 5.19.2 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-50240?
How severe is CVE-2022-50240?
How do I fix CVE-2022-50240?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-50234In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-50235In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-50236In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50237The ed25519-dalek crate before 2 for Rust allows a double pu…5.9
- CVE-2022-50238The on-endpoint Microsoft vulnerable driver blocklist is not…7.4
- CVE-2022-50239In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2022-50241In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-50242In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50243In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-50244In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50245In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-50246In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2022-50240?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
