Skip to contentSkip to conversation

busybox: Add fix for CVE-2011-5325

PATCH New Rahul Taya 1 participant 1 message Jan 6, 2021

lore
Share & tools
lore

Rahul Taya

author Applied
#0 lore raw

PATCH 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-5.patch

---
 .../busybox/busybox/CVE-2011-5325-5.patch     | 35 +++++++++++++++++++
 meta/recipes-core/busybox/busybox_1.27.2.bb   |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 meta/recipes-core/busybox/busybox/CVE-2011-5325-5.patch
meta/recipes-core/busybox/busybox/CVE-2011-5325-5.patch new file +35 -0
new file mode 100644
index 0000000000..92e0e2289d
@@ -0,0 +1,35 @@
+From dd56921e2d404c8fc9484290a36411a13d14df1a Mon Sep 17 00:00:00 2001
+From: Denys Vlasenko <[email protected]>
+Date: Fri, 13 Apr 2018 13:26:33 +0200
+Subject: dpkg: fix symlink creation, closes 10941
+
+function                                             old     new   delta
+get_header_ar                                        434     442      +8
+
+Signed-off-by: Denys Vlasenko <[email protected]>
+
+CVE: CVE-2011-5325
+[http://archive.ubuntu.com/ubuntu/pool/main/b/busybox/busybox_1.27.2-2ubuntu3.2.debian.tar.xz]
+Upstream-Status: Backport
+---
+ archival/libarchive/get_header_ar.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/archival/libarchive/get_header_ar.c b/archival/libarchive/get_header_ar.c
+index 93e071c..a979706 100644
+--- a/archival/libarchive/get_header_ar.c
++++ b/archival/libarchive/get_header_ar.c
+@@ -127,8 +127,10 @@ char FAST_FUNC get_header_ar(archive_handle_t *archive_handle)
+               archive_handle->action_header(typed);
+ #if ENABLE_DPKG || ENABLE_DPKG_DEB
+               if (archive_handle->dpkg__sub_archive) {
+-                      while (archive_handle->dpkg__action_data_subarchive(archive_handle->dpkg__sub_archive) == EXIT_SUCCESS)
++                      struct archive_handle_t *sa = archive_handle->dpkg__sub_archive;
++                      while (archive_handle->dpkg__action_data_subarchive(sa) == EXIT_SUCCESS)
+                               continue;
++                      create_symlinks_from_list(sa->symlink_placeholders);
+               } else
+ #endif
+                       archive_handle->action_data(archive_handle);
+--
+cgit v0.12
meta/recipes-core/busybox/busybox_1.27.2.bb +1 -0
index 716a0650fc..ecb3e8f643 100644
@@ -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-5.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.