CVE-2023-21241: Out of Bounds Write in libnfc-nci

platform/system/nfc Updated 02 Oct 2025

Summary

01/07/2023
Yes i
High
Not published

CVE-2023-21241: In rw_i93_send_to_upper of rw_i93.cc, there is a possible out of bounds write due to an integer overflow. Affects platform/system/nfc across 5 version ranges.

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

Fixed in 13-next:2023-07-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/system/nfc, which is a component of the Android ecosystem. It provides functionality for Near Field Communication (NFC) capabilities on Android devices. NFC allows for communication between devices in close proximity, enabling various applications such as contactless payments and file sharing. The libnfc-nci library is responsible for handling NFC communication protocols. However, a vulnerability has been discovered in the rw_i93_send_to_upper function of the rw_i93.cc file, which can lead to an out of bounds write due to an integer overflow.

Vulnerability Detail

The vulnerability in rw_i93_send_to_upper arises from an integer overflow, 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 allowing an attacker to gain unauthorized access or perform unauthorized actions on the affected device.

How To Fix

Minimum fixed version

13-next:2023-07-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. It is necessary to apply the official fix by updating the platform/system/nfc package to a non-vulnerable version.

Conclusion

In conclusion, the platform/system/nfc package in the Android ecosystem is vulnerable to an out of bounds write vulnerability in the rw_i93_send_to_upper function of the libnfc-nci library. This vulnerability can be exploited to locally escalate privileges without requiring additional execution privileges. It is crucial to update the package to a fixed version to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for platform/system/nfc →

Share this vulnerability

FAQ

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

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

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

The recommended mitigation is to update the platform/system/nfc package to a fixed version.

More information about the fix can be found in the official Android platform/system/nfc documentation.

Related vulnerabilities

Recent vulnerabilities recorded for platform/system/nfc.

How To Fix

Minimum fixed version

13-next:2023-07-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