diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-11-15 19:18:09 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-11-15 15:49:44 -0800 |
| commit | 66a0b01b52e5d1cd2af4c41ae0b67541464874e6 (patch) | |
| tree | 8144053144e9f72aec8136c71b4497cd4468779a /meta-oe/recipes-devtools | |
| parent | cc30757a7fd0af5f60b9a6408b3eb94c0810acda (diff) | |
| download | meta-openembedded-66a0b01b52e5d1cd2af4c41ae0b67541464874e6.tar.gz | |
yasm: patch CVE-2021-33464
Details: https://nvd.nist.gov/vuln/detail/CVE-2021-33464
The patch was taken from Debian:
https://sources.debian.org/patches/yasm/1.3.0-8/1010-nasm-pp-no-env-CVE-2021-33464.patch/
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools')
| -rw-r--r-- | meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33464.patch | 34 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/yasm/yasm_git.bb | 1 |
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 @@ | |||
| 1 | From 3c3f968d48d768c1e355199d4067d99cb72abc26 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 3 | Date: Sat, 15 Nov 2025 13:30:12 +0100 | ||
| 4 | Subject: [PATCH] Handle file descriptors with nonexisting env names better. | ||
| 5 | Avoid writing past allocated memory. | ||
| 6 | |||
| 7 | This fixes CVE-2021-33464. | ||
| 8 | Author: Petter Reinholdtsen <pere@debian.org> | ||
| 9 | Bug: https://github.com/yasm/yasm/issues/164 | ||
| 10 | Bug-Debian: https://bugs.debian.org/1016353 | ||
| 11 | Forwarded: https://github.com/yasm/yasm/issues/164 | ||
| 12 | Last-Update: 2025-04-30 | ||
| 13 | |||
| 14 | CVE: CVE-2021-33464 | ||
| 15 | Upstream-Status: Submitted [https://github.com/yasm/yasm/issues/164] | ||
| 16 | |||
| 17 | Signed-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 | |||
| 22 | diff --git a/modules/preprocs/nasm/nasm-pp.c b/modules/preprocs/nasm/nasm-pp.c | ||
| 23 | index 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 | ||
