Описание
OpenEXR ScanLineProcess::run_fill NULL Pointer Write In "reduceMemory" Mode
Summary
When reading a deep scanline image with a large sample count in reduceMemory
mode, it is possible to crash a target application with a NULL pointer dereference in a write operation.
Details
In the ScanLineProcess::run_fill
function, implemented in src/lib/OpenEXR/ImfDeepScanLineInputFile.cpp
, the following code is used to write the fillValue
in the sample buffer:
However, when reduceMemory
mode is enabled in the readDeepScanLine
function in src/lib/OpenEXRUtil/ImfCheckFile.cpp
, with large sample counts, the sample data will not be read, as shown below:
Therefore, in those cases, the sample buffer would not be allocated, resulting in a potential write operation on a NULL pointer.
PoC
NOTE: please download the runfill_crash.exr
file from the following link:
https://github.com/ShielderSec/poc/tree/main/CVE-2025-48073
- Compile the
exrcheck
binary in a macOS or GNU/Linux machine with ASAN. - Open the
runfill_crash.exr
file with the following command:
- Notice that
exrcheck
crashes with ASAN stack-trace.
Impact
An attacker may cause a denial of service by crashing the application.
Пакеты
OpenEXR
= 3.3.2
3.3.3
Связанные уязвимости
OpenEXR provides the specification and reference implementation of the EXR file format, an image storage format for the motion picture industry. In version 3.3.2, when reading a deep scanline image with a large sample count in reduceMemory mode, it is possible to crash a target application with a NULL pointer dereference in a write operation. This is fixed in version 3.3.3.
OpenEXR provides the specification and reference implementation of the EXR file format, an image storage format for the motion picture industry. In version 3.3.2, when reading a deep scanline image with a large sample count in reduceMemory mode, it is possible to crash a target application with a NULL pointer dereference in a write operation. This is fixed in version 3.3.3.
OpenEXR provides the specification and reference implementation of the EXR file format, an image storage format for the motion picture industry. In version 3.3.2, when reading a deep scanline image with a large sample count in reduceMemory mode, it is possible to crash a target application with a NULL pointer dereference in a write operation. This is fixed in version 3.3.3.
OpenEXR provides the specification and reference implementation of the ...