cpio: patch CVE-2026-66484

Pick patch mentioned in NVD CVE description.

(From OE-Core rev: bc0c7e824c2a0b0df7c60c0a481877438bae805b)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(From OE-Core rev: a49025d54fe7723df999710e7a385aaeb42303a2)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
[YC: fixed the CVE: tag]

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Paul Barker <paul@pbarker.dev>
This commit is contained in:
Peter Marko authored and Paul Barker committed 2026-09-28 10:17:43 +01:00
1 parent 5e5ced9b00
commit 79af1381a9
2 files changed
+29

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \
file://run-ptest \
file://test.sh \
file://CVE-2026-66485.patch \
file://CVE-2026-66484.patch \
"
SRC_URI[sha256sum] = "efa50ef983137eefc0a02fdb51509d624b5e3295c980aa127ceee4183455499e"
@@ -0,0 +1,28 @@
From e2b9cbdd3354d2b1569b7390d1bc15c1930559ad Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff <gray@gnu.org>
Date: Thu, 23 Jul 2026 15:55:46 +0300
Subject: [PATCH] The --no-absolute-filenames option affects hard link targets
too.
* src/tar.c (stash_tar_linkname): Apply cpio_safer_name_suffix.
CVE: CVE-2026-66484
Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=e2b9cbdd3354d2b1569b7390d1bc15c1930559ad]
Signed-off-by: Peter Marko <peter.marko@siemens.com>
---
src/tar.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/tar.c b/src/tar.c
index 493f299..a1fc60a 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -37,6 +37,8 @@ stash_tar_linkname (char *linkname)
strncpy (hold_tar_linkname, linkname, TARLINKNAMESIZE);
hold_tar_linkname[TARLINKNAMESIZE] = '\0';
+ cpio_safer_name_suffix (hold_tar_linkname, true, !no_abs_paths_flag,
+ false);
return hold_tar_linkname;
}