CVE-2024-31335: Android Device Memory Server Arbitrary Code Execution Vulnerability

:unknown: Updated 02 Oct 2025

Summary

01/07/2024
Yes i
High
Not published

CVE-2024-31335: In DevmemIntChangeSparse2 of devicemem_server.c, there is a possible arbitrary code execution due to a logic error in the code. Affects :unknown: versions >= SoCVersion:0, < SoCVersion:2024-07-05. Fixed in SoCVersion:2024-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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Android Device Memory Server is a critical component of the Android operating system, responsible for managing device memory and ensuring efficient resource allocation. It plays a vital role in maintaining system performance and stability. However, due to a logic error in the code, it is susceptible to a vulnerability that allows for arbitrary code execution, potentially leading to local privilege escalation.

Vulnerability Detail

In the function DevmemIntChangeSparse2 of devicemem_server.c, a logic error exists that could allow an attacker to execute arbitrary code. This vulnerability does not require any additional execution privileges, making it particularly dangerous as it can be exploited locally without user interaction. If successfully exploited, it could lead to unauthorized access to kernel-level operations, compromising the integrity and security of the device.

How To Fix

Minimum fixed version

SoCVersion:2024-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 patch as soon as it becomes available.

Conclusion

CVE-2024-31335 represents a significant security risk within the Android Device Memory Server, allowing for arbitrary code execution and potential privilege escalation. Users are strongly advised to update their devices to the latest patched version to safeguard against this vulnerability.

See every vulnerability recorded for :unknown: →

Share this vulnerability

FAQ

CVE-2024-31335 is a vulnerability in the Android Device Memory Server that allows for arbitrary code execution due to a logic error in the code.

The vulnerability can be exploited locally without user interaction, allowing an attacker to execute arbitrary code and potentially escalate privileges within the kernel.

Exploitation of this vulnerability could lead to unauthorized access to sensitive system resources, compromising the security and integrity of the device.

Yes, a patch has been released and users should update their devices to the version released on July 5, 2024, to mitigate this vulnerability.

You can use Vulert, which monitors open-source vulnerabilities in real-time. By utilizing the Vulert playground, you can check if your application is affected without any signup.

Related vulnerabilities

Recent vulnerabilities recorded for :unknown:.

How To Fix

Minimum fixed version

SoCVersion:2024-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