* [PATCH] dpkg: fix CVE-2015-0860
@ 2016-01-27 10:22 Catalin Enache
2016-01-27 11:29 ` Burton, Ross
0 siblings, 1 reply; 4+ messages in thread
From: Catalin Enache @ 2016-01-27 10:22 UTC (permalink / raw)
To: openembedded-core
Backported and cherry picked upstream commit:
https://anonscm.debian.org/cgit/dpkg/dpkg.git/commit/?h=wheezy&id=f1aac7d933819569bf6f347c3c0d5a64a90bbce0
Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
---
.../dpkg/dpkg/dpkg-CVE-2015-0860.patch | 35 ++++++++++++++++++++++
meta/recipes-devtools/dpkg/dpkg_1.18.2.bb | 1 +
2 files changed, 36 insertions(+)
create mode 100644 meta/recipes-devtools/dpkg/dpkg/dpkg-CVE-2015-0860.patch
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 0000000..b8c70af
--- /dev/null
+++ b/meta/recipes-devtools/dpkg/dpkg/dpkg-CVE-2015-0860.patch
@@ -0,0 +1,35 @@
+From 708e60ea4e16afb1d85da60dd73cb374a987653d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Hanno=20B=C3=B6ck?= <hanno@hboeck.de>
+Date: Thu, 19 Nov 2015 20:03:10 +0100
+Subject: [PATCH 1/1] dpkg-deb: Fix off-by-one write access on ctrllenbuf
+ variable
+
+This affects old format .deb packages.
+
+Fixes: CVE-2015-0860
+Warned-by: afl
+Signed-off-by: Guillem Jover <guillem@debian.org>
+
+Upstream-Status: Backport
+
+Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
+---
+ dpkg-deb/extract.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/dpkg-deb/extract.c b/dpkg-deb/extract.c
+index 5a9587a..e39fb35 100644
+--- a/dpkg-deb/extract.c
++++ b/dpkg-deb/extract.c
+@@ -247,7 +247,7 @@ extracthalf(const char *debar, const char *dir,
+ if (errstr)
+ ohshit(_("archive has invalid format version: %s"), errstr);
+
+- r = read_line(arfd, ctrllenbuf, 1, sizeof(ctrllenbuf));
++ r = read_line(arfd, ctrllenbuf, 1, sizeof(ctrllenbuf) - 1);
+ if (r < 0)
+ read_fail(r, debar, _("archive control member size"));
+ if (sscanf(ctrllenbuf, "%jd%c%d", &ctrllennum, &nlc, &dummy) != 2 ||
+--
+1.9.1
+
diff --git a/meta/recipes-devtools/dpkg/dpkg_1.18.2.bb b/meta/recipes-devtools/dpkg/dpkg_1.18.2.bb
index dd1109b..eab896c 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 \
file://0004-The-lutimes-function-doesn-t-work-properly-for-all-s.patch \
file://0005-dpkg-compiler.m4-remove-Wvla.patch \
file://0006-add-musleabi-to-known-target-tripets.patch \
+ file://dpkg-CVE-2015-0860.patch \
"
SRC_URI[md5sum] = "63b9d869081ec49adeef6c5ff62d6576"
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] dpkg: fix CVE-2015-0860
2016-01-27 10:22 [PATCH] dpkg: fix CVE-2015-0860 Catalin Enache
@ 2016-01-27 11:29 ` Burton, Ross
2016-01-27 22:26 ` akuster808
2016-01-27 22:48 ` Burton, Ross
0 siblings, 2 replies; 4+ messages in thread
From: Burton, Ross @ 2016-01-27 11:29 UTC (permalink / raw)
To: Catalin Enache; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 164 bytes --]
On 27 January 2016 at 10:22, Catalin Enache <catalin.enache@windriver.com>
wrote:
> +Fixes: CVE-2015-0860
>
Please use the tag CVE: CVE-2015-0860.
Ross
[-- Attachment #2: Type: text/html, Size: 577 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dpkg: fix CVE-2015-0860
2016-01-27 11:29 ` Burton, Ross
@ 2016-01-27 22:26 ` akuster808
2016-01-27 22:48 ` Burton, Ross
1 sibling, 0 replies; 4+ messages in thread
From: akuster808 @ 2016-01-27 22:26 UTC (permalink / raw)
To: Burton, Ross, Catalin Enache; +Cc: OE-core
On 01/27/2016 03:29 AM, Burton, Ross wrote:
> On 27 January 2016 at 10:22, Catalin Enache <catalin.enache@windriver.com>
> wrote:
>
>> +Fixes: CVE-2015-0860
>>
>
I believe this applies to Jethro too. same version if layer index is
correct.
- armin
> Please use the tag CVE: CVE-2015-0860.
>
> Ross
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dpkg: fix CVE-2015-0860
2016-01-27 11:29 ` Burton, Ross
2016-01-27 22:26 ` akuster808
@ 2016-01-27 22:48 ` Burton, Ross
1 sibling, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2016-01-27 22:48 UTC (permalink / raw)
To: Catalin Enache; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 193 bytes --]
On 27 January 2016 at 11:29, Burton, Ross <ross.burton@intel.com> wrote:
> Please use the tag CVE: CVE-2015-0860.
>
Don't worry - as it's a CVE I fixed this and merged locally.
Ross
[-- Attachment #2: Type: text/html, Size: 563 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-01-27 22:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-27 10:22 [PATCH] dpkg: fix CVE-2015-0860 Catalin Enache
2016-01-27 11:29 ` Burton, Ross
2016-01-27 22:26 ` akuster808
2016-01-27 22:48 ` Burton, Ross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.