Use-after-free vulnerability in libstagefright_httplive

platform/frameworks/av Updated 02 Oct 2025

Summary

01/12/2023
Yes i
Critical
Not published

CVE-2023-40077: In multiple functions of MetaDataBase.cpp, there is a possible UAF write due to a race condition. Affects platform/frameworks/av 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 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 libstagefright_httplive library is part of the Android platform's frameworks/av package. It provides support for HTTP Live Streaming (HLS) playback in media applications. HLS is a streaming protocol that allows media content to be delivered over HTTP. The libstagefright_httplive library is responsible for parsing and playing HLS streams on Android devices.

Vulnerability Detail

The vulnerability identified in the libstagefright_httplive library is a use-after-free issue. It occurs in multiple functions of the MetaDataBase.cpp file due to a race condition. This vulnerability could be exploited by an attacker to escalate their privileges remotely without requiring any additional execution privileges. The exploitation does not require user interaction. The use-after-free vulnerability can lead to arbitrary code execution or other security compromises.

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 →

Workaround

There is no specific workaround mentioned for this vulnerability. However, developers can consider implementing general security measures such as input validation and sanitization to mitigate the risk of exploitation.

Conclusion

The use-after-free vulnerability in the libstagefright_httplive library poses a critical security risk as it allows for remote privilege escalation. Developers should promptly update their applications to use the fixed version of the frameworks/av package to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for platform/frameworks/av →

Share this vulnerability

FAQ

libstagefright_httplive is a library in the Android frameworks/av package that enables HTTP Live Streaming (HLS) playback in media applications.

A use-after-free vulnerability occurs when a program continues to use a memory location after it has been freed. This can lead to crashes, arbitrary code execution, or other security compromises.

This vulnerability can be exploited remotely by an attacker to escalate their privileges without requiring additional execution privileges. Exploitation does not require user interaction.

No, only versions 11, 12, 12L, 13, and 14 of the Android platform are affected. The vulnerability has been fixed in later versions.

The fixed version of the frameworks/av package can be obtained from the official Android source code repository.

Related vulnerabilities

Recent vulnerabilities recorded for platform/frameworks/av.

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