From nobody Tue Dec 5 22:15:27 2023 X-Original-To: freebsd-security-notifications@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 4SlFGR6lnmz53Wj2 for ; Tue, 5 Dec 2023 22:15:27 +0000 (UTC) (envelope-from security-advisories@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 4SlFGR6J4vz4bxk; Tue, 5 Dec 2023 22:15:27 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701814527; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=QdFn04QaMFZNyH0Y8HhHV2atxf6Ylu2aTgG0F2nnsBs=; b=HHQDvIX7tcp6dnHqIlOeT2kG86yaGJ1Vn1FrckbFo0zd6BFl9HRLDt27Z6e9NNKZnPSqhN 6iOClbHikPYjKrccSq1WP0BgfIgVe/uXn/i89feK5XTdWMdMohcDQaYVZmEh6qg7+Ls50m /WHSlw6RCjr67I/twMACbz14ZE9aQTeDhYOHkGpY5ANR5Ut82KXHzdvgGsY9HjxVuWnASW D5Ey4T3B7c3+YY4iyFuyJDVb4fIzxPhfvHY1DprT0mD0C33CHzBgufNvlH0IR9tGRnXBi/ NE90Y0JHY1Ekl7QEyKkuJf2XMUFr2AzcZ7njkz8o5jU3wRp0zGzbw+HCndBsgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701814527; a=rsa-sha256; cv=none; b=nv2JMl3j+vtEKywFZJJC1PMBMDN2NZxkGNqMQHGLnaFi0Yzl29RKa0cWwbp/MYXkm9rw6s eEL1vh4Om73aTR/Rc+biAySCjtf31Vzx7hMEG+UmejXsizExKai0f5pfu1NeMu5AjRhro0 t3e+YEn57fUjD8YWMAVL1CeQGh0bXE6ZUlf3mxx/AsG+Fac/b56Jv590OW4qD5YY2K+W6v YrtwXJryYuH0ZOPqRH+WlL3aX2D/UKgYc6dYSDLb4a6jnp5hScBc3CfcRI+gYYfgx5Xdlx ai3/Rl2qxrn9sU5cpclCkgneRyIftChT7e6xMINPj65ZvjBPveCnPPMsj+JxEQ== 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=1701814527; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=QdFn04QaMFZNyH0Y8HhHV2atxf6Ylu2aTgG0F2nnsBs=; b=VK9QVFW1avveyk6GVy9IkqDofE5c+w4tu7pgMn/tZS1fop+wOPLVucOicCpsph2Y5PGpB/ sXZFUK5W/uNoFc43QJawDPYZ25X3yF5OuehHtHmz7pkU8PRtdrrxdVohhNr0qO4de8vXu8 qgvNlxFeAo1QHGheHvIhtmkMuxneKD1s1SJqZmpYR5Huz559F0/BgOOXb2gtFup9oZua86 pDR0etFluaGevAlnai+FZzDD7DZuHLMQNqdXMAc0UHm1hCjqnt6976tMbgJYCDO1vYP4Z0 2HNggi2SZGmR2dPpfJGFxewUUMzJjfaC5FuuDjTizVdBMeH+Syuzpyh4lcruAA== Received: by freefall.freebsd.org (Postfix, from userid 945) id BF0D014C76; Tue, 5 Dec 2023 22:15:27 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-23:17.pf Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20231205221527.BF0D014C76@freefall.freebsd.org> Date: Tue, 5 Dec 2023 22:15:27 +0000 (UTC) List-Id: Moderated Security Notifications [moderated, low volume] List-Archive: https://lists.freebsd.org/archives/freebsd-security-notifications List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-security-notifications@freebsd.org X-BeenThere: freebsd-security-notifications@freebsd.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-23:17.pf Security Advisory The FreeBSD Project Topic: TCP spoofing vulnerability in pf(4) Category: core Module: pf Announced: 2023-12-05 Credits: Yuxiang Yang, Ao Wang, Xuewei Feng, Qi Li and Ke Xu from Tsinghua University Affects: All supported versions of FreeBSD. Corrected: 2023-12-05 18:24:35 UTC (stable/14, 14.0-STABLE) 2023-12-05 18:26:28 UTC (releng/14.0, 14.0-RELEASE-p2) 2023-12-05 18:25:22 UTC (stable/13, 13.2-STABLE) 2023-12-05 18:28:12 UTC (releng/13.2, 13.2-RELEASE-p7) 2023-12-05 18:31:13 UTC (stable/12, 12.4-STABLE) 2023-12-05 18:38:14 UTC (releng/12.4, 12.4-RELEASE-p9) CVE Name: CVE-2023-6534 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background pf(4) is an Internet Protocol packet filter originally written for OpenBSD. pf implements TCP state tracking, wherein it maintains metadata for each TCP connection tracked by the firewall and uses this metadata to decide whether to accept or reject packets matching the connection identifiers. II. Problem Description As part of its stateful TCP connection tracking implementation, pf performs sequence number validation on inbound packets. This makes it difficult for a would-be attacker to spoof the sender and inject packets into a TCP stream, since crafted packets must contain sequence numbers which match the current connection state to avoid being rejected by the firewall. A bug in the implementation of sequence number validation means that the sequence number is not in fact validated, allowing an attacker who is able to impersonate the remote host and guess the connection's port numbers to inject packets into the TCP stream. III. Impact An attacker can, with relatively little effort, inject packets into a TCP stream destined to a host behind a pf firewall. This could be used to implement a denial-of-service attack for hosts behind the firewall, for example by sending TCP RST packets to the host. IV. Workaround No workaround is available. Systems which do not use pf(4) are unaffected. V. Solution Upgrade your vulnerable 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 vulnerable system via a binary patch: Systems running a RELEASE version of FreeBSD on the amd64 or arm64 platforms, or the i386 platfrom on FreeBSD 13 and earlier, can be updated via the freebsd-update(8) utility: # freebsd-update fetch # freebsd-update install # shutdown -r +10min "Rebooting for a security update" 2) To update your vulnerable 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/SA-23:17/pf.patch # fetch https://security.FreeBSD.org/patches/SA-23:17/pf.patch.asc # gpg --verify pf.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 as of the corresponding Git commit hash or Subversion revision number in the following stable and release branches: Branch/path Hash Revision - ------------------------------------------------------------------------- stable/14/ a47a44c0d69c stable/14-n265915 releng/14.0/ 0019b7058a7a releng/14.0-n265395 stable/13/ ee1d1e38fae6 stable/13-n256844 releng/13.2/ 45e256e24c97 releng/13.2-n254647 stable/12/ r373284 releng/12.4/ r373287 - ------------------------------------------------------------------------- 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----- iQIzBAEBCgAdFiEEthUnfoEIffdcgYM7bljekB8AGu8FAmVvmWsACgkQbljekB8A Gu8kgxAA0SNvDNzfrivMBDrp3s4q86rLLsDSe3DN4kc+Rtid4R2tf/AzjSO7BVcg O3jvzXtx5RdX+udEbwK26ej+B2N2JCR4L5UC2N0ECo5ECdVd7jCZ5yty9CRawAeE cZZoT028eWeDCMrMI35iO4HTZeT0zF0lER1gTlogQbTzCu4uODSjPvOat/bilmh/ VaXI2ofiVrOpwjhq4t7ksTUK6O0g7LogDF/CEhj1ohEULtHCIDomm+9JuN86CFxJ T0Zd5nePCGMhQBewXir25XFKTFOOAOVGRy79Otx5+gPEg9SucWlwBxMwmhASAHPO 60SCWUt95q/5C2OCyWoFhi6H7303YvinFKO/3FCx9/iTxAh/O86y1d2CU8PRStzk 0kPOoN9fnXP2P27+o0q0Uqn9AiViRWMHC99nM1w6Kxz7wTSvs0dMGrLRQENRs7YF +9Zte+1yqsi/gcWsDkoTJstCJ8E2hjn/h12/LSZyLY3D3qNSdczFWauhIOQFTloj 8MHmzLGUBvWpQNWair4+mb5TpXVuJfFW3XBcQ2XGkUnT0Ws8hU0W/Lxef+wrNHFh aPvT5rF683RH7qX8cnJGkMgPPI4/CTS+U+WePlAITumND8gf/jHaa3qourqLkmSM XV8+9LIVfPimjFDmqpbyi6QxdWo834KP83c8TmzLDNUgEXe9L/k= =s8QG -----END PGP SIGNATURE----- From nobody Tue Dec 12 19:46:29 2023 X-Original-To: freebsd-security-notifications@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 4SqTdK6g42z54LmV for ; Tue, 12 Dec 2023 19:46:29 +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 4SqTdK6CN3z3gmS; Tue, 12 Dec 2023 19:46:29 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702410389; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=Ggz7nZYGVvu6nRfLhmt/UlZmmdoZ8fdj8ZsEk9p8fuA=; b=EJvbMyiIX77vZzCVbqaOnXW3SUsQektvlyTGklvh7wt+hZ2k7rY6tvhEi9u9xHDSoDKpxV pFNu8VPZc3RPlVTjqM6m4KCK12f3h3BQ1tOWo49luE5ISJ4AeSlRpVWeK/c1XlfFSogG7m 7maN6yJFILXuZt3Cj0PxWeYnp4RfjQJPYhnWw/Xz80+CP+2w/jqki4lvg/HGlG5By8SvIk vRdWp457JzAnJsUWQjC4Ht4BMTwU0ux9Ofsb4mEkkC+XDH8EavLitiLXBmk8HAkyYDckse Hg+CL9vp8SL3/yT5jrmIXSNNFhVA3jjviLmZhEJHFndmdVXsvehUmkUx+Jbmyg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702410389; a=rsa-sha256; cv=none; b=Bl0Rm76pJaAD2Fch52NENw+lfNz7aOQW0bcCepoAu/M34Hu95JrHTDPYZuA8Hb0rcb0izn 2zWNJVVvnLKW9+18jS5+sFCWfhU3dhGNAErIhM7ar2BR6jilhIg9YfU8icUPIzRLlJkr4v PbBRDj4MYVzXJKOvU3/2ZxBWJ8++T5hN7MtsF9DjJe8HFBoAN9+2j4qWSg6uczEyyjLPtG hZR/HwTbfFeeyngqIrvNiCroYyhXEgVeGl7YSALbMh8l8Hji8CvUPFqPlDPoW1MvhzXbyb iORgT+aMqvDz7pcFtVMhsGuN/VylDuXv9vgn+SCYS6gwmXctOd5gKqTNnlAf7A== 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=1702410389; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=Ggz7nZYGVvu6nRfLhmt/UlZmmdoZ8fdj8ZsEk9p8fuA=; b=w0Mraw409oW017vvEOAagjYYTEMHXfWQOfBjNyofxLEQM/JLD9MeaXhfOAU0spYYd3Rpga skGgYmdHocL3X7Jrr8hFAKvGXXOiVWZpq4UaLEgCPhBFyP3W4i67CzH6Urbd7w5FZFS9mY qjn8MGIhsRxvce1OwYEnr15uCPqSTvsCY0zB4YSaKkG1Am6MxBYxXoJ4MWigBnGhgY3V87 Z/wNPuyNba/9RBKDV0R2MDTSfHUYVe6e5G2aTNTa5UKO/H/o5B8RWW7JXrpOdIq4tdHtcu zNW3Bwo4fhw4cycT8qFiHTIrXH66Yl+NRhjg2As03wHsaYzL2f+PZ4cWzl4VVA== Received: by freefall.freebsd.org (Postfix, from userid 945) id BEEDF174F9; Tue, 12 Dec 2023 19:46:29 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-23:18.nfsclient Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20231212194629.BEEDF174F9@freefall.freebsd.org> Date: Tue, 12 Dec 2023 19:46:29 +0000 (UTC) List-Id: Moderated Security Notifications [moderated, low volume] List-Archive: https://lists.freebsd.org/archives/freebsd-security-notifications List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-security-notifications@freebsd.org X-BeenThere: freebsd-security-notifications@freebsd.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-23:18.nfsclient Security Advisory The FreeBSD Project Topic: NFS client data corruption and kernel memory disclosure Category: core Module: nfsclient Announced: 2023-12-12 Credits: Hostpoint AG Affects: FreeBSD 13.2 and 14.0 Corrected: 2023-12-12 19:13:50 UTC (stable/14, 14.0-STABLE) 2023-12-12 19:17:36 UTC (releng/14.0, 14.0-RELEASE-p3) 2023-12-12 19:14:16 UTC (stable/13, 13.2-STABLE) 2023-12-12 19:18:17 UTC (releng/13.2, 13.2-RELEASE-p8) CVE Name: CVE-2023-6660 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background The Network File System (NFS) is a distributed file system that allows remote systems to access files and directories over a network as if they were local. FreeBSD includes both server and client implementations of NFS. II. Problem Description In FreeBSD 13.2 and 14.0, the NFS client was optimized to improve the performance of IO_APPEND writes, that is, writes which add data to the end of a file and so extend its size. This uncovered an old bug in some routines which copy userspace data into the kernel. The bug also affects the NFS client's implementation of direct I/O; however, this implementation is disabled by default by the vfs.nfs.nfs_directio_enable sysctl and is only used to handle synchronous writes. III. Impact When a program running on an affected system appends data to a file via an NFS client mount, the bug can cause the NFS client to fail to copy in the data to be written but proceed as though the copy operation had succeeded. This means that the data to be written is instead replaced with whatever data had been in the packet buffer previously. Thus, an unprivileged user with access to an affected system may abuse the bug to trigger disclosure of sensitive information. In particular, the leak is limited to data previously stored in mbufs, which are used for network transmission and reception, and for certain types of inter-process communication. The bug can also be triggered unintentionally by system applications, in which case the data written by the application to an NFS mount may be corrupted. Corrupted data is written over the network to the NFS server, and thus also susceptible to being snooped by other hosts on the network. Note that the bug exists only in the NFS client; the version and implementation of the server has no effect on whether a given system is affected by the problem. IV. Workaround No workaround is available. V. Solution Upgrade your vulnerable 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 vulnerable system via a binary patch: Systems running a RELEASE version of FreeBSD on the amd64 or arm64 platforms, or the i386 platfrom on FreeBSD 13 and earlier, can be updated via the freebsd-update(8) utility: # freebsd-update fetch # freebsd-update install # shutdown -r +10min "Rebooting for a security update" 2) To update your vulnerable 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/SA-23:18/nfsclient.patch # fetch https://security.FreeBSD.org/patches/SA-23:18/nfsclient.patch.asc # gpg --verify nfsclient.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 as of the corresponding Git commit hash or Subversion revision number in the following stable and release branches: Branch/path Hash Revision - ------------------------------------------------------------------------- stable/14/ 8d42f85d9d7b stable/14-n265954 releng/14.0/ ab60666a00c9 releng/14.0-n265397 stable/13/ f1d1d50e1d08 stable/13-n256860 releng/13.2/ 3f079b3f2f33 releng/13.2-n254649 - ------------------------------------------------------------------------- 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----- iQIzBAEBCgAdFiEEthUnfoEIffdcgYM7bljekB8AGu8FAmV4s/kACgkQbljekB8A Gu8kvg//RUe/q2SFiVyo94disTET5JjVAPjKzMrHuhoI92OA994zS3MXmU6cQZAh ikWzMTf25/tgGvN8/Cujhp6zIXiPwUvwJXQqL6JN2/lqHHztxYz/m3Ol8Pc2q2yx hDbY0dOeyaGK9CuH7hjMtu/jeh6vj+TyvzLg/KuxgdOkjdDd352CF43alkb5Q55t 3V8pcY49zCk+5aMJv667mphGxf4yRC/+bkVtJIqoAUpAg/VORMJmMiEt0LS3v7t5 Oaal8rVfcPu8jPhkt8dIzcp1lrr+AfsOnEB68x2ECiYp2LCWp/ya7rG+DMD537kw IhSKRpqMvc4rQpjGQIsewO+sexyYC/zYrUu4BYMUnLVEqQ+GPN7jV7uAjoGuvsus uOAuN3l4T1x50VyBGA9Z2sVAHOkDAh98J8HDtdCK+IxNnTKFsFHBE/4zFLXkVYwr vo15qZpHzdTnHhhq5GjxZU+j1Sw0TbMWYPVPsgv8HqZciPjmv5bW7nxvB60sqb1a LYhE2cWilWxNKWQLhFt60ooGb09Auu+wDgnXLmTmpc/phOI+hCNOPedRF/0yPS7D dE0Q1vjdoiJgcAdntve8fzlwq1KSG4mQZRrJvMverW+/YLtbEFYY/iFT+jYWRMcN QwyjgbABQ9tzOVaPjSGJp/UB7SjDn8KFoOfeXWZrMkOYz95lXUk= =Wsy4 -----END PGP SIGNATURE-----