deadsimple BSD Security Advisories and Announcements

FreeBSD Errata Notice FreeBSD-EN-21:08.freebsd-update

Hash: SHA512

FreeBSD-EN-21:08.freebsd-update                                 Errata Notice
                                                          The FreeBSD Project

Topic:          freebsd-update passwd regeneration

Category:       core
Module:         freebsd-update
Announced:      2021-02-24
Affects:        All supported versions of FreeBSD.
Corrected:      2020-12-27 20:50:53 UTC (stable/12, 12.2-STABLE)
                2021-02-24 01:43:52 UTC (releng/12.2, 12.2-RELEASE-p4)
                2020-12-27 20:52:37 UTC (stable/11, 11.4-STABLE)
                2021-02-24 01:41:49 UTC (releng/11.4, 11.4-RELEASE-p8)

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-update provides binary updates for supported releases of FreeBSD on
amd64 and i386.

II.  Problem Description

The existing logic to try and avoid regenerating passwd/login.conf files
relies on timestamp comparisons between old and new files, with the caveat
that it's comparing the installed with a timestamp that has been clobbered to
do the comparison.

III. Impact

User and login.conf changes coming in from a binary update may not properly
regenerate the databases for the changes to take effect.

IV.  Workaround

To workaround this issue, one may regenerate databases manually with
pwd_mkdb(8) and cap_mkdb(1), e.g.,

pwd_mkdb -p /etc/master.passwd
cap_mkdb /etc/login.conf

V.   Solution

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

Perform one of the following:

1) 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

2) 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.

# fetch
# fetch
# gpg --verify freebsd-update.patch.asc

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

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

c) Recompile the operating system using buildworld and installworld as
described in <URL:>.

VI.  Correction details

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

Branch/path                                                      Revision
- -------------------------------------------------------------------------
stable/12/                                                        r368873
releng/12.2/                                                      r369356
stable/11/                                                        r368824
releng/11.4/                                                      r369349
- -------------------------------------------------------------------------

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://

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


VII. References

The latest revision of this advisory is available at

_______________________________________________ mailing list
To unsubscribe, send any mail to ""