CVE-2022-50240

android: binder: stop saving a pointer to the VMA

7.8 high EPSS 0.18%

Published 15 Sep 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2022-50240

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50240 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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]

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.33% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from dd2283f2605e3b3e9c61bcae844b34f2afa4813f, before 27a594bc7a7c8238d239e3cdbcf2edfa3bbe9a1b
affected from dd2283f2605e3b3e9c61bcae844b34f2afa4813f, before 015ac18be7de25d17d6e5f1643cb3b60bfbe859e
affected from dd2283f2605e3b3e9c61bcae844b34f2afa4813f, before 622ef885a89ad04cfb76ee478fb44f051125d1f1
affected from dd2283f2605e3b3e9c61bcae844b34f2afa4813f, before 925e6b6f82c9c80ab3c17acbde8d16f349da7d26
affected from dd2283f2605e3b3e9c61bcae844b34f2afa4813f, before 1ec3f76a436d750fd5023caec5da0494fc2870d2
affected from dd2283f2605e3b3e9c61bcae844b34f2afa4813f, before a43cfc87caaf46710c8027a8c23b8a55f1078f19
Other versions: unaffected
Linux
affected 4.20
unaffected before 4.20
unaffected from 5.4.224 up to and including 5.4.*
unaffected from 5.10.154 up to and including 5.10.*
unaffected from 5.15.61 up to and including 5.15.*
unaffected from 5.18.18 up to and including 5.18.*
unaffected from 5.19.2 up to and including 5.19.*
unaffected 6.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50240 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50240

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50240
trivy image --scanners vuln IMAGE | grep CVE-2022-50240

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50240 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.