From nobody Tue Aug 09 22:18:52 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 4M2SCJ2X30z4YLtF for ; Tue, 9 Aug 2022 22:18:52 +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 4M2SCJ263pz46Xj; Tue, 9 Aug 2022 22:18:52 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660083532; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=yKR1cJtrVecpwxPAN+v49z1c28Eh3SIuDhgEeWvQZJM=; b=hsYx8RfVKGMmVUHFukYSHo7KiZ6GcAxOdmWtIn5kzNVaUa5HjEOLxHLzGRoSTJUhZ/3t7F Q3NZ6dcMlSQhVEhykYTq3bl9Q6ceK3FTwkzB196B+WhxJb6QBbAuisTMeO14+V4aFPM8X2 IIw8DbvhRkeqK7MRnbqW8GtQoPOb8pJgSAW12Y1Jk20mQfbYr/Vq2zrzRiCd7Xh4134DE/ Gseuw75BWzNFmRXwXnAIZkltn5hOejoAFBaAKi4AA6QH5jDHP43mxXWUT8jrGnF67gsGh8 JcagyrATgpr8C3z0cxHKgLb5iQ756B3FCPG3aNv72UpCPNNlW7D+UHgO8db5OQ== Received: by freefall.freebsd.org (Postfix, from userid 945) id 2E95717390; Tue, 9 Aug 2022 22:18:52 +0000 (UTC) From: FreeBSD Errata Notices To: FreeBSD Errata Notices Subject: FreeBSD Errata Notice FreeBSD-EN-22:17.cam Reply-To: freebsd-stable@freebsd.org Precedence: bulk Message-Id: <20220809221852.2E95717390@freefall.freebsd.org> Date: Tue, 9 Aug 2022 22:18:52 +0000 (UTC) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660083532; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=yKR1cJtrVecpwxPAN+v49z1c28Eh3SIuDhgEeWvQZJM=; b=ScAuUVEn7OnLQCI04NvPyOaPYyTg3ajgrY//DOdoc0I1RxWimtHQefykqLQ8Q4gcU17KCe GBv6Kjn/c7yGMj8aVZfKJ4fdpGiBSinZ1lSHmC2XeDuKCzDh7r4781CNZkwf4h8aZjcwG1 YKEfKRsBj90WC8NAII3Vj6GUBJYEkC9MAApj6NJkHQNTLlg3w2FGxbSDeDgos/azUfo/pf ktWpGIbNRObNdC1cHKA2LOr2fqopekGxs614UsCjHOff4EJ5sd/pKAiQrXE+e+ZU5eiwO/ wwzaVdSfUUi7mCEiDRElVkWuiLExYi0Ul/tQf8WtZpM79I60E2KJAjH8rcg6Lw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660083532; a=rsa-sha256; cv=none; b=Z+Jan8k1F2Ys70Pw1FtPumYjYiqaCxLwnpg3B4nlbCmDqTwCQxLOWTgWmYFdQ7ERl07f0G n1zaKYRfLAaP9zs4gG77sRqmveZMWgiRwN6ecndzowNl0YUVsqYuzRpb9EDuLu6cLGRjwQ 4JJTjqtzNYHKMgoQ/1josFrANJlJIcfYXmxmjdAy/dtNK6Gn3rlTPgq1agV8jbtfm69TeZ HGKfWekGreCL5FxmpGZeE192H3zAYe2Omdbyz7IUdY+Jj+stz6gVfQjliOv47k5LsK8m4a REZZsWRWPH0u2id7lc61M8yAGdIuJYE3HWVj3aN6o9mjvGVOvel3qeZk4qsjjg== 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:17.cam Errata Notice The FreeBSD Project Topic: Kernel memory corruption during SCSI error recovery Category: core Module: cam Announced: 2022-08-09 Affects: All supported versions of FreeBSD. Corrected: 2022-05-03 20:32:45 UTC (stable/13, 13.1-STABLE) 2022-08-09 20:01:20 UTC (releng/13.1, 13.1-RELEASE-p1) 2022-08-09 20:00:26 UTC (releng/13.0, 13.0-RELEASE-p12) 2022-05-04 01:04:43 UTC (stable/12, 12.3-STABLE) 2022-08-09 19:59:40 UTC (releng/12.3, 12.3-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 CAM (Common Access Method) is a FreeBSD kernel subsystem which handles various aspects of storage device management. Among other responsibilities, it handles device error recovery and can automatically retransmit commands to peripheral devices when a transient error is encountered. II. Problem Description When a CAM-managed device responds to a command with an error condition, CAM may automatically retry the command following some error recovery protocol. For instance, it may send a SCSI START UNIT command to the device before retrying the failed command. In this case, an in-memory copy of the original command is preserved for a later retry. However, a specific portion of the command state was not saved correctly, and upon a retry this could lead to memory corruption. III. Impact The bug can cause kernel panics or other system-level misbehaviour. 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 and reboot. 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 # shutdown -r +10min "Rebooting for an errata update" 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:17/cam.patch # fetch https://security.FreeBSD.org/patches/EN-22:17/cam.patch.asc # gpg --verify cam.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 and reboot the system. 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/ 84849cfd1dc0 stable/13-n250673 releng/13.1/ db8082886fd8 releng/13.1-n250149 releng/13.0/ 5430423b6d63 releng/13.0-n244803 stable/12/ r372069 releng/12.3/ r372378 - ------------------------------------------------------------------------- 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----- iQIzBAEBCgAdFiEE/A6HiuWv54gCjWNV05eS9J6n5cIFAmLyz0YACgkQ05eS9J6n 5cIECxAAo+zofqG4H2ZTffIBo3YElCbB8pkXty/ZnW0+3cA+JWcYtpC+5UoKw68q wBN+fL8174tzkzsrN3ZZcmtd28NtlmNYpUbCQCji90K8CSSRibsa+IdGxRDkiTAL s/bHpn4Txyi+XiIDFVABWDuUf3rNxVqgmnWorMTnffukUkXxDYGbwTD4J9eaahhH eEG/iW/O8KL34Asb4Pg/KoY8TAp8U3ojd+/XrLkLHHm1VyAqiW7cYVLcKFFDArT0 NUdqI/B329Jk4qy/FDqbturLGQyxpkeAnB1ARLaQ/DvNQNxoLLv2MbS2/92JiR/y pWrIz0brUp/zrtH5qEQxrvutHKch2CfQnansBs4d/atCyYQsrfTt+1QTpcbqdFJv L0ysPjuHYuFnizjospjaRJfNYQMUK64q5BBJeymNTMpXjYz2SG1K6BlsU001i51o tCXTfFJ35GjIJqiXL8K7aCiu0L8HFJ8zHIGBJv8gB8q/kNlDCCluks5nBGwktboM 91WhbskyR/5en5drBB1RxXYsYDYcJiwDENLmTHyJK/9v55tRlsu6yMUb3sxwV5+G YC4z/GYEBfj5u/ttb0ILZX2eBHx/kIae0wW9x2ch6njOiSp1tcujEH74OIw1a4ja fOfWZsBjB23rIawn3eDLVnLtE9l1ljIsvy2rbVf4xNxxl3x68ZM= =Ujr3 -----END PGP SIGNATURE-----