/[smecontribs]/rpms/libarchive/contribs9/libarchive-2.8.3-CVE-2016-4809.patch
ViewVC logotype

Contents of /rpms/libarchive/contribs9/libarchive-2.8.3-CVE-2016-4809.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sun Apr 8 03:27:37 2018 UTC (6 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: libarchive-2_8_5-1_el6_sme, libarchive-2_8_5-0_el6_sme, HEAD
sources

1 From 54b3d0b00a77476874ab8eb01263d75227607eeb Mon Sep 17 00:00:00 2001
2 From: Tim Kientzle <kientzle@acm.org>
3 Date: Sat, 14 May 2016 12:37:37 -0700
4 Subject: [PATCH] Reject cpio symlinks that exceed 1MB
5
6 ---
7 libarchive/archive_read_support_format_cpio.c | 5 +++++
8 1 file changed, 5 insertions(+)
9
10 diff --git a/libarchive/archive_read_support_format_cpio.c b/libarchive/archive_read_support_format_cpio.c
11 index 1def000..37d8caf 100644
12 --- a/libarchive/archive_read_support_format_cpio.c
13 +++ b/libarchive/archive_read_support_format_cpio.c
14 @@ -247,6 +247,11 @@ archive_read_format_cpio_read_header(struct archive_read *a,
15
16 /* If this is a symlink, read the link contents. */
17 if (archive_entry_filetype(entry) == AE_IFLNK) {
18 + if (cpio->entry_bytes_remaining > 1024 * 1024) {
19 + archive_set_error(&a->archive, ENOMEM,
20 + "Rejecting malformed cpio archive: symlink contents exceed 1 megabyte");
21 + return (ARCHIVE_FATAL);
22 + }
23 h = __archive_read_ahead(a, cpio->entry_bytes_remaining, NULL);
24 if (h == NULL)
25 return (ARCHIVE_FATAL);
26 --
27 2.7.4
28

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed