Cloudanix VulnDB

CVE-2025-0665

High · 7.0

CVSS

7.0

EPSS

1.3%

Published

Feb 5, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in how some network tools close internal connections can make programs crash when looking up web addresses.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
High
Impact
Denial Of Service
Component
Library
Class
Use After Free
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Double close of the same eventfd file descriptor during connection teardown after threaded name resolution leads to use-after-free in libcurl.

Why it matters to the business

Applications using affected packages may crash or exhibit memory corruption during network operations, causing service outages and requiring emergency patching across Ubuntu-based systems.

How an attack unfolds

An attacker triggers a libcurl connection with threaded DNS resolution enabled; after name resolution completes and the channel is torn down, the double eventfd close creates a use-after-free that may be leveraged for memory corruption or denial of service.

How to fix it

Upgrade linux-aws-5.15 (Ubuntu 20.04 LTS) to version 5.15.0-1056.61~20.04.1 or later.

How to confirm the fix worked

Confirm installed package version is at or above the fixed release and exercise name-resolution code paths under load to verify stability.

Typical attack path

  1. Initiate network request via libcurl with threaded resolver active
  2. Allow threaded name resolution to complete
  3. Trigger connection channel teardown
  4. Trigger use-after-free via the double-closed eventfd

How to detect it

Monitor process logs and core dumps for segmentation faults or double-free errors in libcurl-related code paths during connection teardown.

What your security team should do

  • Apply the listed kernel package update without delay
  • Restart affected services after patching
  • Audit custom applications for direct libcurl usage and schedule upgrades

The record

libcurl would wrongly close the same eventfd file descriptor twice when taking down a connection channel after having completed a threaded name resolve.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.18 curl 0 8.12.0-r0
Alpine:v3.19 curl 0 8.12.0-r0
Alpine:v3.20 curl 0 8.12.0-r0
Alpine:v3.21 curl 0 8.12.0-r0
Alpine:v3.22 curl 0 8.12.0-r0
Chainguard curl 0 8.12.0-r0
Chainguard curl-dev 0 8.12.0-r0
Chainguard curl-doc 0 8.12.0-r0
Chainguard curl-oci-entrypoint 0 8.12.0-r0
Chainguard curl-static 0 8.12.0-r0
Chainguard libcurl-openssl4 0 8.12.0-r0
Chainguard libcurl4 0 8.12.0-r0
Debian:13 curl 0 No fix
Debian:13 curl 0 8.12.0+git20250209.89ed161+ds-1
Mageia:9 curl 0 7.88.1-4.6.mga9
SUSE:Linux Enterprise Module for Basesystem 15 SP6 curl 0 8.14.1-150600.4.28.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7 curl 0 8.14.1-150600.4.28.1
Wolfi curl 0 8.12.0-r0
Wolfi curl-dev 0 8.12.0-r0
Wolfi curl-doc 0 8.12.0-r0
Wolfi curl-oci-entrypoint 0 8.12.0-r0
Wolfi curl-static 0 8.12.0-r0
Wolfi libcurl-openssl4 0 8.12.0-r0
Wolfi libcurl4 0 8.12.0-r0
openSUSE:Leap 15.6 curl 0 8.14.1-150600.4.28.1
openSUSE:Tumbleweed curl 0 8.12.1-1.1

Related vulnerabilities