Intel

AIKIDO-2026-743445

c-ares.c-ares is vulnerable to Use After Free

CVE-2025-31498Published Oct 2, 2026
October 2, 2026

83

CVE Score

High

Use After Free

Are you affected? Scan for Free

TL;DR

When process_answer() queues a query again after a DNS cookie failure, missing EDNS support, or a TCP close right after the response, a failed send closes the connection. read_answers() still reads that closed connection to dequeue other responses, a use-after-free that crashes the process. The fix stops reading the connection once it has been closed.

How do I fix this?

Upgrade the c-ares.c-ares and/or the c-ares library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

c-ares.c-ares

Versions

1.32.3 - 1.34.4

Fixed in 1.34.5

Background info

c-ares.c-ares is vulnerable to Use After Free in versions 1.32.3 - 1.34.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea