cpio: patch CVE-2026-66485
PATCH 1/3 cpio: patch CVE-2026-66485
From: Peter Marko <[email protected]>
Pick patch mentioned in NVD CVE description.
(From OE-Core rev: c105fbf82e2f50b05dc680e0601bf0ea3198e58c)
--- 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
@@ -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
PATCH 2/3 cpio: patch CVE-2026-66484
From: Peter Marko <[email protected]>
Pick patch mentioned in NVD CVE description.
(From OE-Core rev: a49025d54fe7723df999710e7a385aaeb42303a2)
--- 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
@@ -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
@@ -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; + } +
PATCH 3/3 cpio: patch CVE-2026-66486
In reply to Peter MarkoFrom: Peter Marko <[email protected]>
Pick patch mentioned in NVD CVE description.
Resolve trivial conflicts.
(From OE-Core rev: e70183674aacaef32e4fd34277ce2482a89a44a7)
--- 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
@@ -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
Quoted 6 lines · Peter Marko via lists.openembedded.org
From: Peter Marko <[email protected]>
Pick patch mentioned in NVD CVE description.
Signed-off-by Peter Marko <[email protected]>Signed-off-by Richard Purdie <[email protected]>
Quoted 7 lines
(From OE-Core rev:
c105fbf82e2f50b05dc680e0601bf0ea3198e58c)Signed-off-by Peter Marko <[email protected]>--- 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
Hello,
It looks like this series triggers ptests issues:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/61/builds/4362
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/73/builds/4378
https://valkyrie.yocto.io/pub/non-release/20260824-88/testresults/qemux86-64-ptest/core-image-ptest-cpio/log.do_testimage.311338.20260824214940
| FAIL: CVE-2019-14866 (tar header size overflow)
Can you look into this?
Thanks!
Signature · 2 lines
Yoann Congal Smile ECS
Quoted 21 lines · Yoann Congal
Quoted 6 lines · Peter Marko via lists.openembedded.org
From: Peter Marko <[email protected]>
Pick patch mentioned in NVD CVE description.
Signed-off-by Peter Marko <[email protected]>Signed-off-by Richard Purdie <[email protected]>Quoted 7 lines
(From OE-Core rev:
c105fbf82e2f50b05dc680e0601bf0ea3198e58c)Signed-off-by Peter Marko <[email protected]>--- 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.patchHello,
It looks like this series triggers ptests issues:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/61/builds/4362
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/73/builds/4378
Quoted 6 lines
https://valkyrie.yocto.io/pub/non-release/20260824-88/testresults/qemux86-64-ptest/core-image-ptest-cpio/log.do_testimage.311338.20260824214940
| FAIL: CVE-2019-14866 (tar header size overflow)Can you look into this?
Thanks!
FYI, with this series removed, the ptests succeded here:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/73/builds/4382
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/61/builds/4365
Regards,
Signature · 2 lines
Yoann Congal Smile ECS
Quoted 31 lines
-----Original Message-----
From: Yoann Congal <[email protected]>
Sent: Friday, August 28, 2026 10:25 AM
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>; [email protected]
Subject: Re: [OE-core] [scarthgap][PATCH 1/3] cpio: patch CVE-2026-66485Quoted 6 lines · Peter Marko via lists.openembedded.org
From: Peter Marko <[email protected]>
Pick patch mentioned in NVD CVE description.
Signed-off-by Peter Marko <[email protected]>Signed-off-by Richard Purdie <[email protected]>Quoted 7 lines
(From OE-Core rev:
c105fbf82e2f50b05dc680e0601bf0ea3198e58c)Signed-off-by Peter Marko <[email protected]>--- 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.patchHello,
It looks like this series triggers ptests issues:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/61/builds/4362
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/73/builds/4378
Quoted 5 lines
https://valkyrie.yocto.io/pub/non-release/20260824-88/testresults/qemux86-64-
ptest/core-image-ptest-cpio/log.do_testimage.311338.20260824214940 | FAIL: CVE-2019-14866 (tar header size overflow)Can you look into this?
I really hate the expectfail default setting, sometimes I miss the failure...
Could you please take the first two patches from this series?
Only the third one is causing the error.
After two weeks of vacation lot of things piled up so it will take me some time to clear my backlog to be able to look at this issue.
Thanks,
Peter
Quoted 5 lines
Thanks!
--
Yoann Congal
Smile ECS
Quoted 35 lines · Peter Marko
Quoted 35 lines
-----Original Message-----
From: Yoann Congal <[email protected]>
Sent: Friday, August 28, 2026 10:25 AM
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>; [email protected]
Subject: Re: [OE-core] [scarthgap][PATCH 1/3] cpio: patch CVE-2026-66485Quoted 6 lines · Peter Marko via lists.openembedded.org
From: Peter Marko <[email protected]>
Pick patch mentioned in NVD CVE description.
Signed-off-by Peter Marko <[email protected]>Signed-off-by Richard Purdie <[email protected]>Quoted 7 lines
(From OE-Core rev:
c105fbf82e2f50b05dc680e0601bf0ea3198e58c)Signed-off-by Peter Marko <[email protected]>--- 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.patchHello,
It looks like this series triggers ptests issues:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/61/builds/4362
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/73/builds/4378https://valkyrie.yocto.io/pub/non-release/20260824-88/testresults/qemux86-64-
ptest/core-image-ptest-cpio/log.do_testimage.311338.20260824214940 | FAIL: CVE-2019-14866 (tar header size overflow)
Quoted 7 lines
Quoted 1 line
Can you look into this?
I really hate the expectfail default setting, sometimes I miss the failure...
Could you please take the first two patches from this series?
Only the third one is causing the error.
After two weeks of vacation lot of things piled up so it will take me some time to clear my backlog to be able to look at this issue.
I can take 1-2/3.
Thanks!
Quoted 9 lines
Thanks,
PeterQuoted 5 lines
Thanks!
--
Yoann Congal
Smile ECS
Signature · 2 lines
Yoann Congal Smile ECS