CVE-2022-20539: Out of Bounds Write in parameterToHal Function in Effect.cpp in android.hardware.audio.effect@7.0-impl

platform/hardware/interfaces Updated 02 Oct 2025

Summary

01/12/2022
Yes i
Moderate
Not published

CVE-2022-20539: In parameterToHal of Effect.cpp, there is a possible out of bounds write due to a missing bounds check. Affects platform/hardware/interfaces versions >= 13:0, < 13:2022-12-01. Fixed in 13:2022-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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The android.hardware.audio.effect@7.0-impl package is a component of the Android operating system that provides audio effect functionality. It is responsible for processing audio signals and applying various effects to enhance the audio experience. This package is utilized by the audio server in Android to handle audio effects. However, a vulnerability has been discovered in the parameterToHal function of the Effect.cpp file within this package.

Vulnerability Detail

The vulnerability in the parameterToHal function of Effect.cpp arises due to a missing bounds check. This flaw can be exploited to trigger an out of bounds write, potentially leading to a local escalation of privilege within the audio server. The attacker would require system execution privileges to exploit this vulnerability, and no user interaction is necessary for the exploitation to occur. The impact of this vulnerability could be significant, as it could allow an attacker to gain elevated privileges and potentially execute arbitrary code within the audio server.

How To Fix

Minimum fixed version

13:2022-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

Currently, no known workarounds are available for this vulnerability. It is advised to apply the official fix as soon as possible.

Conclusion

The android.hardware.audio.effect@7.0-impl package is vulnerable to an out of bounds write in the parameterToHal function of Effect.cpp. This vulnerability can be exploited by an attacker with system execution privileges to escalate their privileges within the audio server. It is crucial to update the affected systems to the fixed version 13 of the package to mitigate the risk of exploitation.

See every vulnerability recorded for platform/hardware/interfaces →

Share this vulnerability

FAQ

The android.hardware.audio.effect@7.0-impl package is a component of the Android operating system that provides audio effect functionality. It is responsible for processing audio signals and applying various effects to enhance the audio experience.

The vulnerability allows for an out of bounds write, which can lead to a local escalation of privilege within the audio server. An attacker with system execution privileges could potentially exploit this vulnerability to execute arbitrary code within the audio server.

No, user interaction is not needed for exploitation. The vulnerability can be exploited without any user involvement.

Currently, no known workarounds are available for this vulnerability. It is recommended to apply the official fix provided by the Android source repository.

The fix for this vulnerability can be obtained by updating the android.hardware.audio.effect@7.0-impl package to version 13. The fix is available in the official Android source repository.

Related vulnerabilities

Recent vulnerabilities recorded for platform/hardware/interfaces.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

13:2022-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