Blender SEGV when open .blend file in blender #99836
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#99836
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Ubuntu 20.04.4 LTS
Graphics card: 2b:00.0 VGA compatible controller: NVIDIA Corporation TU116 [GeForce GTX 1650 SUPER] (rev a1)
Blender Version
Broken: Blender 3.3.0 Alpha branch : master, commit
533a5a6a8c
Date: Mon Jul 18 20:37:11 2022 -0700Worked: -
Short description of error
when opening .blend file crash occured in
that include blo_do_versions_280
Exact steps for others to reproduce the error
Open this .blend file below using "blender"
carsh_1.blend
Note
I think Attacker may Arbitrary Address Write through this .blend file.
When User open malicious .blend file can lead to Remote code Execution
Proof-of-Concept Video below
https://youtu.be/55W8bSQOXgE
Added subscriber: @sangjun-park
Added subscriber: @OmarEmaraDev
Changed status from 'Needs Triage' to: 'Needs User Info'
I am not sure what you mean by that. Did you create this file yourself to demonstrate a security vulnerability? Otherwise, where did you get the file?
The file is either corrupt or is too old to load into Blender, as it reports
bmain->versionfile = 103
.Crash happens due to a null scene in
screen->scene->view_layers
.Hello, I made it myself to show security issue. Thanks
however, i think this is null pointer reference. not Arbitrary Address Write sorry
Can you explain why would dereferencing a null pointer be considered a security issue?
Added subscriber: @PratikPB2123
Sure
Null pointer Reference is one of the vuln of OWASP.
The detail description of it is in this URL.
Attacker can abuse Null pointer Reference with other vuln.
https://owasp.org/www-community/vulnerabilities/Null_Dereference
@sangjun-park Since the fix is likely straightforward, maybe you should submit a patch directly to fix the issue. Refer to the following document that details the process: https://wiki.blender.org/wiki/Process/Contributing_Code.
If you find the process difficult, you can also just attach the raw patch along with your report.
Changed status from 'Needs User Info' to: 'Confirmed'
Confirming this bug report. As far as I understand fix is simple
condition check
.Added subscriber: @Shan-Huang
I added a null check to
do_versions_after_linking_280
to simply no-op whenscreen->scene
is null.It fixed the null pointer, but crashed with a new assertion failure from versiong_280.c
do_version_workspaces_after_lib_link(Main *bmain)
Stepping through
readfile.c
a bit, I saw that one of the data blocks has id codeID_WS
and thus a workspace block was created and added to the main database list, before the assert - which is trouble :/(From my very limited Blender dev experience) I think this means the file is too old or corrupted?
Added subscriber: @BlenderBruno