The vulnerability, found by Zscaler in May 2025, stems from an uninitialized pointer dereference during the compression process of 12-bit precision JPG streams.
Our deep dive analysis took us on a journey inside the JPG file format and Windows Imaging Component internals, allowing us to reproduce the crash and find an alternative vulnerable code path, stemming from the same problem but for 16-bit precision JPG streams.
Our investigation revealed that the vulnerable component uses the open-source library libjpeg-turbo, in which similar issues were found and resolved in December 2024.
Studying libjpeg-turbo commits enabled us to explore other potentially vulnerable code paths and reassess exploitability: the flaw, although ranked critical by Microsoft, is likely unexploitable.
Finally, while we studied the immediate patch, we also looked at newer versions of WindowsCodecs.dll and observed that additional mitigations were subsequently implemented. Time to patch!





















