CVE-2023-25564 GSS-NTLMSSP vulnerable to memory corruption when decoding UTF16 strings
An attacker can trigger memory corruption via crafted UTF16 strings in GSS-NTLMSSP, potentially causing denial of service or arbitrary code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-25564?
CVE-2023-25564 is a medium-severity memory corruption vulnerability in gssapi gss-ntlmssp, published on 14 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
GSS-NTLMSSP is a mechglue plugin for the GSSAPI library that implements NTLM authentication. Prior to version 1.2.0, memory corruption can be triggered when decoding UTF16 strings. 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 denial of service if the write hits unmapped memory or randomly corrupts a byte in the application memory space. This vulnerability can trigger an out-of-bounds write, leading to memory corruption. This vulnerability can be triggered via the main `gss_accept_sec_context` entry point. This issue is fixed in version 1.2.0.
Weakness: CWE-787
Which versions are affected by CVE-2023-25564?
It affects 1 product.
Products include Gss-Ntlmssp Project Gss-Ntlmssp.
How do I fix CVE-2023-25564?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-25564 being exploited?
There is no known exploitation of CVE-2023-25564 in the wild and no public exploit code.
Other vulnerabilities in gssapi gss-ntlmssp
- CVE-2023-25565 GSS-NTLMSSP vulnerable to incorrect free when decoding target information
- CVE-2023-25566 GSS-NTLMSSP vulnerable to memory leak when parsing usernames
- CVE-2023-25567 GSS-NTLMSSP vulnerable to out-of-bounds read when decoding target information
- CVE-2023-25563 GSS-NTLMSSP vulnerable to multiple out-of-bounds reads when decoding NTLM fields
Sources
Also known as AZL-43441, AZL-45234, DEBIAN-CVE-2023-25564, GHSA-r85x-q5px-9xfq, ROOT-OS-UBUNTU-2204-CVE-2023-25564, UBUNTU-CVE-2023-25564.