Skip to contentSkip to conversation

fio: ignore CVE-2025-10824

PATCH New Gyorgy Sarvari 1 participant 5 messages Jan 2

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 fio: ignore CVE-2025-10824

Details: https://nvd.nist.gov/vuln/detail/CVE-2025-10824

The upstream maintainer wasn't able to reproduce the issue[1], and the related bug is closed without further action.

[1]: https://github.com/axboe/fio/issues/1981

(cherry picked from commit a275078cbeaa0fafcfa4eb60ca69f05a8fe3df99)

Adapted to Kirkstone (CVE_STATUS -> CVE_CHECK_STATUS)

---
 meta-oe/recipes-benchmark/fio/fio_3.30.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-benchmark/fio/fio_3.30.bb +3 -0
index 62b21339d0..8b864e24f2 100644
@@ -45,3 +45,6 @@ do_install() {
     install -d ${D}/${docdir}/${PN}
     cp -R --no-dereference --preserve=mode,links -v ${S}/examples ${D}/${docdir}/${PN}/
 }
+
+# disputed: Maintainer could not reproduce the issue, issue is closed without change.
+CVE_CHECK_IGNORE += "CVE-2025-10824"
#1 lore raw

PATCH 2/5 nodejs: ignore CVE-2023-30583, CVE-2023-30584 and CVE-2023-30587

Details: https://nvd.nist.gov/vuln/detail/CVE-2023-30583
https://nvd.nist.gov/vuln/detail/CVE-2023-30584
https://nvd.nist.gov/vuln/detail/CVE-2023-30587

None of these vulnerabilities are present in the recipe version.

CVE-2023-30583: While the main feature (blob) was intruced in v16, the vulnerable code (load blobs from file) was introduced in v20[1], and as such, the vulnerability is not present in the recipe version.

CVE-2023-30584, CVE-2023-30587: The whole vulnerable feature (permission model) was introduced[2] in v20.

Ignore these CVE IDs.

[1]: https://github.com/nodejs/node/commit/950cec4c2642c15e2913f35babadda56c1d8a723
[2]: https://github.com/nodejs/node/commit/00c222593e49d817281bc88a322f41f8dca95885

---
 meta-oe/recipes-devtools/nodejs/nodejs_16.20.2.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-devtools/nodejs/nodejs_16.20.2.bb +3 -0
index 05a6706c10..b2872bfd98 100644
@@ -46,6 +46,9 @@ S = "${WORKDIR}/node-v${PV}"
 
 CVE_PRODUCT = "nodejs node.js"
 
+# the vulnerabilities were introduced in v20
+CVE_CHECK_IGNORE = "CVE-2023-30583 CVE-2023-30584 CVE-2023-30587"
+
 # v8 errors out if you have set CCACHE
 CCACHE = ""
 
#2 lore raw

PATCH 3/5 nodejs: patch CVE-2023-39333

In reply to Gyorgy Sarvari

Details: https://nvd.nist.gov/vuln/detail/CVE-2023-39333

Backport the patch that mentions this CVE ID explicitly in its commit message.

---
 .../nodejs/nodejs/CVE-2023-39333.patch        | 57 +++++++++++++++++++
 .../recipes-devtools/nodejs/nodejs_16.20.2.bb |  1 +
 2 files changed, 58 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/CVE-2023-39333.patch
