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:
ReadFileUtf8
on Node.js release lines: v20 and v22.The product does not sufficiently track and release allocated memory after it has been used, which slowly consumes remaining memory.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Red Hat Enterprise Linux 10 | RedHat | nodejs22-1:22.16.0-1.el10_0 | * |
Red Hat Enterprise Linux 8 | RedHat | nodejs:22-8100020250527102348.6d880403 | * |
Red Hat Enterprise Linux 8 | RedHat | nodejs:20-8100020250521115949.489197e6 | * |
Red Hat Enterprise Linux 9 | RedHat | nodejs:22-9060020250529115509.rhel9 | * |
Red Hat Enterprise Linux 9 | RedHat | nodejs:20-9060020250529100856.rhel9 | * |
Nodejs | Ubuntu | oracular | * |
Nodejs | Ubuntu | plucky | * |
Nodejs | Ubuntu | upstream | * |