A vulnerability in the c-ares library was discovered where certain query completion callbacks are incorrectly handled. This flaw could allow an attacker to trigger use-after-free or double-free conditions, potentially causing a denial of service or arbitrary code execution. The issue affects specific versions of c-ares and has been addressed by an update.