Skip to contentSkip to conversation

cpio: patch CVE-2026-66485

PATCH New Peter Marko 1 participant 3 messages Aug 12

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 cpio: patch CVE-2026-66485

From: Peter Marko <[email protected]>

Pick patch mentioned in NVD CVE description.

---
 meta/recipes-extended/cpio/cpio_2.15.bb       |   1 +
 .../cpio/files/CVE-2026-66485.patch           | 210 ++++++++++++++++++
 2 files changed, 211 insertions(+)
 create mode 100644 meta/recipes-extended/cpio/files/CVE-2026-66485.patch
meta/recipes-extended/cpio/cpio_2.15.bb +1 -0
index 8c31209f77..324f5e9490 100644
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"
 SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \
            file://run-ptest \
            file://test.sh \
+           file://CVE-2026-66485.patch \
            "
 
 SRC_URI[sha256sum] = "efa50ef983137eefc0a02fdb51509d624b5e3295c980aa127ceee4183455499e"
meta/recipes-extended/cpio/files/CVE-2026-66485.patch new file +210 -0

210 lines not on this page · raw message

#1 lore raw

PATCH 2/3 cpio: patch CVE-2026-66484

From: Peter Marko <[email protected]>

Pick patch mentioned in NVD CVE description.

---
 meta/recipes-extended/cpio/cpio_2.15.bb       |  1 +
 .../cpio/files/CVE-2026-66484.patch           | 28 +++++++++++++++++++
 2 files changed, 29 insertions(+)
 create mode 100644 meta/recipes-extended/cpio/files/CVE-2026-66484.patch
meta/recipes-extended/cpio/cpio_2.15.bb +1 -0
index 324f5e9490..9b4ab52228 100644
@@ -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"
meta/recipes-extended/cpio/files/CVE-2026-66484.patch new file +28 -0
new file mode 100644
index 0000000000..97ce9a785c
@@ -0,0 +1,28 @@
+From e2b9cbdd3354d2b1569b7390d1bc15c1930559ad Mon Sep 17 00:00:00 2001
+From: Sergey Poznyakoff <[email protected]>
+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-66485
+Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=e2b9cbdd3354d2b1569b7390d1bc15c1930559ad]
+Signed-off-by: Peter Marko <[email protected]>
+---
+ 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;
+ }
+ 
#2 lore raw

PATCH 3/3 cpio: patch CVE-2026-66486

In reply to Peter Marko

From: Peter Marko <[email protected]>

Pick patch mentioned in NVD CVE description.
Resolve trivial conflicts.

---
 meta/recipes-extended/cpio/cpio_2.15.bb       |   1 +
 .../cpio/files/CVE-2026-66486.patch           | 497 ++++++++++++++++++
 2 files changed, 498 insertions(+)
 create mode 100644 meta/recipes-extended/cpio/files/CVE-2026-66486.patch
meta/recipes-extended/cpio/cpio_2.15.bb +1 -0
index 9b4ab52228..f4a49b3cd9 100644
@@ -11,6 +11,7 @@ SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \
            file://test.sh \
            file://CVE-2026-66485.patch \
            file://CVE-2026-66484.patch \
+           file://CVE-2026-66486.patch \
            "
 
 SRC_URI[sha256sum] = "efa50ef983137eefc0a02fdb51509d624b5e3295c980aa127ceee4183455499e"
meta/recipes-extended/cpio/files/CVE-2026-66486.patch new file +497 -0

497 lines not on this page · raw message