From nobody Tue Oct 03 23:03:35 2023 X-Original-To: freebsd-announce@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S0YK32J5xz4w6tn for ; Tue, 3 Oct 2023 23:03:35 +0000 (UTC) (envelope-from security-advisories@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S0YK31hQjz3FxB; Tue, 3 Oct 2023 23:03:35 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696374215; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=1IaKPP/OnTdVxociEN12zPrON0LlF7XMcKi5hejlZ6o=; b=xZBp8scwCTUNv1mh4Ih+rpgScqgl1J9hS+c5TdlGGgvzL1lQlAZf/MhX5JZFAqNbDu0V8e LY4d+VgHkLLl+KOpiH7NDtf7vTR+CrSoy3d0FY2U/yU8soPyhmGRZYVfO1CIa++DUUuS/D J1syHE7m9QseStQ1ssWFsAh65zWjYC39Mta5lEQWV9mx2CpbgWG/SB35hBD+5ULqIg2E+H 7Z+DaxabzYWI3G87WZjBeBo3z/2Lq8IAkSP3J5IjpLO4zph+4aWlLgOSddJw8Gy6IUobFp mHXV94/lPT9+ZeQRsyM9KvLbBM0pe0MCNPk0Qu+LJCfLdURZC54x40Q83K/DzQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696374215; a=rsa-sha256; cv=none; b=U5Ye7aRBkXHaFTU/53jFa9MKT+rCTvH02SibXAnBa7eJSPrO5Av3rvLAv6bsY8TSXow8ER tmu9ifxz8hiiBk9kMdS5yIeaUWDT0OliNU9nGTz+W27Hc6+Dg2vCay19uDp+zhSW16gVhW fVAIjCp99Zy9UJ9NTfkSW1jbPo1nRSePf9LLdWZsfLxRxjzErM6anRBlf/YCtdTeKM7YxN nwwwMzgOqsxBSytegF8OzEiZ3QI2w8CySCiqZ8Mm3nCCT+LwWiAXVyiFUv5Vdh+x+isMzy gokf6841ELv1J2ND0gJHYWduS2o3aN1Ze/uoqGVpVY0bzS2hpSUDfaYWxtVI6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696374215; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=1IaKPP/OnTdVxociEN12zPrON0LlF7XMcKi5hejlZ6o=; b=qDQi8xvLR/3r5qGAbGWcZEIU/6xztnlX9fX1fM4i8xbclLKEf7zaj5YBbW6fifn8fXr0Hn r4QINVLxkczK/IAU0Tnd9T1KR7jhn/YXypBBpqJIKgGcsJq4bhip3QuekQlbCwHyQondVg 78Y+v8AiBU5WmT786nJvKCQ2rlMts6fdXWrtDT2JvxLyM3tBjGhp0kI1PV558AaDDvEqNL yS/DUTAM9KB8qMASJ+/KeTX9mU9TC5cR95q789C3dKAL2pCalVLpIsOFFY2j8pI17Q+g/q ZUQ60CvlZIMnJp+iNVH5Pzf1UYFwk3growQhTvpcTr/8Ur5xLE8XyEa8+xGoIg== Received: by freefall.freebsd.org (Postfix, from userid 945) id 0B92113333; Tue, 3 Oct 2023 23:03:35 +0000 (UTC) From: FreeBSD Errata Notices To: FreeBSD Errata Notices Subject: FreeBSD Errata Notice FreeBSD-EN-23:09.freebsd-update [REVISED] Reply-To: freebsd-stable@freebsd.org Precedence: bulk Message-Id: <20231003230335.0B92113333@freefall.freebsd.org> Date: Tue, 3 Oct 2023 23:03:35 +0000 (UTC) List-Id: Project Announcements [moderated] List-Archive: https://lists.freebsd.org/archives/freebsd-announce List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-announce@freebsd.org X-BeenThere: freebsd-announce@freebsd.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-EN-23:09.freebsd-update Errata Notice The FreeBSD Project Topic: freebsd-update incorrectly merges files on upgrade Category: core Module: freebsd-update Announced: 2023-09-06 Affects: FreeBSD 13.2 Corrected: 2023-05-16 21:34:10 UTC (stable/13, 13.2-STABLE) 2023-09-06 16:56:24 UTC (releng/13.2, 13.2-RELEASE-p3) 2023-09-28 13:42:18 UTC (stable/12, 12.4-STABLE) 2023-10-03 22:15:35 UTC (releng/12.4, 12.4-RELEASE-p6) For general information regarding FreeBSD Errata Notices and Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . 2023-09-06 Initial Revision 2023-10-03 Updated to include the patch for 12.4-RELEASE. I. Background freebsd-update provides binary updates for supported releases of FreeBSD on amd64, arm64, and i386. II. Problem Description freebsd-update incorrectly deleted files in /etc/ in the event the file to be updated matched the new release and was different than the old release. This has not been an issue previously because the $FreeBSD$ tag expansion from subversion virtually guaranteed the existing file was going to be different from the new release. With the conversion to git in the 13.x releases, $FreeBSD$ is no longer expanded, making it much more likely that a file would find this issue. III. Impact Unmodified files in /etc/ may be deleted on running freebsd-update upgrade. IV. Workaround No workaround is available. V. Solution Upgrade your system to a supported FreeBSD stable or release / security branch (releng) dated after the correction date. Perform one of the following: 1) To update your system via a binary patch: Systems running a RELEASE version of FreeBSD on the amd64, i386, or (on FreeBSD 13 and later) arm64 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 https://security.FreeBSD.org/patches/EN-23:09/freebsd-update.patch # fetch https://security.FreeBSD.org/patches/EN-23:09/freebsd-update.patch.asc # 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 . VI. Correction details This issue is corrected by the corresponding Git commit hash or Subversion revision number in the following stable and release branches: Branch/path Hash Revision - ------------------------------------------------------------------------- stable/13/ 866e5c6b3ce7 stable/13-n255386 releng/13.2/ 0b39d9de2e71 releng/13.2-n254628 stable/12/ r373221 releng/12.4/ r373231 - ------------------------------------------------------------------------- For FreeBSD 13 and later: Run the following command to see which files were modified by a particular commit: # git show --stat Or visit the following URL, replacing NNNNNN with the hash: To determine the commit count in a working tree (for comparison against nNNNNNN in the table above), run: # git rev-list --count --first-parent HEAD For FreeBSD 12 and earlier: Run the following command to see which files were modified by a particular revision, replacing NNNNNN with the revision number: # 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 -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEthUnfoEIffdcgYM7bljekB8AGu8FAmUclTsACgkQbljekB8A Gu+mvBAAumfz3Q0E3r4JXRaYDUBHgMN+L86xn9gzt/+sbrMtHCdJ1NariCwXO3lH tGgPW97xRZG4r1IQYayydYo3N7X4u4egzyz/HNKWhxJjkSBkgQG19IDryi9n/2B4 g5lFaLUGT57pKJDpbDWwvdKbpgUDEfHVTG2hthDVFcnJRuPVSaqdEcOi0eWuX/Dy 8t9CA+9TkvmaY9bl4Lbyltsf0ycSYOp2FDVOKorm0D1GvVAcA+5+9pw02IdFZuGo CFiXhstcIGs9kKGdtC21tkxemz8oV4Ub9gjsVYyVDzbvKcYtsb/EIKCiTnPcgL9M DBrekG3LhUK+pZ+V+eHFGToBukITPcZ/gkSwl59Zu1fB1ITBm9QoriwL5R6udpYA mymzlTYTnLIrGAu4u1Ft2RSXvxwfIAtErM0MyijI1KFl9q5EFhSJzSnTG411FJP4 w51r0iKHtMJdeL+gYFkWUQrZM+oDHOhuvhYwzbh0cZD2DFksCT2OB0F/zVCHvPsD uQag2aCttm1uEEhUeMqIYmByR93ctN+TuwmH3Qev0u0lamG5xfzxDEBtDVB2ThyC 9TLFXTrgR5ENmwaCkRkj1YwHdwfBmqPyoN4BBOIFYCXzvA1UIN3nCcm4FpeHXvWs EToL2Z1MUDCc7lfOsPNRrTBrDyqYUjOP9qlKR8F9CJfhR6eSMLc= =wkOB -----END PGP SIGNATURE-----