Skip to content
Memory corruption Advisory Advanced CVE-2017-2901

Blender Sequencer imb_loadiris Integer Overflow Code Execution Vulnerability

A crafted .iris image file causes an integer overflow when Blender calculates the size of the image buffer, leading to an undersized allocation and a heap-based buffer overflow when the image data is written. An attacker could convince a user to load the file in the sequencer to achieve code execution under the application's context.

A member Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable integer overflow exists in the IRIS loading functionality of the Blender open-source 3d creation suite version 2.78c. A specially crafted .iris file can cause an integer overflow resulting in a buffer overflow which can allow for code execution under the context of the application.

a member, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The product of the header's xsize and ysize (times four) is computed without an overflow check and used as an allocation size, so a large value wraps to a small buffer that is then overfilled.

Impact

A heap-based buffer overflow may occur, which can lead to code execution under the context of the application.

What the attacker needed

Victim opens a crafted .iris file; file loaded via sequencer or CLI

The fix

The vendor patched the issue; the advisory also recommends not using untrusted image files as an asset in the sequencer.

How it was found

  1. Create a .iris file with the provided generator script.
  2. Load the file as an asset in the sequencer, or pass it to the blender executable as an argument.
  3. The loader reads the header and computes an overflowing allocation size.
  4. The decoded image data is written past the undersized buffer, causing a crash or code execution.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Blender can open image files, and for one old image format it works out how much memory to reserve by multiplying the image's width and height. If those numbers are huge, the multiplication wraps around to a small number, so too little memory is reserved, and copying the image data then spills past the end of that memory. A file crafted this way can overwrite nearby memory and potentially run attacker code when the victim opens it.

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.

More by A member

View all

110 more disclosed reports, best first.

More from Cisco Talos

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.