GHSL-2020-007: Out-of-bounds write in Android Open Source Project - CVE-2020-0072
An out-of-bounds write occurs in Android's NFC code when handling a TLV response, because a counter can be incremented beyond the array size. An attacker within NFC range could potentially achieve remote code execution on the NFC daemon.
An Out-Of-Bounds write of locktlv in Android’s rwt2thandletlvdetectrsp (NFC) could leads to remote code execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the code fails to check that the number of lock TLVs does not exceed the maximum allowed before writing to the array.
Impact
An attacker within NFC range could obtain remote code execution on the Android device's NFC daemon.
What the attacker needed
Attacker within NFC range; victim device with NFC enabled
The fix
The issue was fixed in the April 2020 Android Security patch.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a memory corruption bug in Android's NFC software. When the phone reads a specially crafted NFC tag, a counter that tracks how many lock entries have been seen can grow too large, causing data to be written past the end of a fixed-size array. This could let someone nearby take control of the NFC service.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.