Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GHSL-2023-013: Memory corruption decoding UTF16
Memory corruption when decoding UTF16 strings (GHSL-2023-013) Fixes defect GHSL-2023-013 found by the GitHub Security Lab team via oss-fuzz. The variable outlen was not initialized and could cause writing a zero to an arbitrary place in memory if ntlm_str_convert() were to fail, which would leave outlen uninitialized. This can lead to a DoS if the write hits unmapped memory or randomly corrupting a byte in the application memory space. Make sure to zero out only if ntlm_str_convert() succeeds, but for good measure also initialize outlen to 0. Fixes CVE-2023-25564 Signed-off-by: Simo Sorce <simo@redhat.com>
- Loading branch information