# CVE-2022-40503: Buffer over-read in Bluetooth Host.

> An attacker can read sensitive memory during A2DP streaming due to a buffer over-read in the Bluetooth Host on Android devices.

- **Severity:** High 8.2 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 4 Apr 2023
- **Updated:** 3 Aug 2024
- **Also known as:** 3237187, A-258057241, ASB-A-258057241, GHSA-h95q-46mc-6g3w

## What is CVE-2022-40503?

CVE-2022-40503 is a high-severity vulnerability in Qualcomm Apq8017 Firmware, published on 4 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Information disclosure due to buffer over-read in Bluetooth Host while A2DP streaming.

Weakness: CWE-125 (Out-of-bounds Read), CWE-126 (Buffer Over-read)

## Which versions are affected by CVE-2022-40503?

It affects 185 products.


Products: Qualcomm 8905 Firmware, Qualcomm 8909 Firmware, Qualcomm 8953 Firmware, Qualcomm 8953pro Firmware, Qualcomm 9206 Lte Modem Firmware, Qualcomm Apq5053-Aa Firmware, Qualcomm Apq8017 Firmware, Qualcomm Apq8053-Aa Firmware, Qualcomm Apq8053-Ac Firmware, Qualcomm Apq8053-Lite Firmware, Qualcomm Apq8064au Firmware, Qualcomm Aqt1000 Firmware, Qualcomm Ar8031 Firmware, Qualcomm C-V2x 9150 Firmware, Qualcomm Csra6620 Firmware, Qualcomm Csra6640 Firmware, Qualcomm Flight Rb5 5g Platform Firmware, Qualcomm Mdm9250 Firmware, Qualcomm Mdm9628 Firmware, Qualcomm Mdm9650 Firmware and 165 more.

## How do I fix CVE-2022-40503?

Apply the vendor's patch.

## Is CVE-2022-40503 being exploited?

There is no known exploitation of CVE-2022-40503 in the wild and no public exploit code.

## Other vulnerabilities in Qualcomm Apq8017 Firmware

- [CVE-2023-21666](https://insights.sbomify.com/CVE-2023-21666/): Improper Release of Memory Before Removing Last Reference (`Memory Leak`) in Graphics (high 8.4)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-40503 and fix it if it is affected.

What it is: CVE-2022-40503 is a high-severity vulnerability in Qualcomm Apq8017 Firmware, published on 4 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2022-40503 in the wild and no public exploit code.

Affected product: Qualcomm Apq8017 Firmware. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-40503/ (Markdown: https://insights.sbomify.com/CVE-2022-40503/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-40503
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-40503
- OSV: https://osv.dev/vulnerability/CVE-2022-40503

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-40503/
Summaries are generated and may contain mistakes; the official description above is the record.
