Skip to content
Memory corruption Advisory Advanced CVE-2024-3157

Out of bounds write in Compositing (CVE-2024-3157)

A deserialisation routine for a shared-memory bitmap accepted an image size that did not match the actual shared memory size, so the bitmap could reference memory beyond the mapping. An attacker who can send this structure could cause an out-of-bounds read or write in the browser or GPU process, leading to a crash and potentially memory corruption.

DarkNavy Follow

Originally disclosed on Chrome VRP

Bounty$21,000 High View original
  • Fix shipped in 16 days

VULNERABILITY DETAILS

When the browser process receives a mojo param containing BitmapInSharedMemory [0], it will call a handwritten deserialization function StructTraits<viz::mojom::BitmapInSharedMemoryDataView, SkBitmap>::Read [1]

C++
  if (!sk_bitmap->installPixels(image_info, mapping_ptr->memory(),
                                data.row_bytes(), &DeleteSharedMemoryMapping,
                                mapping_ptr.get())) {

The shared memory is used as the actual data of the bitmap by calling sk_bitmap->installPixels. However, only the data pointer of the shared memory is passed into the function at this point, and the size of the shared memory is ignored. The image size stored in image_info may not be consistent with the memory size contained in mapping_ptr. Therefore, when the image sizes in image_info is larger than the actual size of the shared memory, an out-of-bounds memory issue will occur here.

[0] https://source.chromium.org/chromium/chromium/src/+/main:services/viz/public/mojom/compositing/bitmap_in_shared_memory.mojom;drc=098756533733ea50b2dcb1c40d9a9e18d49febbe;l=14

[1] https://source.chromium.org/chromium/chromium/src/+/main:services/viz/public/cpp/compositing/bitmap_in_shared_memory_mojom_traits.cc;drc=098756533733ea50b2dcb1c40d9a9e18d49febbe;l=108

BISECT

Introduced by https://chromium.googlesource.com/chromium/src/+/cfa7e4010dd5eafaf1e37853262ccf8af407fa61 which is the first commit of BitmapInSharedMemory mojo traits.

VERSION

Chrome Version: stable Operating System: All

REPRODUCTION CASE

  1. Apply the poc.diff and rebuild.
  2. Repeatedly opening new tabs will constantly trigger the vulnerable code.

Note:

  • We did not investigate which operations would trigger the sending of this structure. We found that opening a new tab would trigger it, so used this hastily.
  • Since the OOB occurs in shared memory, what the subsequent memory is and how large it is depends on the situation and can vary greatly under different OSes and environments.

CRASH INFORMATION

Type of crash: browser Crash log:

[479959:480050:0325/193946.058039:ERROR:bitmap_in_shared_memory_mojom_traits.cc(40)] In process: gpu-process
[479959:480050:0325/193946.058418:ERROR:bitmap_in_shared_memory_mojom_traits.cc(66)] Set bad shared memory size from 623616 to 4096
[0325/193946.084987:ERROR:elf_dynamic_array_reader.h(64)] tag not found
Received signal 11 SEGV_MAPERR 75a2c9707000
#0 0x5f1cd3123782 base::debug::CollectStackTrace() [../../base/debug/stack_trace_posix.cc:1039:7]
#1 0x5f1cd3111442 base::debug::StackTrace::StackTrace() [../../base/debug/stack_trace.cc:229:20]
#2 0x5f1cd31231a1 base::debug::(anonymous namespace)::StackDumpSignalHandler() [../../base/debug/stack_trace_posix.cc:457:3]
#3 0x75a2d8c42520 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x4251f)
#4 0x5f1cd3ae4c59 (/root/chromium/src/out/debug/chrome+0x9276c58)
  r8: 0000000000000001  r9: 00005f1cd3ae4b60 r10: 0000000000000180 r11: 000075a2cd1edac8
 r12: 00001d1c04968110 r13: 0000000000000000 r14: 0000000000000001 r15: 0000000000000008
  di: 00001d1c04c230a0  si: 000075a2c9707000  bp: 000075a2cd1ed860  bx: 00001d1c056a6c60
  dx: 00001d1c056a6fa0  ax: 0000000000000001  cx: 0000000000000080  sp: 000075a2cd1ed708
  ip: 00005f1cd3ae4c59 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000004
 trp: 000000000000000e msk: 0000000000000000 cr2: 000075a2c9707000
[end of stack trace]

CREDIT INFORMATION

Reporter credit: DARKNAVY

The original report as published on the Chromium issue tracker, by DarkNavy. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Chrome's browser process and its GPU process talk to each other over Mojo, Chromium's IPC system. One of the structures that crosses that boundary is BitmapInSharedMemory, defined in services/viz/public/mojom/compositing/bitmap_in_shared_memory.mojom. As the name suggests, it carries a bitmap whose pixel data lives in a shared memory region rather than being copied through the message.

Because the structure is deserialised by hand-written code rather than generated code, the receiving side has to validate the relationship between the metadata and the shared memory region itself. The report shows that this validation was missing, and that a mismatch between the two leads to an out-of-bounds write in the compositing path. The issue is tracked as CVE-2024-3157 and was reported through the Chrome VRP by DARKNAVY.

Setup

  • Target: Google Chrome, stable channel.
  • Operating system: all platforms are listed as affected.
  • Component: Compositing, specifically the BitmapInSharedMemory Mojo traits.
  • Tooling: a locally built Chromium tree, patched with the reporter's poc.diff and rebuilt.

The reporter notes that they did not investigate which higher-level operations cause this structure to be sent. They found that opening a new tab triggers it, and used that as the trigger for the proof of concept.

Finding it

When the browser process receives a Mojo parameter containing a BitmapInSharedMemory, it calls the hand-written deserialisation function StructTraits<viz::mojom::BitmapInSharedMemoryDataView, SkBitmap>::Read. The relevant part of that function is:

C++
  if (!sk_bitmap->installPixels(image_info, mapping_ptr->memory(),
                                data.row_bytes(), &DeleteSharedMemoryMapping,
                                mapping_ptr.get())) {

installPixels is given the shared memory's data pointer via mapping_ptr->memory(), together with the image_info that describes the bitmap's dimensions and format. What is not passed in, and what the code does not check, is the size of the shared memory region held by mapping_ptr. The image dimensions in image_info are therefore trusted independently of the amount of memory actually backing them.

If image_info describes an image larger than the shared memory region, the bitmap will be set up to span more memory than exists. Any access to the bitmap beyond the end of the mapping is then out of bounds. The reporter characterises this as an out-of-bounds memory issue arising directly at this point.

Exploitation

Step 1: Build a patched browser

Apply the proof-of-concept diff and rebuild Chromium:

Text
1. Apply the poc.diff and rebuild.

The diff itself is not reproduced in the report.

Step 2: Trigger the vulnerable path

Text
2. Repeatedly opening new tabs will constantly trigger the vulnerable code.

Opening new tabs causes the structure to be sent to the browser process, where the deserialisation function runs and installs pixels over a mapping that is too small. The reporter is explicit that they did not map out which operations send this structure in general; opening a new tab was simply a convenient trigger.

Step 3: Observe the crash

The crash occurs in the browser process. The log shows the size mismatch being reported before the fault:

Text
[479959:480050:0325/193946.058039:ERROR:bitmap_in_shared_memory_mojom_traits.cc(40)] In process: gpu-process
[479959:480050:0325/193946.058418:ERROR:bitmap_in_shared_memory_mojom_traits.cc(66)] Set bad shared memory size from 623616 to 4096
[0325/193946.084987:ERROR:elf_dynamic_array_reader.h(64)] tag not found
Received signal 11 SEGV_MAPERR 75a2c9707000
#0 0x5f1cd3123782 base::debug::CollectStackTrace() [../../base/debug/stack_trace_posix.cc:1039:7]
#1 0x5f1cd3111442 base::debug::StackTrace::StackTrace() [../../base/debug/stack_trace.cc:229:20]
#2 0x5f1cd31231a1 base::debug::(anonymous namespace)::StackDumpSignalHandler() [../../base/debug/stack_trace_posix.cc:457:3]
#3 0x75a2d8c42520 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x4251f)
#4 0x5f1cd3ae4c59 (/root/chromium/src/out/debug/chrome+0x9276c58)
  r8: 0000000000000001  r9: 00005f1cd3ae4b60 r10: 0000000000000180 r11: 000075a2cd1edac8
 r12: 00001d1c04968110 r13: 0000000000000000 r14: 0000000000000001 r15: 0000000000000008
  di: 00001d1c04c230a0  si: 000075a2c9707000  bp: 000075a2cd1ed860  bx: 00001d1c056a6c60
  dx: 00001d1c056a6fa0  ax: 0000000000000001  cx: 0000000000000080  sp: 000075a2cd1ed708
  ip: 00005f1cd3ae4c59 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000004
 trp: 000000000000000e msk: 0000000000000000 cr2: 000075a2c9707000
[end of stack trace]

The line Set bad shared memory size from 623616 to 4096 records the size mismatch. The process then dies with SIGSEGV (SEGV_MAPERR) at address 75a2c9707000, which matches the si register in the dump. The faulting frame is inside the Chrome binary at +0x9276c58.

The reporter adds an important caveat about what lies beyond the mapping: because the out-of-bounds access happens in shared memory, what follows the region and how large it is depends on the situation and can vary greatly between operating systems and environments.

Root cause

The deserialiser trusts the dimensions in image_info without comparing them against the size of the shared memory region. installPixels is handed the raw pointer from mapping_ptr->memory() and the row stride from data.row_bytes(), but the mapping's length is never consulted. The bitmap is therefore configured to describe more memory than the mapping provides, and subsequent pixel access runs past the end of the region.

The bisect points to the commit that introduced the BitmapInSharedMemory Mojo traits, [redacted], as the first commit containing the vulnerable code. The report does not describe any existing check that should have caught the mismatch; the debug log line about the bad shared memory size is the only size-related signal shown, and it appears at the point of failure rather than preventing it.

Impact

The weakness is an out-of-bounds write in the compositing component. The crash occurs in the browser process. The reporter does not demonstrate controlled corruption or code execution; the proof of concept produces a crash. Because the out-of-bounds region lies in shared memory, the practical consequences depend heavily on the operating system and environment, as the reporter notes.

Fix

The report does not describe the fix that was applied. The appropriate change, given the root cause, is for the deserialisation path to validate that the size implied by image_info and data.row_bytes() fits within the shared memory region before calling installPixels, and to reject the message otherwise.

Variants to test

  • Other hand-written Mojo traits that pass a shared memory pointer into a consumer without its length. A positive result is a structure whose metadata can describe more memory than the mapping holds, with the consumer reading or writing past the end.
  • Other consumers of SkBitmap::installPixels fed from IPC-supplied metadata. A positive result is a bitmap whose dimensions and stride exceed the backing allocation.
  • Size fields carried separately from the buffer they describe in any IPC struct. A positive result is a mismatch that survives deserialisation and reaches a memory access.
  • The same BitmapInSharedMemory path on different operating systems. A positive result is a crash whose faulting address and surrounding memory differ from the one shown here, consistent with the reporter's note that the adjacent memory varies by environment.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 12 min read.

What happened, in plain words

Chrome is not one program but several programs working together. Two of them matter here: the browser process, which runs the window, the tabs and the address bar, and the GPU process, which does the drawing and the graphics work. They need to exchange information constantly, and they do it by sending each other messages. The system Chrome uses for those messages is called Mojo.

One of the things that can travel in a Mojo message is a picture, stored as a bitmap: a grid of coloured dots (pixels). To avoid copying large pictures through the message itself, Chrome puts the pixel data in a shared memory region, a piece of memory that both programs can see, and the message only carries a small description of the picture plus a handle to that region.

The description says how wide and tall the picture is and how the pixels are laid out. The handle says where the memory is. The bug is that the receiving side does not check that the description and the actual amount of memory agree. If the description claims a bigger picture than the memory can hold, Chrome happily sets up the bitmap to cover more memory than exists, and later touches memory that is not there. That kind of mistake is called an out-of-bounds write: writing past the end of a buffer.

The issue is tracked as CVE-2024-3157, was reported through the Chrome VRP (Chrome's Vulnerability Reward Program, which pays people for finding and reporting security bugs) by DARKNAVY, and was rated high severity. The affected area is Chrome's Compositing component, the part that assembles the layers of a page into the final image you see.

Context

Chrome splits its work across processes for safety. The browser process is the more privileged one; the GPU process does graphics. They talk over Mojo, Chromium's IPC system. IPC stands for inter-process communication: the way two separate programs on the same machine pass data to each other.

One of the structures that crosses that boundary is BitmapInSharedMemory, defined in services/viz/public/mojom/compositing/bitmap_in_shared_memory.mojom. A structure here is just a named bundle of fields, like a form with several boxes. As the name suggests, this one carries a bitmap whose pixel data lives in a shared memory region rather than being copied through the message.

Normally, Chrome generates the code that packs and unpacks these structures automatically. For this one, the code is hand-written. That matters: generated code tends to follow a fixed pattern, while hand-written code can forget a check. The receiving side has to validate the relationship between the description (the metadata) and the shared memory region itself. The report shows that this validation was missing, and that a mismatch between the two leads to an out-of-bounds write in the compositing path.

Setup

  • Target: Google Chrome, stable channel. The stable channel is the normal version most people run, as opposed to beta or developer builds.
  • Operating system: all platforms are listed as affected.
  • Component: Compositing, specifically the BitmapInSharedMemory Mojo traits. A trait is the piece of code that tells Mojo how to convert a structure to and from raw bytes.
  • Tooling: a locally built Chromium tree, patched with the reporter's poc.diff and rebuilt. Chromium is the open-source project Chrome is built from; building it yourself gives you a browser you can modify. A diff is a file describing changes to source code, and poc stands for proof of concept, a minimal demonstration that the bug is real.

The reporter notes that they did not investigate which higher-level operations cause this structure to be sent. They found that opening a new tab triggers it, and used that as the trigger for the proof of concept. In other words, they did not need to understand the whole picture to show the flaw; they found one everyday action that reaches the vulnerable code.

Finding it

When the browser process receives a Mojo parameter containing a BitmapInSharedMemory, it calls the hand-written deserialisation function StructTraits<viz::mojom::BitmapInSharedMemoryDataView, SkBitmap>::Read. Deserialisation is the reverse of packing data into bytes: turning the received bytes back into usable objects in memory. The relevant part of that function is:

C++
  if (!sk_bitmap->installPixels(image_info, mapping_ptr->memory(),
                                data.row_bytes(), &DeleteSharedMemoryMapping,
                                mapping_ptr.get())) {

Line by line:

  • if (!sk_bitmap->installPixels(...)) calls a function named installPixels on a bitmap object and checks whether it failed. installPixels tells the bitmap "your pixels live at this address, laid out like this".
  • image_info is the description of the picture: its width, height and pixel format.
  • mapping_ptr->memory() is the raw address of the shared memory region.
  • data.row_bytes() is how many bytes one row of pixels takes, also called the stride.
  • &DeleteSharedMemoryMapping is a function Chrome will call when the bitmap is finished with the memory, so the region gets cleaned up.
  • mapping_ptr.get() is the object that owns the mapping, passed along so that cleanup function has something to work with.

installPixels is given the shared memory's data pointer via mapping_ptr->memory(), together with the image_info that describes the bitmap's dimensions and format. What is not passed in, and what the code does not check, is the size of the shared memory region held by mapping_ptr. The image dimensions in image_info are therefore trusted independently of the amount of memory actually backing them.

A simple comparison: imagine someone hands you a form saying "this box contains 100 apples" and a box. If you never look at how big the box is, you will reach in for apple number 100 even if the box only holds 10. Here the form is image_info and the box is the shared memory region.

If image_info describes an image larger than the shared memory region, the bitmap will be set up to span more memory than exists. Any access to the bitmap beyond the end of the mapping is then out of bounds. The reporter characterises this as an out-of-bounds memory issue arising directly at this point.

Exploitation

Step 1: Build a patched browser

Apply the proof-of-concept diff and rebuild Chromium:

Text
1. Apply the poc.diff and rebuild.

This is the first instruction of the reproduction case: take the reporter's change file, apply it to the Chromium source, and compile a new browser. The diff itself is not reproduced in the report.

Step 2: Trigger the vulnerable path

Text
2. Repeatedly opening new tabs will constantly trigger the vulnerable code.

Opening new tabs causes the structure to be sent to the browser process, where the deserialisation function runs and installs pixels over a mapping that is too small. The reporter is explicit that they did not map out which operations send this structure in general; opening a new tab was simply a convenient trigger. The reporter describes this trigger as a hasty choice.

Step 3: Observe the crash

The crash occurs in the browser process. The log shows the size mismatch being reported before the fault:

Text
[479959:480050:0325/193946.058039:ERROR:bitmap_in_shared_memory_mojom_traits.cc(40)] In process: gpu-process
[479959:480050:0325/193946.058418:ERROR:bitmap_in_shared_memory_mojom_traits.cc(66)] Set bad shared memory size from 623616 to 4096
[0325/193946.084987:ERROR:elf_dynamic_array_reader.h(64)] tag not found
Received signal 11 SEGV_MAPERR 75a2c9707000
#0 0x5f1cd3123782 base::debug::CollectStackTrace() [../../base/debug/stack_trace_posix.cc:1039:7]
#1 0x5f1cd3111442 base::debug::StackTrace::StackTrace() [../../base/debug/stack_trace.cc:229:20]
#2 0x5f1cd31231a1 base::debug::(anonymous namespace)::StackDumpSignalHandler() [../../base/debug/stack_trace_posix.cc:457:3]
#3 0x75a2d8c42520 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x4251f)
#4 0x5f1cd3ae4c59 (/root/chromium/src/out/debug/chrome+0x9276c58)
  r8: 0000000000000001  r9: 00005f1cd3ae4b60 r10: 0000000000000180 r11: 000075a2cd1edac8
 r12: 00001d1c04968110 r13: 0000000000000000 r14: 0000000000000001 r15: 0000000000000008
  di: 00001d1c04c230a0  si: 000075a2c9707000  bp: 000075a2cd1ed860  bx: 00001d1c056a6c60
  dx: 00001d1c056a6fa0  ax: 0000000000000001  cx: 0000000000000080  sp: 000075a2cd1ed708
  ip: 00005f1cd3ae4c59 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000004
 trp: 000000000000000e msk: 0000000000000000 cr2: 000075a2c9707000
[end of stack trace]

What each part means:

  • The first two lines are error messages from bitmap_in_shared_memory_mojom_traits.cc, the file containing the hand-written trait code. The first says the message came from the GPU process. The second, Set bad shared memory size from 623616 to 4096, records the size mismatch.
  • Received signal 11 SEGV_MAPERR 75a2c9707000 is the crash itself. Signal 11 is SIGSEGV, the signal the operating system sends a program when it touches memory it is not allowed to touch. SEGV_MAPERR means the address is not mapped to any memory at all. The long number is the address that caused the fault.
  • The #0 to #4 lines are the stack trace: the list of function calls that were active when the crash happened, from the innermost outwards. #0 is the crash handler collecting the trace, #1 and #2 are more of the same reporting machinery, #3 is inside the system C library, and #4 is inside the Chrome binary at offset +0x9276c58.
  • The block of short names (r8, r9, di, si and so on) are the values of the processor's registers at the moment of the crash, a snapshot of the machine's working state. The si register holds 000075a2c9707000, which matches the faulting address in the signal line.

The process then dies with SIGSEGV (SEGV_MAPERR) at address 75a2c9707000, which matches the si register in the dump. The faulting frame is inside the Chrome binary at +0x9276c58.

The reporter adds an important caveat about what lies beyond the mapping: because the out-of-bounds access happens in shared memory, what follows the region and how large it is depends on the situation and can vary greatly between operating systems and environments. In plain terms, what lies beyond the region and how large it is varies between machines.

Root cause

The deserialiser trusts the dimensions in image_info without comparing them against the size of the shared memory region. installPixels is handed the raw pointer from mapping_ptr->memory() and the row stride from data.row_bytes(), but the mapping's length is never consulted. The bitmap is therefore configured to describe more memory than the mapping provides, and subsequent pixel access runs past the end of the region.

The bisect points to the commit that introduced the BitmapInSharedMemory Mojo traits, [redacted], as the first commit containing the vulnerable code. A bisect is a way of finding the change that introduced a bug: you walk through the project's history, testing versions, until you find the first one that is broken. A commit is a recorded change to the source code.

The report does not describe any existing check that should have caught the mismatch; the debug log line about the bad shared memory size is the only size-related signal shown, and it appears at the point of failure rather than preventing it. That is, the log tells you the sizes disagree, but only after the damage is already being done.

Impact

The weakness is an out-of-bounds write in the compositing component. The crash occurs in the browser process. That matters because the browser process is the part that holds more power over the machine; a bug there is generally more serious than one in a sandboxed helper process.

The reporter does not demonstrate controlled corruption or code execution; the proof of concept produces a crash. Code execution means turning a bug into the ability to run an attacker's own instructions on the machine, which is the worst outcome; a crash is a much smaller result. Because the out-of-bounds region lies in shared memory, the practical consequences depend heavily on the operating system and environment, as the reporter notes.

Fix

The report does not describe the fix that was applied. The appropriate change, given the root cause, is for the deserialisation path to validate that the size implied by image_info and data.row_bytes() fits within the shared memory region before calling installPixels, and to reject the message otherwise. In everyday terms: before trusting the form that says "100 apples", look at the box and refuse the form if it does not fit.

Variants to test

These are other places where the same kind of mistake might exist. A variant is a different spot with the same underlying flaw.

  • Other hand-written Mojo traits that pass a shared memory pointer into a consumer without its length. A positive result is a structure whose metadata can describe more memory than the mapping holds, with the consumer reading or writing past the end.
  • Other consumers of SkBitmap::installPixels fed from IPC-supplied metadata. A positive result is a bitmap whose dimensions and stride exceed the backing allocation.
  • Size fields carried separately from the buffer they describe in any IPC struct. A positive result is a mismatch that survives deserialisation and reaches a memory access.
  • The same BitmapInSharedMemory path on different operating systems. A positive result is a crash whose faulting address and surrounding memory differ from the one shown here, consistent with the reporter's note that the adjacent memory varies by environment.

Glossary

  • API: a defined way for one piece of software to ask another piece of software to do something, like a menu of allowed requests.
  • Bitmap: a picture stored as a grid of pixels, each with a colour value.
  • Bisect: a method of finding the change that introduced a bug by testing versions across the project's history until the first broken one is found.
  • Browser process: the main Chrome process that runs the window, tabs and address bar, and is the more privileged side of Chrome's process split.
  • Chrome VRP: Chrome's Vulnerability Reward Program, which pays researchers for reporting security bugs.
  • Chromium: the open-source browser project that Google Chrome is built from.
  • Code execution: the ability to make a machine run instructions chosen by an attacker, the most serious outcome of a memory bug.
  • Commit: a recorded change to a source code repository.
  • Compositing: the part of the browser that combines the layers of a page into the final image shown on screen.
  • CVE: a public identifier for a known security vulnerability, here CVE-2024-3157.
  • Deserialisation: turning received bytes back into usable objects in memory, the reverse of packing them up.
  • Diff: a file that describes changes to source code, showing what to add or remove.
  • GPU process: the Chrome process that performs graphics and drawing work, separate from the browser process.
  • Hand-written code: code written by a person rather than produced automatically by a code generator, and therefore able to miss checks a generator would include.
  • IPC: inter-process communication, the way two separate programs on the same machine pass data to each other.
  • Metadata: data that describes other data, such as the width, height and format of a picture.
  • Mojo: Chromium's system for sending messages between its processes.
  • Out-of-bounds write: writing to memory past the end of a buffer, into space that does not belong to it.
  • Poc: proof of concept, a minimal demonstration that a bug is real.
  • Register: a small, fast storage location inside a processor, holding values the program is working with at that moment.
  • Shared memory: a region of memory that two programs can both access, used to avoid copying large data through messages.
  • Signal 11 (SIGSEGV): the signal the operating system sends a program when it touches memory it is not allowed to touch, which normally ends the program.
  • Stable channel: the normal release version of Chrome that most people run.
  • Stack trace: the list of function calls that were active when a crash happened, from the innermost outwards.
  • Stride: the number of bytes one row of pixels takes in memory.
  • Structure: a named bundle of fields grouped together, like a form with several boxes.
  • Trait: the piece of code that tells Mojo how to convert a structure to and from raw bytes.
  • Variant: a different location that may contain the same underlying flaw as the one already found.

More by DarkNavy

View all

4 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.