Bug 219005 - security/libressl: branches/2017Q2 fails to apply patch-CVE-2017-8031
Summary: security/libressl: branches/2017Q2 fails to apply patch-CVE-2017-8031
Status: Closed DUPLICATE of bug 218988
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Bernard Spil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-01 17:53 UTC by Xavier Garcia
Modified: 2017-05-02 14:32 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brnrd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Garcia 2017-05-01 17:53:36 UTC
Hi,

Running Poudriere in 11-RELEASE. Libressl fails to build in the quarterly branch.

===>  Applying FreeBSD patches for libressl-2.4.5_1
1 out of 2 hunks failed--saving rejects to crypto/x509/x509_vfy.c.rej
=> FreeBSD patch patch-CVE-2017-8301 failed to apply cleanly.
*** Error code 1

Stop.

Make file options:

/usr/jails/poudriere/usr/local/etc/poudriere.d # cat 110amd64-2017Q2-libressl-make.conf
WITH_OPENSSL_PORT=      yes
DEFAULT_VERSIONS+=ssl=libressl


OPTIONS_UNSET= GSSAPI_BASE
OPTIONS_SET=   GSSAPI_NONE

OPTIONS_UNSET+= GSSAPI


# jexec poudriere uname -a
FreeBSD poudriere 11.0-RELEASE-p8 FreeBSD 11.0-RELEASE-p8 #0: Wed Feb 22 06:12:04 UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
Comment 1 Xavier Garcia 2017-05-02 08:40:47 UTC
Hi,

I had a look in the lab and the mentioned patch fixes the CVE-2017-8301 in Libressl 2.5.X, that is available in Head, but the Libressl version in 2017Q2  2.4.5.


Kind regards,

Xavier Garcia
Comment 2 Xavier Garcia 2017-05-02 13:47:59 UTC

*** This bug has been marked as a duplicate of bug 218988 ***
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-05-02 14:32:39 UTC
A commit references this bug:

Author: brnrd
Date: Tue May  2 14:31:54 UTC 2017
New revision: 439948
URL: https://svnweb.freebsd.org/changeset/ports/439948

Log:
  security/libressl: Revert previous commit

   - Big fail on my part, required revert
   - Version 2.4.5 not vulnerable to CVE-2017-8301

  PR:             218988 219005
  Reported by:    Xavier Garcia <vi.garcia@gmail.com>
  Reported by:    Fabian Keil <fk@fabiankeil.de>

  Approved by:	ports-secteam (broken quarterly blanket)

Changes:
  branches/2017Q2/security/libressl/Makefile
  branches/2017Q2/security/libressl/files/patch-CVE-2017-8301
  branches/2017Q2/security/libressl-devel/Makefile
  branches/2017Q2/security/libressl-devel/files/patch-CVE-2017-8301