[FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-18:04.mem

FreeBSD Errata Notices errata-notices at freebsd.org
Wed Apr 4 06:27:16 UTC 2018

Hash: SHA512

FreeBSD-EN-18:04.mem                                            Errata Notice
                                                          The FreeBSD Project

Topic:          Multiple small kernel memory disclosures

Category:       core
Module:         kernel
Announced:      2018-04-04
Credits:        Ilja van Sprundel
Affects:        All supported versions of FreeBSD.
Corrected:      2018-03-28 13:41:43 UTC (stable/11, 11.1-STABLE)
                2018-04-04 05:43:03 UTC (releng/11.1, 11.1-RELEASE-p9)
                2018-03-29 22:31:14 UTC (stable/10, 10.4-STABLE)
                2018-04-04 05:43:03 UTC (releng/10.4, 10.4-RELEASE-p8)
                2018-04-04 05:43:03 UTC (releng/10.3, 10.3-RELEASE-p29)
CVE Name:       CVE-2018-6919

For general information regarding FreeBSD Errata Notices and Security
Advisories, including descriptions of the fields above, security
branches, and the following sections, please visit

I.   Background

FreeBSD includes drivers for HighPoint disk controllers via the hpt27xx(4),
hptnr(4) and hptrr(4) drivers, for some graphics cards via drm drivers.  In
addition, FreeBSD includes optional support for executing svr4 and ibcs2

II.  Problem Description

Due to insufficient initialization of memory copied to userland small amounts
of kernel memory may be disclosed to userland processes.

III. Impact

A user who can access these drivers or execute svr4 or ibcs2 binaries
may be able to read the contents of kernel memory.

Such memory might contain sensitive information, such as portions of the file
cache or terminal buffers.  This information might be directly useful, or it
might be leveraged to obtain elevated privileges in some way; for example,
a terminal buffer might include a user-entered password.

IV.  Workaround

No workaround is available, but systems that do not use these devices and
do not enable support for ibcs2 and svr4 binaries are not vulnerable.
In addition, note that the drm driver affected by this issue supports only
relatively old hardware.  Systems built within the last decade likely
contain graphics hardware supported by the drm2 driver in the FreeBSD base
system or the drm-next-kmod driver in FreeBSD ports.

V.   Solution

Perform one of the following:

1) Upgrade your system to a supported FreeBSD stable or release / security
branch (releng) dated after the correction date.

Afterward, reboot the system.

2) To update your system via a binary patch:

Systems running a RELEASE version of FreeBSD on the i386 or amd64
platforms can be updated via the freebsd-update(8) utility:

# freebsd-update fetch
# freebsd-update install

Afterward, reboot the system.

3) To update your system via a source code patch:

The following patches have been verified to apply to the applicable
FreeBSD release branches.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

[FreeBSD 11.x]
# fetch https://security.FreeBSD.org/patches/EN-18:04/mem.11.patch
# fetch https://security.FreeBSD.org/patches/EN-18:04/mem.11.patch.asc
# gpg --verify mem.11.patch.asc

[FreeBSD 10.x]
# fetch https://security.FreeBSD.org/patches/EN-18:04/mem.10.patch
# fetch https://security.FreeBSD.org/patches/EN-18:04/mem.10.patch.asc
# gpg --verify mem.10.patch.asc

b) Apply the patch.  Execute the following commands as root:

# cd /usr/src
# patch < /path/to/patch

c) Recompile your kernel as described in
<URL:https://www.FreeBSD.org/handbook/kernelconfig.html> and reboot the

VI.  Correction details

The following list contains the correction revision numbers for each
affected branch.

Branch/path                                                      Revision
- -------------------------------------------------------------------------
stable/10/                                                        r331749
releng/10.3/                                                      r331987
releng/10.4/                                                      r331987
stable/11/                                                        r331670
releng/11.1/                                                      r331987
- -------------------------------------------------------------------------

To see which files were modified by a particular revision, run the
following command, replacing NNNNNN with the revision number, on a
machine with Subversion installed:

# svn diff -cNNNNNN --summarize svn://svn.freebsd.org/base

Or visit the following URL, replacing NNNNNN with the revision number:


VII. References


The latest revision of this advisory is available at


More information about the freebsd-announce mailing list