Heap-use-after-free vulnerability in platform/system/netd

platform/system/netd Updated 02 Oct 2025

Summary

01/12/2023
Yes i
High
Not published

CVE-2023-40084: In run of MDnsSdListener.cpp, there is a possible memory corruption due to a use after free. Affects platform/system/netd across 6 version ranges.

>= 11:0, < 11:2023-12-01 >= 12:0, < 12:2023-12-01 >= 12L:0, < 12L:2023-12-01 >= 13:0, < 13:2023-12-01 >= 14:0, < 14:2023-12-01 >= 14-next:0, < 14-next:2023-12-01

Fixed in 14-next:2023-12-01. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package platform/system/netd is a component of the Android ecosystem that handles network-related functionalities. It is responsible for managing network interfaces, routing tables, and DNS resolution. The package is an integral part of the Android operating system and is present in versions 11 and above. However, it is vulnerable to a heap-use-after-free vulnerability in the MDnsSdListener::Monitor::run function.

Vulnerability Detail

The vulnerability arises due to a memory corruption issue caused by a use-after-free bug. This bug can be exploited locally to escalate privileges without requiring any additional execution privileges. The vulnerability exists in the MDnsSdListener.cpp file and does not require user interaction for exploitation. If successfully exploited, an attacker could gain elevated privileges on the affected Android device.

How To Fix

Minimum fixed version

14-next:2023-12-01

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 →

Conclusion

The platform/system/netd package in the Android ecosystem is vulnerable to a heap-use-after-free vulnerability. This vulnerability can be exploited locally to escalate privileges without requiring additional execution privileges. It is recommended to update the package to the latest version to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for platform/system/netd →

Share this vulnerability

FAQ

platform/system/netd is a package in the Android ecosystem that handles network-related functionalities, such as managing network interfaces, routing tables, and DNS resolution.

A use-after-free vulnerability occurs when a program continues to use a memory address after it has been freed. This can lead to memory corruption and potentially allow an attacker to execute arbitrary code or escalate privileges.

This vulnerability can be exploited locally on an Android device by leveraging the use-after-free bug in the MDnsSdListener::Monitor::run function. Successful exploitation can result in privilege escalation.

No, user interaction is not required for the exploitation of this vulnerability.

Versions 11, 12, 12L, 13, and 14 of the Android operating system are affected by this vulnerability.

How To Fix

Minimum fixed version

14-next:2023-12-01

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