Memory-safety bugs in NetworkUtils.cpp generally
- Fixed in 15 days
- Paid in 19 days
- Disclosed after 15 days
User Agent: Mozilla/5.0 (Windows; rv:) Gecko/20100101 Firefox/. Build ID: 20150305021524
Steps to reproduce:
38.0.1\dom\system\gonk\NetworkUtils.cpp has several memory-safety bugs resulting from the use of snprintf. The problem is that it assumes that snprintf always null-terminates the stack-based destination string. This is not, however, guaranteed unless the result string length is < the specified character count, and, of course, automatic variables are generally uninitialized, so the result string won't be null-terminated by default.
There are 3 good examples of this bug in NetworkUtils::setAccessPoint, and several others throughout the module.
If any of the strings used as input to snprintf are under external control, this bug could cause the disclosure of sensitive information and/or allow an attacker to corrupt Firefox's address space and/or send attacker-designated network commands and/or allow execution of attacker-chosen code.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity memory corruption bug in Wifi. Mozilla made it public on 12 June 2015 as CVE-2015-4517.
About 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.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
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.