Description
SimGear through 2024.1.7 contains an infinite loop vulnerability in sgSimpleBuffer::resize() where an unsigned 32-bit wraparound in the size-doubling loop leaves the size at zero. Attackers can supply a crafted .btg scenery file with an oversized byte count exceeding 2^31 to hang the loading process in FlightGear.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
FlightGear SimGear
Default version status: unaffected
0 to ≤ 2024.1.7affected
References
- https://gitlab.com/flightgear/simgear/-/commit/8e6cc3185e8fe7fc298e0678ebfe83f118e461b4 ↗
- https://gitlab.com/flightgear/simgear/-/commit/3f5f12d622e308ad12cfd6e4fefaa5faec8a0ca7 ↗
- https://gitlab.com/flightgear/simgear/-/merge_requests/441 ↗
- https://gitlab.com/flightgear/simgear/-/merge_requests/442 ↗
- https://gitlab.com/flightgear/simgear/-/blob/2024.1.7/simgear/io/sg_binobj.cxx#L147-162 ↗
- https://www.vulncheck.com/advisories/simgear-through-2024.1.7-infinite-loop-dos-via-sgsimplebuffer-resize ↗