Skip to content

Commit 88f328f

Browse files
authored
[LOW] Patch nodejs for CVE-2025-47279 (#13843)
1 parent e59443f commit 88f328f

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

SPECS/nodejs/CVE-2025-47279.patch

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From 65cefbb3615e056330686cf5ffd1f7201fd8db58 Mon Sep 17 00:00:00 2001
2+
From: Aninda <v-anipradhan@microsoft.com>
3+
Date: Mon, 19 May 2025 20:44:26 -0400
4+
Subject: [PATCH] Address CVE-2025-47279
5+
Upstream Patch Reference: https://github.com/nodejs/undici/commit/f317618ec28753a4218beccea048bcf89c36db25
6+
7+
---
8+
deps/undici/src/lib/dispatcher/pool.js | 15 +++++++++++++++
9+
1 file changed, 15 insertions(+)
10+
11+
diff --git a/deps/undici/src/lib/dispatcher/pool.js b/deps/undici/src/lib/dispatcher/pool.js
12+
index 0ba3a2b5..8cea1476 100644
13+
--- a/deps/undici/src/lib/dispatcher/pool.js
14+
+++ b/deps/undici/src/lib/dispatcher/pool.js
15+
@@ -73,6 +73,21 @@ class Pool extends PoolBase {
16+
? { ...options.interceptors }
17+
: undefined
18+
this[kFactory] = factory
19+
+
20+
+ this.on('connectionError', (origin, targets, error) => {
21+
+ // If a connection error occurs, we remove the client from the pool,
22+
+ // and emit a connectionError event. They will not be re-used.
23+
+ // Fixes https://github.com/nodejs/undici/issues/3895
24+
+ for (const target of targets) {
25+
+ // Do not use kRemoveClient here, as it will close the client,
26+
+ // but the client cannot be closed in this state.
27+
+ const idx = this[kClients].indexOf(target)
28+
+ if (idx !== -1) {
29+
+ this[kClients].splice(idx, 1)
30+
+ }
31+
+ }
32+
+ })
33+
+
34+
}
35+
36+
[kGetDispatcher] () {
37+
--
38+
2.34.1
39+

SPECS/nodejs/nodejs.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Name: nodejs
55
# WARNINGS: MUST check and update the 'npm_version' macro for every version update of this package.
66
# The version of NPM can be found inside the sources under 'deps/npm/package.json'.
77
Version: 20.14.0
8-
Release: 7%{?dist}
8+
Release: 8%{?dist}
99
License: BSD AND MIT AND Public Domain AND NAIST-2003 AND Artistic-2.0
1010
Vendor: Microsoft Corporation
1111
Distribution: Azure Linux
@@ -26,6 +26,7 @@ Patch7: CVE-2024-22195.patch
2626
Patch8: CVE-2020-28493.patch
2727
Patch9: CVE-2024-34064.patch
2828
Patch10: CVE-2025-27516.patch
29+
Patch11: CVE-2025-47279.patch
2930
BuildRequires: brotli-devel
3031
BuildRequires: c-ares-devel
3132
BuildRequires: coreutils >= 8.22
@@ -137,6 +138,9 @@ make cctest
137138
%{_prefix}/lib/node_modules/*
138139

139140
%changelog
141+
* Wed May 21 2025 Aninda Pradhan <v-anipradhan@microsoft.com> - 20.14.0-8
142+
- Patch CVE-2025-47279
143+
140144
* Mon Mar 10 2025 Sandeep Karambelkar <skarambelkar@microsoft.com> - 20.14.0-7
141145
- Patch CVE-2025-27516
142146

0 commit comments

Comments
 (0)