CVE-2022-20462: Out of Bounds Write in phNxpNciHal_write_unlocked Function in phNxpNciHal.cc in nfc_nci_nxp

platform/hardware/nxp/nfc Updated 02 Oct 2025

Summary

01/11/2022
Yes i
High
Not published

CVE-2022-20462: In phNxpNciHal_write_unlocked of phNxpNciHal.cc, there is a possible out of bounds write due to a missing bounds check. Affects platform/hardware/nxp/nfc across 5 version ranges.

>= 10:0, < 10:2022-11-01 >= 11:0, < 11:2022-11-01 >= 12:0, < 12:2022-11-01 >= 12L:0, < 12L:2022-11-01 >= 13:0, < 13:2022-11-01

Fixed in 10:2022-11-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 Your last release was probably never penetration tested 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 under scrutiny is platform/hardware/nxp/nfc, which is a component of the Android ecosystem. It is responsible for handling Near Field Communication (NFC) functionality on devices. NFC allows for short-range communication between devices, enabling various applications such as contactless payments and data transfer. This vulnerability affects versions 10 and above of the Android operating system.

Vulnerability Detail

The vulnerability resides in the phNxpNciHal_write_unlocked function in phNxpNciHal.cc file of the nfc_nci_nxp package. It is caused by a missing bounds check, which can result in an out of bounds write. An attacker could exploit this vulnerability to escalate their privileges locally without requiring additional execution privileges. Notably, user interaction is not necessary for exploitation. The impact of this vulnerability could be severe, potentially leading to unauthorized access or control over the affected device.

How To Fix

Minimum fixed version

10:2022-11-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

No workaround has been provided for this vulnerability.

Conclusion

In conclusion, the phNxpNciHal_write_unlocked function in the nfc_nci_nxp package is vulnerable to an out of bounds write. This vulnerability could allow an attacker to locally escalate their privileges without requiring additional execution privileges. It is crucial to update to a version of the package that includes the fix released on November 1, 2022. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for platform/hardware/nxp/nfc →

Share this vulnerability

FAQ

This vulnerability could allow an attacker to locally escalate their privileges without requiring additional execution privileges. It could potentially lead to unauthorized access or control over the affected device.

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

Versions 10 and above of the Android operating system are affected by this vulnerability.

The fix for this vulnerability was released on November 1, 2022.

Related vulnerabilities

Recent vulnerabilities recorded for platform/hardware/nxp/nfc.

How To Fix

Minimum fixed version

10:2022-11-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