diff options
author | Catalin Enache <catalin.enache@windriver.com> | 2016-01-27 18:22:21 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-30 11:37:01 +0000 |
commit | 51d9ba6ea2260f9df0d55635e2b5d2c824a66e17 (patch) | |
tree | 32e1ad93d415012123fec0e3641e27e576acc1ae /meta/recipes-devtools/dpkg | |
parent | f80d16e4d3edf93c72581d75084744b518bc5cb8 (diff) | |
download | poky-51d9ba6ea2260f9df0d55635e2b5d2c824a66e17.tar.gz |
dpkg: fix CVE-2015-0860
Backported and cherry picked upstream commit:
https://anonscm.debian.org/cgit/dpkg/dpkg.git/commit/?h=wheezy&id=f1aac7d933819569bf6f347c3c0d5a64a90bbce0
(From OE-Core rev: 562310ac906ffc4a7f1be5fce6e2e8395724fcff)
Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/dpkg')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg/dpkg-CVE-2015-0860.patch | 35 | ||||
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg_1.18.2.bb | 1 |
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg/dpkg-CVE-2015-0860.patch b/meta/recipes-devtools/dpkg/dpkg/dpkg-CVE-2015-0860.patch new file mode 100644 index 0000000000..2fd3c3bb90 --- /dev/null +++ b/meta/recipes-devtools/dpkg/dpkg/dpkg-CVE-2015-0860.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 708e60ea4e16afb1d85da60dd73cb374a987653d Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Hanno=20B=C3=B6ck?= <hanno@hboeck.de> | ||
3 | Date: Thu, 19 Nov 2015 20:03:10 +0100 | ||
4 | Subject: [PATCH 1/1] dpkg-deb: Fix off-by-one write access on ctrllenbuf | ||
5 | variable | ||
6 | |||
7 | This affects old format .deb packages. | ||
8 | |||
9 | CVE: CVE-2015-0860 | ||
10 | Warned-by: afl | ||
11 | Signed-off-by: Guillem Jover <guillem@debian.org> | ||
12 | |||
13 | Upstream-Status: Backport | ||
14 | |||
15 | Signed-off-by: Catalin Enache <catalin.enache@windriver.com> | ||
16 | --- | ||
17 | dpkg-deb/extract.c | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/dpkg-deb/extract.c b/dpkg-deb/extract.c | ||
21 | index 5a9587a..e39fb35 100644 | ||
22 | --- a/dpkg-deb/extract.c | ||
23 | +++ b/dpkg-deb/extract.c | ||
24 | @@ -247,7 +247,7 @@ extracthalf(const char *debar, const char *dir, | ||
25 | if (errstr) | ||
26 | ohshit(_("archive has invalid format version: %s"), errstr); | ||
27 | |||
28 | - r = read_line(arfd, ctrllenbuf, 1, sizeof(ctrllenbuf)); | ||
29 | + r = read_line(arfd, ctrllenbuf, 1, sizeof(ctrllenbuf) - 1); | ||
30 | if (r < 0) | ||
31 | read_fail(r, debar, _("archive control member size")); | ||
32 | if (sscanf(ctrllenbuf, "%jd%c%d", &ctrllennum, &nlc, &dummy) != 2 || | ||
33 | -- | ||
34 | 1.9.1 | ||
35 | |||
diff --git a/meta/recipes-devtools/dpkg/dpkg_1.18.2.bb b/meta/recipes-devtools/dpkg/dpkg_1.18.2.bb index dd1109bbad..eab896c342 100644 --- a/meta/recipes-devtools/dpkg/dpkg_1.18.2.bb +++ b/meta/recipes-devtools/dpkg/dpkg_1.18.2.bb | |||
@@ -13,6 +13,7 @@ SRC_URI += "file://noman.patch \ | |||
13 | file://0004-The-lutimes-function-doesn-t-work-properly-for-all-s.patch \ | 13 | file://0004-The-lutimes-function-doesn-t-work-properly-for-all-s.patch \ |
14 | file://0005-dpkg-compiler.m4-remove-Wvla.patch \ | 14 | file://0005-dpkg-compiler.m4-remove-Wvla.patch \ |
15 | file://0006-add-musleabi-to-known-target-tripets.patch \ | 15 | file://0006-add-musleabi-to-known-target-tripets.patch \ |
16 | file://dpkg-CVE-2015-0860.patch \ | ||
16 | " | 17 | " |
17 | 18 | ||
18 | SRC_URI[md5sum] = "63b9d869081ec49adeef6c5ff62d6576" | 19 | SRC_URI[md5sum] = "63b9d869081ec49adeef6c5ff62d6576" |