text
stringlengths
0
1.99k
| Refine only | Full recursive refinement |
| (1 WP max) | (3 WP max) |
|----------------------------+----------------------------|
| 0000 | 0010 | 1000 | 0000 |
|----------------------------+----------------------------|
| 00 | 10 | 10 | 00 |
|----------------------------+----------------------------|
| 1 | 0 | 1 | 0 |
|----------------------------+----------------------------|
| Segment 9 active | Segment 7 active |
'------+---------------------+--------------------+-------'
| |
| [Segment Level Split] |
| Where recently accessed address |
| is at bit/qword 36 in segment 7 |
.------V---------------------+--------------------V-------.
| Segment 9 | Segment 7 |
| [not recently accessed] | [recently accessed] |
|----------------------------|----------------------------|
| -> pageSegments[9] | -> pageSegments[7] |
| 000000000000.... | = 0x800000000000 |
| 0000111000000000 | = bit 47 set |
|----------------------------+----------------------------|
| Refine only | Full recursive refinement |
| (1 WP max) | (3 WP max) |
|----------------------------+----------------------------|
| -> Refined mask = | -> Refined to 1-bit |
| 0000111100000000 | region at bit 47 |
|----------------------------+----------------------------|
| Emit 32B WP (qwords 8-11) | Emit 8B WP @ qword 47 |
|----------------------------+----------------------------|
| | |
| Covers 32 bytes starting | Bit 47 corresponds to |
| at qword 8, as required | qword 47 within segment |
| by power-of-two size and | 7, covering 8 bytes |
| alignment constraints. | starting at that offset. |
| | |
|---------------------------------------------------------|
| |
| Only two watchpoints are used, leaving two spares |
| available to reduce the coverage footprint on other |
| concurrently tracked pages, one per page. |
| |
'---------------------------------------------------------'
The Strict Recent Access Bias strategy and its supporting refinement logic
are implemented within the attached PageMap class, which encapsulates the
logic for bitmap refinement, recursive splitting, watchpoint allocation,
and dynamic reprogramming. It serves as the core engine behind E0's
fine-grained memory instrumentation, translating abstract bitmaps and
runtime traps into concrete hardware configurations with minimal overhead.
By integrating this mechanism directly into the execution pipeline, E0
maintains high precision across guarded regions while incurring virtually
no performance penalty during tight memory loops or localized access
patterns.
--[ 10 - Validating E0: From Simple Benchmarks to Real-World Testing
During the early development of Selective Symbolic Instrumentation in E0,
we first validated the framework on a suite of simple, intentionally
vulnerable programs. In these tests, E0 reliably discovered low-level
flaws like "out-of-bounds accesses, integer overflows, null dereferences,
and the like" by mutating input samples along symbolically traced paths.
However, it struggled to uncover vulnerabilities that require higher-level
semantic reasoning, revealing a gap that ultimately motivated our AI-driven
analysis layer (detailed in Section 12). This AI layer enhances E0's
ability to detect complex vulnerabilities by reasoning over symbolic
outputs and cross-function context, complementing the symbolic engine's
precision.
To measure E0's true capabilities, we then turned to a real-world, large-
scale target: Apple's ImageIO library. With virtually no prior experience
in image-format research, we chose ImageIO precisely because it has
undergone extensive fuzzing and security review, so finding anything new
would be a strong signal of E0's power. In a brief, multi-hour session, E0
became unresponsive because, at that stage, it lacked the ability to
handle process hangs in monitoring the test harness. Investigating that
behavior uncovered a previously unknown bug in ImageIO's WebP parser,
later filed as CVE-2024-44297.
In the next section, we present a detailed case study of CVE-2024-44297,
walking through how E0 detected, isolated, and ultimately helped us
reproduce this real-world vulnerability.
--[ 11 - Case Study: CVE-2024-44297 in ImageIO
Apple's advisory accurately summarizes the impact: Processing a maliciously
crafted message may lead to a denial-of-service. The root cause was in the
IIO_Reader_WebP::validateWebP routine, which took an untrusted value from
the image, loaded into register w0 and used it in an unchecked arithmetic
operation, triggering an integer overflow. In the snippet below, an
immediate value is added to w0 without any prior validation:
.------------------------------------------------------------------.
| add w26, w0, #0x8 // w26 = chunkSizeWithPadding |
| ldr x8, [sp, #0x68] // |
| sub x27, x8, #0x8 // |
| ldr x8, [x20, #0x8] // x8 = dataInfo->bufferSize. |
| cmp x8, w26 // compare bufferSize against w26 |
| b.ls 0x18b020ee8 // branch if bufferSize <= w26 |