Memory Leak Affecting nodejs-devel package, versions <1:22.16.0-1.module+el8.10.0+23140+4056b950


Severity

Recommended
high

Based on CentOS security rating.

Threat Intelligence

EPSS
0.06% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Memory Leak vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CENTOS8-NODEJSDEVEL-10184626
  • published19 May 2025
  • disclosed19 May 2025

Introduced: 19 May 2025

NewCVE-2025-23165  (opens in a new tab)
CWE-401  (opens in a new tab)

How to fix?

Upgrade Centos:8 nodejs-devel to version 1:22.16.0-1.module+el8.10.0+23140+4056b950 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs-devel package and not the nodejs-devel package as distributed by Centos. See How to fix? for Centos:8 relevant fixed versions and status.

In Node.js, the ReadFileUtf8 internal binding leaks memory due to a corrupted pointer in uv_fs_s.file: a UTF-16 path buffer is allocated but subsequently overwritten when the file descriptor is set. This results in an unrecoverable memory leak on every call. Repeated use can cause unbounded memory growth, leading to a denial of service.

Impact:

  • This vulnerability affects APIs relying on ReadFileUtf8 on Node.js release lines: v20 and v22.