summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33464.patch34
-rw-r--r--meta-oe/recipes-devtools/yasm/yasm_git.bb1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33464.patch b/meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33464.patch
new file mode 100644
index 0000000000..ebae250ff9
--- /dev/null
+++ b/meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33464.patch
@@ -0,0 +1,34 @@
1From 3c3f968d48d768c1e355199d4067d99cb72abc26 Mon Sep 17 00:00:00 2001
2From: Gyorgy Sarvari <skandigraun@gmail.com>
3Date: Sat, 15 Nov 2025 13:30:12 +0100
4Subject: [PATCH] Handle file descriptors with nonexisting env names better.
5 Avoid writing past allocated memory.
6
7This fixes CVE-2021-33464.
8Author: Petter Reinholdtsen <pere@debian.org>
9Bug: https://github.com/yasm/yasm/issues/164
10Bug-Debian: https://bugs.debian.org/1016353
11Forwarded: https://github.com/yasm/yasm/issues/164
12Last-Update: 2025-04-30
13
14CVE: CVE-2021-33464
15Upstream-Status: Submitted [https://github.com/yasm/yasm/issues/164]
16
17Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
18---
19 modules/preprocs/nasm/nasm-pp.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/modules/preprocs/nasm/nasm-pp.c b/modules/preprocs/nasm/nasm-pp.c
23index 512f02c3..f9f92dd1 100644
24--- a/modules/preprocs/nasm/nasm-pp.c
25+++ b/modules/preprocs/nasm/nasm-pp.c
26@@ -1815,7 +1815,7 @@ inc_fopen(char *file, char **newname)
27 error(ERR_WARNING, "environment variable `%s' does not exist",
28 p1+1);
29 *p2 = '%';
30- p1 = p2+1;
31+ pb = p1 = p2+1;
32 continue;
33 }
34 /* need to expand */
diff --git a/meta-oe/recipes-devtools/yasm/yasm_git.bb b/meta-oe/recipes-devtools/yasm/yasm_git.bb
index 4fb1aa3552..9bd81c1dfd 100644
--- a/meta-oe/recipes-devtools/yasm/yasm_git.bb
+++ b/meta-oe/recipes-devtools/yasm/yasm_git.bb
@@ -15,6 +15,7 @@ SRC_URI = "git://github.com/yasm/yasm.git;branch=master;protocol=https \
15 file://0002-yasm-Use-BUILD_DATE-for-reproducibility.patch \ 15 file://0002-yasm-Use-BUILD_DATE-for-reproducibility.patch \
16 file://0001-bitvect-fix-build-with-gcc-15.patch \ 16 file://0001-bitvect-fix-build-with-gcc-15.patch \
17 file://CVE-2023-29579.patch \ 17 file://CVE-2023-29579.patch \
18 file://CVE-2021-33464.patch \
18 " 19 "
19 20
20 21