busybox: Add fix for CVE-2011-5325
Rahul Taya
AppliedPATCH 1/1 busybox: Add fix for CVE-2011-5325
Applied patch that Ubuntu applied to busybox 1.27.2
The patch is available from file:
http://archive.ubuntu.com/ubuntu/pool/main/b/busybox/busybox_1.27.2-2ubuntu3.2.debian.tar.xz
in path debian/patches/.
The below patch is added:
CVE-2011-5325-4.patch
--- .../busybox/busybox/CVE-2011-5325-4.patch | 31 +++++++++++++++++++ meta/recipes-core/busybox/busybox_1.27.2.bb | 1 + 2 files changed, 32 insertions(+) create mode 100644 meta/recipes-core/busybox/busybox/CVE-2011-5325-4.patch
meta/recipes-core/busybox/busybox/CVE-2011-5325-4.patch new file +31 -0
@@ -0,0 +1,31 @@ +From d9503224c8a93a30b0c8627084b2744d3ee6f403 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <[email protected]> +Date: Fri, 30 Mar 2018 20:18:12 +0200 +Subject: cpio: extract "unsafe" symlinks the same way tar/unzip does + +function old new delta +cpio_main 588 596 +8 + +Signed-off-by: Natanael Copa <[email protected]> +Signed-off-by: Denys Vlasenko <[email protected]> +--- + archival/cpio.c | 2 ++ + 1 file changed, 2 insertions(+) + +CVE: CVE-2011-5325 +Upstream-Status: Backport [http://archive.ubuntu.com/ubuntu/pool/main/b/busybox/busybox_1.27.2-2ubuntu3.2.debian.tar] +diff --git a/archival/cpio.c b/archival/cpio.c +index 1d6cbd1..308ec1b 100644 +--- a/archival/cpio.c ++++ b/archival/cpio.c +@@ -508,6 +508,8 @@ int cpio_main(int argc UNUSED_PARAM, char **argv) + while (get_header_cpio(archive_handle) == EXIT_SUCCESS) + continue; + ++ create_symlinks_from_list(archive_handle->symlink_placeholders); ++ + if (archive_handle->cpio__blocks != (off_t)-1 + && !(opt & OPT_QUIET) + ) { +-- +cgit v0.12
meta/recipes-core/busybox/busybox_1.27.2.bb +1 -0
@@ -49,6 +49,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://busybox-fix-lzma-segfaults.patch \ file://umount-ignore-c.patch \ file://CVE-2017-15874.patch \ + file://CVE-2011-5325-4.patch \ " SRC_URI_append_libc-musl = " file://musl.cfg "
--
2.17.1
This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.