meta-oe/recipes-devtools/nodejs/nodejs/CVE-2023-39333.patch new file +57 -0
new file mode 100644
index 0000000000..3cea4e1c23
@@ -0,0 +1,57 @@
+From 217a3dba7b2bfc94534c19e48a35bb9282367be2 Mon Sep 17 00:00:00 2001
+From: Gyorgy Sarvari <[email protected]>
+Date: Sun, 6 Aug 2023 10:41:33 +0000
+Subject: [PATCH] module: fix code injection through export names
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Tobias Nießen <[email protected]>
+
+createDynamicModule() properly escapes import names, but not export
+names. In WebAssembly, any string is a valid export name. Importing a
+WebAssembly module that uses a non-identifier export name leads to
+either a syntax error in createDynamicModule() or to code injection,
+that is, to the evaluation of almost arbitrary JavaScript code outside
+of the WebAssembly module.
+
+To address this issue, adopt the same mechanism in createExport() that
+createImport() already uses. Add tests for both exports and imports.
+
+PR-URL: https://github.com/nodejs-private/node-private/pull/461
+Backport-PR-URL: https://github.com/nodejs-private/node-private/pull/489
+Reviewed-By: Rafael Gonzaga <[email protected]>
+CVE-ID: CVE-2023-39333
+
+CVE: CVE-2023-39333
+Upstream-Status: Backport [https://github.com/nodejs/node/commit/f5c90b2951ca8ce8e47136ef073a1778edcad15d]
+Signed-off-by: Gyorgy Sarvari <[email protected]>
+---
+ lib/internal/modules/esm/create_dynamic_module.js | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/lib/internal/modules/esm/create_dynamic_module.js b/lib/internal/modules/esm/create_dynamic_module.js
+index f7c2008..c99da19 100644
+--- a/lib/internal/modules/esm/create_dynamic_module.js
++++ b/lib/internal/modules/esm/create_dynamic_module.js
+@@ -18,13 +18,13 @@ function createImport(impt, index) {
+ import.meta.imports[${imptPath}] = $import_${index};`;
+ }
+ 
+-function createExport(expt) {
+-  const name = `${expt}`;
+-  return `let $${name};
+-export { $${name} as ${name} };
+-import.meta.exports.${name} = {
+-  get: () => $${name},
+-  set: (v) => $${name} = v,
++function createExport(expt, index) {
++  const nameStringLit = JSONStringify(expt);
++  return `let $export_${index};
++export { $export_${index} as ${nameStringLit} };
++import.meta.exports[${nameStringLit}] = {
++  get: () => $export_${index},
++  set: (v) => $export_${index} = v,
+ };`;
+ }
+ 
meta-oe/recipes-devtools/nodejs/nodejs_16.20.2.bb +1 -0
index b2872bfd98..2feec12f21 100644
@@ -30,6 +30,7 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \
            file://CVE-2024-22019.patch \
            file://CVE-2024-22025.patch \
            file://CVE-2023-46809.patch \
+           file://CVE-2023-39333.patch \
            "
 SRC_URI:append:class-target = " \
            file://0001-Using-native-binaries.patch \
#3 lore raw

PATCH 4/5 nodejs: ignore CVE-2024-22017

In reply to Gyorgy Sarvari

Details: https://nvd.nist.gov/vuln/detail/CVE-2024-22017

The vulnerability is related to the io_uring usage of libuv.

Libuv first introduced io_uring support in v1.45[1]. oe-core ships a non-vulnerable version (1.44.2), and nodejs vendors also an older version (1.43).

Mark this CVE as ignored for this recipe version.

[1]: https://github.com/libuv/libuv/commit/d2c31f429b87b476a7f1344d145dad4752a406d4

---
 meta-oe/recipes-devtools/nodejs/nodejs_16.20.2.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-devtools/nodejs/nodejs_16.20.2.bb +3 -0
index 2feec12f21..9c279d1463 100644
@@ -50,6 +50,9 @@ CVE_PRODUCT = "nodejs node.js"
 # the vulnerabilities were introduced in v20
 CVE_CHECK_IGNORE = "CVE-2023-30583 CVE-2023-30584 CVE-2023-30587"
 
+# the vulnerability was introduced later (with libuv 1.45)
+CVE_CHECK_IGNORE += "CVE-2024-22017"
+
 # v8 errors out if you have set CCACHE
 CCACHE = ""
 
#4 lore raw

PATCH 5/5 nodejs: patch CVE-2024-27983

In reply to Gyorgy Sarvari

Details: https://nvd.nist.gov/vuln/detail/CVE-2024-27983

Pick the patch that mentions this CVE ID explcitly in its commit message.

---
 .../nodejs/nodejs/CVE-2024-27983.patch        | 40 +++++++++++++++++++
 .../recipes-devtools/nodejs/nodejs_16.20.2.bb |  1 +
 2 files changed, 41 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/CVE-2024-27983.patch
meta-oe/recipes-devtools/nodejs/nodejs/CVE-2024-27983.patch new file +40 -0
new file mode 100644
index 0000000000..895a92052f
@@ -0,0 +1,40 @@
+From a8e022586ffe06a27709f4d8c03f328e3042a77d Mon Sep 17 00:00:00 2001
+From: Gyorgy Sarvari <[email protected]>
+Date: Tue, 26 Mar 2024 15:55:13 -0300
+Subject: [PATCH] src: ensure to close stream when destroying session
+
+From: RafaelGSS <[email protected]>
+
+Co-Authored-By: Anna Henningsen <[email protected]>
+PR-URL: https://github.com/nodejs-private/node-private/pull/561
+Fixes: https://hackerone.com/reports/2319584
+Reviewed-By: Michael Dawson <[email protected]>
+Reviewed-By: Marco Ippolito <[email protected]>
+Reviewed-By: Matteo Collina <[email protected]>
+Reviewed-By: Benjamin Gruenbaum <[email protected]>
+CVE-ID: CVE-2024-27983
+
+CVE: CVE-2024-27983
+Upstream-Status: Backport [https://github.com/nodejs/node/commit/0fb816dbccde955cd24acc1b16497a91fab507c8]
+Signed-off-by: Gyorgy Sarvari <[email protected]>
+---
+ src/node_http2.cc | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/src/node_http2.cc b/src/node_http2.cc
+index 53216dc..9a6d63d 100644
+--- a/src/node_http2.cc
++++ b/src/node_http2.cc
+@@ -529,6 +529,12 @@ Http2Session::Http2Session(Http2State* http2_state,
+ Http2Session::~Http2Session() {
+   CHECK(!is_in_scope());
+   Debug(this, "freeing nghttp2 session");
++  // Ensure that all `Http2Stream` instances and the memory they hold
++  // on to are destroyed before the nghttp2 session is.
++  for (const auto& [id, stream] : streams_) {
++    stream->Detach();
++  }
++  streams_.clear();
+   // Explicitly reset session_ so the subsequent
+   // current_nghttp2_memory_ check passes.
+   session_.reset();
meta-oe/recipes-devtools/nodejs/nodejs_16.20.2.bb +1 -0
index 9c279d1463..9326b26421 100644
@@ -31,6 +31,7 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \
            file://CVE-2024-22025.patch \
            file://CVE-2023-46809.patch \
            file://CVE-2023-39333.patch \
+           file://CVE-2024-27983.patch \
            "
 SRC_URI:append:class-target = " \
            file://0001-Using-native-binaries.patch \