Skip to content

Commit ae3f157

Browse files
authored
[MEDIUM] Patch nodejs for CVE-2025-23165 CVE-2025-23166 (#13901)
1 parent 135f040 commit ae3f157

3 files changed

Lines changed: 571 additions & 1 deletion

File tree

SPECS/nodejs/CVE-2025-23165.patch

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From 3badbd012233828132ec938253ed40a7854fd65c Mon Sep 17 00:00:00 2001
2+
From: Aninda <v-anipradhan@microsoft.com>
3+
Date: Sat, 24 May 2025 11:03:53 -0400
4+
Subject: [PATCH] Address CVE-2025-23165
5+
Upstream Patch Reference: https://github.com/nodejs/node/commit/9e13bf0a81e15c7b3a9f1826dccbcea991d7e63a
6+
7+
---
8+
src/node_file.cc | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/src/node_file.cc b/src/node_file.cc
12+
index 0ec5c6f4..ba69879b 100644
13+
--- a/src/node_file.cc
14+
+++ b/src/node_file.cc
15+
@@ -2609,9 +2609,9 @@ static void ReadFileUtf8(const FunctionCallbackInfo<Value>& args) {
16+
FS_SYNC_TRACE_END(open);
17+
if (req.result < 0) {
18+
uv_fs_req_cleanup(&req);
19+
- // req will be cleaned up by scope leave.
20+
return env->ThrowUVException(req.result, "open", nullptr, path.out());
21+
}
22+
+ uv_fs_req_cleanup(&req);
23+
}
24+
25+
auto defer_close = OnScopeLeave([file, is_fd, &req]() {
26+
--
27+
2.34.1
28+

0 commit comments

Comments
 (0)