Skip to content

fix-CVE-2025-3158: closes #6023 Fixes CVE-2025-3158: Heap-based Buffer Overflow in Assimp::LWO::AnimResolver::UpdateAnimRangeSetup - #6222

Merged
kimkulling merged 2 commits into
assimp:masterfrom
VinzSpring:fix-CVE-2025-3158
Jun 8, 2025

Conversation

@VinzSpring

@VinzSpring VinzSpring commented Jun 5, 2025 •

Copy link
Copy Markdown
Contributor

Closes #6023

  • changed loop-condition to reflect the fact that m must be smaller than n

Fuzz results after changes

sh /home/ubuntu/assimp/test_exploits/CVE-2025-3158.sh
-- Shared libraries disabled
-- GCC13 detected disabling "-Wdangling-reference" in Cpp files as it appears to be a false positive
-- compiling zlib from sources
-- GCC13 detected disabling "-Warray-bounds and -Wstringop-overflow" for AssetLib/MDL/MDLLoader.cpp as it appears to be a false positive
-- VRML disabled
-- tinyusdz disabled
-- Enabled importer formats: AMF 3DS AC ASE ASSBIN B3D BVH COLLADA DXF CSM HMP IRRMESH IQM IRR LWO LWS MD2 MD3 MD5 MDC MDL NFF NDO OFF OBJ OGRE OPENGEX PLY MS3D COB BLEND IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD
-- Disabled importer formats: USD
-- Enabled exporter formats: OBJ OPENGEX PLY 3DS ASSBIN ASSXML COLLADA FBX STL X X3D GLTF 3MF PBRT ASSJSON STEP
-- Disabled exporter formats:
-- Treating all warnings as errors (for assimp library only)
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/ubuntu/assimp
[2/2] Linking CXX static library lib/libassimp.a
INFO: Running with entropic power schedule (0xFF, 100).
INFO: Seed: 2891564261
INFO: Loaded 1 modules (7 inline 8-bit counters): 7 [0x5c7667a49a30, 0x5c7667a49a37),
INFO: Loaded 1 PC tables (7 PCs): 7 [0x5c7667a49a38,0x5c7667a49aa8),
./assimp_fuzzer: Running 1 inputs 1 time(s) each.
Running: ./crash
Executed ./crash in 23 ms
NOTE: fuzzing was not performed, you have only

  •   executed the target code on a fixed set of inputs.*
    

… Buffer Overflow in Assimp::LWO::AnimResolver::UpdateAnimRangeSetup

- changed loop-condition to reflect the fact that m must be smaller than n
@tellypresence tellypresence added Bug Global flag to mark a deviation from expected behaviour LWO Bugs related to the LWO format Fuzzer Bugs found by a fuzzer Security Risk Bugs that could potentially be security vulnerabilities labels Jun 5, 2025

@kimkulling kimkulling left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine.

@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2025

Copy link
Copy Markdown

@kimkulling
kimkulling merged commit 357b5ba into assimp:master Jun 8, 2025
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot for your contribution.

kimkulling added a commit that referenced this pull request Jul 1, 2026
…r Overflow in Assimp::LWO::AnimResolver::UpdateAnimRangeSetup (#6222)

- changed loop-condition to reflect the fact that m must be smaller than n

Co-authored-by: Vinz Spring <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Global flag to mark a deviation from expected behaviour Fuzzer Bugs found by a fuzzer LWO Bugs related to the LWO format Security Risk Bugs that could potentially be security vulnerabilities

Projects

Development

Successfully merging this pull request may close these issues.

Bug: Heap-based Buffer Overflow in Assimp::LWO::AnimResolver::UpdateAnimRangeSetup

3 participants