From nobody Tue Jan 11 19:39:24 2022 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 F38C6193A5D1 for ; Tue, 11 Jan 2022 19:39:24 +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 4JYLcD5PYMz3J1V; Tue, 11 Jan 2022 19:39:24 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641929964; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=fL209y7M460/hG2cqRKQcK7DGtEicZNJN5Vwa8u35gk=; b=H6kj64+CVIUuU4ZzfPTLrSTfKcDhjUChxlDDOdlpAlcJIAbTonDOwaxd+ZHVClusS5X3Cu esWJunbGBBu9McfvrXOBTqlVNwtcpCmVybTBGiaRkW9Ny5f1tVlEnIaGvzIrb3mqOJRhy4 nZqKchQ3KJXgDkWWwYGm4nTGp65etWdobMTBu2wnEHfY8TOKbYmrJxDEEWJEIMiiiG0Mw6 E5D/1YldnybUTbL9H8n7rGX3W3+wlYduHR1sbYYiN0RF7dfELbnPQt231+hXH7nKqVWjmf TwOTTATh6l00RFxjzVe0pBhniIAt/bFj2zdZhvedeNQU72gFk/u1UQvzhYbppw== Received: by freefall.freebsd.org (Postfix, from userid 945) id 694621D84A; Tue, 11 Jan 2022 19:39:24 +0000 (UTC) From: FreeBSD Errata Notices To: FreeBSD Errata Notices Subject: [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-22:05.tail Reply-To: freebsd-stable@freebsd.org Precedence: bulk Approved: BingGo! Message-Id: <20220111193924.694621D84A@freefall.freebsd.org> Date: Tue, 11 Jan 2022 19:39:24 +0000 (UTC) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641929964; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=fL209y7M460/hG2cqRKQcK7DGtEicZNJN5Vwa8u35gk=; b=qr8C2wIk6JmWngAwHNk1lrqQnNMPux9TvPHAK3PvrxG/AoyikdXBAvJzgOrqObg+Ic0aA9 rNt1JOTlA79tD6a7nFnfHCkxjRtY7zxhPBnp2VCacR6SXPEb3TBhqIt1HpNmqU5rnTorzk 34Vz1jzCBVRlFrfVIOfJaSQqqbsaIE8mtpC+1CXfUcdVvKNZWBUFLyJeQLiSjBOhxH8CnS fyHNnuYnll1ELfmLCwx1iDKlwcLmyLy19kxZ1yc7KoVShiDzmm0vJzhhBM09tB4i4nzTYu ijusuytIV3UW+k4WFbB+BpVQulz38hVQN4onL/XHrtaNiokWerL2BaYrs1MjEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641929964; a=rsa-sha256; cv=none; b=Z2xgS5H9jd75ZGIg3ooaC+u2Jw9MXvmSsYKALg8deB9byLKUZB5LW7VjZSUoYXjs+kt06g tSbeyc5ozhF+eC1CznbZiCB8ilHT3yyE6aBxROOrUot73r6VCF9CUALfORjUbNG2TLDIQL dO4kXGAvc7NaBGxYEM8LfD88ZR2XHXi4Xe9RAX1RBXx8uie6yjjR8yWZbBRxB9WXkrBmmy 6sXW1dJ3PIb9ePWXK7qgeln0+nb4ZcTbhiGVnOsGPnjXZbNIncEYyCMOi6M5gwIP9fxs21 OFIT+ZT16yEmPwJoEkwPcnf/P1wrwE4OV2qHn87Ov5yUynfS+F6E1h7iOJFEJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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-22:05.tail Errata Notice The FreeBSD Project Topic: tail -F fails to follow some types of log rotation Category: core Module: tail Announced: 2022-01-11 Affects: FreeBSD 13.0 Corrected: 2021-03-18 20:12:24 UTC (stable/13, 13.0-STABLE) 2022-01-11 18:15:01 UTC (releng/13.0, 13.0-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 . I. Background tail(1) displays the last part of a file, and can wait for and print any data appended to the file. As of FreeBSD 13.0, tail(1) runs in capability mode via Capsicum. II. Problem Description When comparing the inode number of the current file to the file tail(1) has open (in order to detect log rotation), tail(1) compared the inode number of the already open file descriptor, rather than the file that currently has the filename that was passed to tail(1). III. Impact When using tail(1)'s -F flag to follow a log file through log rotation, depending on the type of log rotation performed, tail(1) may continue to follow the original file after it is renamed, rather than detecting the rotation and re-opening the original filename, and then following the new log file. The rotated log is usually never written to after it is rotated, causing tail(1)'s -F flag to not perform its intended function. 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 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-22:05/tail.patch # fetch https://security.FreeBSD.org/patches/EN-22:05/tail.patch.asc # gpg --verify tail.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/ 8c59e863e2c0 stable/13-n244979 releng/13.0/ 60cacd2e41e1 releng/13.0-n244771 - ------------------------------------------------------------------------- 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 VII. References The latest revision of this advisory is available at -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/A6HiuWv54gCjWNV05eS9J6n5cIFAmHd1f0ACgkQ05eS9J6n 5cKySw/8DUfeI4ku+36DJjnqTt+SGSqP7CLon8tNneD3MeuXxHewHfF9quVqlW5C 9qaCAJZztpinCvg9u2YXXZbbaZ6FPJKwjrOspo85/ZkodbXXtNkzfIHHVauE0+AH BbHYAMcAUjDgvUaApKRVkUUYODRtzlra2qqpA3ITzK4+vo3WYMmFA78uR6j6TYvN CWkXOEXPGjcMfmaLFtO7udfOs7//0+RaE4X15Ep+tWD+XZlgBF9kNqQ0jLOE6Dio mgJmlmHBNXPNAKud8VjLiEaJ0fhgy5q+9E+UEwol+XW/1HTH4ZMgXyPVenl7O1wH jyZhygc+sV3RK1P3ZC6Ecrm7Ktugtx9urmCOC8/isg/SVBbi1fj+hSeTY3tIrUHr yxtHS7aelPVENxHaRbHW1bJI5O4G0FH0KiLIMHkCg8/9LmDvdozpGqozLijXVaaf KGJ5Xt3qT3udbQP0T0yrmd5yusO75FLS/NnOrrCinQj8gB+355gaEeB58lWH2ndT EqfhS4ey4MM86nrxJrzxBymVlqfGmdNtfkl/HubsBy0qnJ6OWKwom3OCnf8rc9VW 534GFt6BIYM8Ixqc5oOy6pGwzA3vuQ6V3kKOiTNNCvTar5YU9biayf2KI5TTtOo3 vneWtb2fsOSuOdySNBR4k8LxDvefpS36MSgEV4TYiixXx+fRVRg= =nu3N -----END PGP SIGNATURE-----