Blender BKE_curve_bevelList_make Integer Overflow Code Execution Vulnerability
An integer overflow in Blender's curve-to-polygon conversion can cause an undersized heap allocation and subsequent buffer overflow when opening a crafted .blend file. An attacker could exploit this to execute code under the context of the application.
An exploitable integer overflow exists in the way that the Blender open-source 3d creation suite v2.78c converts curves to polygons. A specially crafted .blend file can cause an integer overflow resulting in a buffer overflow which can allow for code execution under the context of the application.
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 application multiplies a user-controlled point count by the size of a structure without checking for integer overflow, leading to an undersized allocation and a heap-based buffer overflow.
Impact
An attacker could execute code under the context of the application by convincing a user to open a malicious .blend file.
What the attacker needed
Victim opens a malicious .blend file; or imports it as a library; or passes it as a command-line argument
The fix
The report recommends not using untrusted .blend files; it does not state that a patch was released.
How it was found
- Generate a malicious .blend file using the provided proof-of-concept script.
- Open the file in Blender, import it as a library, or pass it as a command-line argument.
- Blender updates the scene and processes the curve object.
- The integer overflow causes an undersized allocation, and writing to it triggers a heap-based buffer overflow.
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 is a 3D modelling program. When it opens a file, it converts curves into polygons and calculates how much memory to reserve. A malicious file can make that calculation wrap around to a small number, so Blender writes past the end of the reserved memory, which can let an attacker run their own code.
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.