Commit graph

4 commits

Author SHA1 Message Date
dkgkdfg65
fa8dd7decc Fix heap-buffer-overflow in vendored assimp Quick3D importer (CVE-2025-11277)
Engine/lib/assimp/code/AssetLib/Q3D/Q3DLoader.cpp:
Q3DImporter::InternReadFile reads attacker-controlled 32-bit texture
mWidth and mHeight, then computes `unsigned int mul = mWidth * mHeight`
and allocates `new aiTexel[mul]`. The pre-existing check only rejects
zero dimensions, so a crafted .q3o/.q3s file can make the product
overflow 32 bits and wrap to a small value, yielding an undersized
allocation. The subsequent fill loop bounded by
`end = &begin[mul - 1] + 1` then writes far past the buffer
(mul-1 underflows when mul wraps to 0), an out-of-bounds heap write.

Add the integer-overflow guard from upstream assimp (the fix that
closed assimp/assimp#6358 / CVE-2025-11277) verbatim: after the
zero check, reject dimensions whose product would overflow before
the multiplication, throwing DeadlyImportError instead.

Refs #1765
2026-06-10 01:25:46 +08:00
marauder2k7
d3f8fee74e update assimp lib 2024-12-09 20:22:47 +00:00
Bloodknight
16f3710058 Update Assimp from 5.2.3 to 5.2.5 2022-10-02 19:21:41 +01:00
AzaezelX
f297476092 update assimp to 5.2.3 Bugfix-Release 2022-04-26 11:56:24 -05:00