CVE-2022-20238: Android Kernel Memory Mapping Vulnerability

:unknown: Updated 02 Oct 2025

Summary

01/07/2022
Yes i
High
Not published

CVE-2022-20238: 'remap_pfn_range' here may map out of size kernel memory (for example, may map the kernel area), and because the 'vma->vm_page_prot' can also be controlled by userspace, so userspace may map the kernel area to be writabl... Affects :unknown: versions >= SoCVersion:0, < SoCVersion:2022-07-05. Fixed in SoCVersion:2022-07-05. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Android operating system is a widely used open-source platform for mobile devices, providing a rich application framework and a robust environment for developers. It allows applications to access system resources and hardware, enabling a wide range of functionalities. However, vulnerabilities in the kernel can lead to severe security risks, including unauthorized access to sensitive areas of memory.

Vulnerability Detail

The vulnerability identified as CVE-2022-20238 arises from the 'remap_pfn_range' function, which may allow mapping of kernel memory that exceeds its size. This can potentially lead to mapping the kernel area as writable, which can be exploited by userspace applications. The issue is exacerbated by the fact that 'vma->vm_page_prot' can be controlled by userspace, allowing malicious actors to manipulate memory protections and gain elevated privileges.

How To Fix

Minimum fixed version

SoCVersion:2022-07-05

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds available for this vulnerability. The best course of action is to apply the available patch by updating the system.

Conclusion

CVE-2022-20238 is a significant vulnerability in the Android kernel that poses a risk of unauthorized memory access. Users are strongly encouraged to update their systems to the latest version to protect against potential exploits. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for :unknown: →

Share this vulnerability

FAQ

CVE-2022-20238 is a vulnerability in the Android kernel that allows userspace applications to potentially map kernel memory as writable, leading to security risks.

You can use the Vulert platform to check if your application is affected by this vulnerability. Visit Vulert Scanner to analyze your application without any signup.

If exploited, this vulnerability could allow malicious applications to gain elevated privileges, potentially compromising the integrity and confidentiality of the system.

Yes, a patch was released on July 5, 2022. It is crucial to update your Android system to this version to mitigate the risk.

If you cannot update your device, it is advisable to limit the installation of untrusted applications and monitor your device for any unusual behavior.

Related vulnerabilities

Recent vulnerabilities recorded for :unknown:.

How To Fix

Minimum fixed version

SoCVersion:2022-07-05

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback