From nobody Wed Nov 8 06:49:44 2023 X-Original-To: freebsd-security@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 4SQG0n0Vk5z506Jw for ; Wed, 8 Nov 2023 06:49:45 +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 4SQG0m5tJdz3Gky; Wed, 8 Nov 2023 06:49:44 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699426184; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=b5bmOjktNT56Tb9kaWgvwNuvEHvZD8L5kspKUw9pr1A=; b=toHtggTk9WG0KdlCo5k/mUjf+0bqPFHNh3pukTjr2VlKEqwSl/teADtkDSKNLqqmbjLRT5 qsTQEbBYNO09To+y3M+2cADjA/DOlXj6hTQC3/yv+uJ2cAWlSP/rln4IxM40lRKZTzWHgX CUJY6UtRX3YxTbN4xdLs8FKeQRl4478xcQtjHUm94pdwkk6NIndAgy5C0Me8n1rAw5011d scprZUTutjy4TNRnfxgfEU+GRqnQF3NtvDcYUB3V+w+zJNm+3u8pFodBpbwr+6F3/lruMM Xx/GreS7l1cgd/y+bAucSbuHL8Sn77go/XCE9T39kmkRCBFncw7KZIcTfA2WfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699426184; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=b5bmOjktNT56Tb9kaWgvwNuvEHvZD8L5kspKUw9pr1A=; b=gdSQ0fTvT8m37/rt+sccpl2ttnjNm15Qy6aiPmDNg5Qdd58A+5LhVeWjK4h45N9Sfm0xFH mlP6WumMWYzw+k2AiUXvHFWY3pNh3/3knPriPjtpZ0HtgxwEanrwSzANpxsyDDfcZgWlhU VKmGf3mn6lNXU1vAa9S6c8bzVfkW6bcOBX5dqtK4FfrvOJGeDqNA0p8b27tI+fLiyusVCO m6Dgt5IfSISdWLQNeaQBuDyD6sdmK3kNh7BuCZywV1ZqBqK2HX3iGGyR5U69ijNZM5l1G2 4A4cZ1VJjgIRpHwoLuw406hSJ9WkI9l9zrlU8JHvsKhL5DOkgxVBe44eEJuucQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699426184; a=rsa-sha256; cv=none; b=cqU2WBM5Hgvpami4BJ3KVM09YJHAdyvuleumKESUVFWHQSnUGO8tbIerxs8c0FK0n+h/dR 8/sQHs5x9A5MaF8rJ8b9C2ryWnTEh5Emm7neOZuTIm2o04ScZ75qlRThPZTOxZryBdjHeS AtMSn89k1jRDwJwBZI6zA5MOuGe/nU2VOOM3Kun0Afqj5uw5mkjD37tXjDBElY598L3OkW UarjM/nhpy89Vi4odAIfxA7y/efQQXpDawKag6hwJIyj87s3sqjwPTmR01PTcpEF9hlH38 vqTW+4cRVnUscIHdk3g/0KG4djAcdGB+AQN52lZngj3oTStOVhqBbAcsJGCMeg== Received: by freefall.freebsd.org (Postfix, from userid 945) id B53791A489; Wed, 8 Nov 2023 06:49:44 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-23:15.stdio Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20231108064944.B53791A489@freefall.freebsd.org> Date: Wed, 8 Nov 2023 06:49:44 +0000 (UTC) List-Id: Security issues List-Archive: https://lists.freebsd.org/archives/freebsd-security List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-security@freebsd.org X-BeenThere: freebsd-security@freebsd.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-23:15.libc Security Advisory The FreeBSD Project Topic: libc stdio buffer overflow Category: core Module: libc Announced: 2023-11-07 Credits: inooo All supported versions of FreeBSD. Corrected: 2023-11-07 17:29:20 UTC (stable/14, 14.0-STABLE) 2023-11-08 00:45:25 UTC (releng/14.0, 14.0-RC4-p1) 2023-11-07 18:41:49 UTC (stable/13, 13.2-STABLE) 2023-11-08 00:48:03 UTC (releng/13.2, 13.2-RELEASE-p5) 2023-11-08 14:30:51 UTC (stable/12, 12.4-STABLE) 2023-11-08 01:09:31 UTC (releng/12.4, 12.4-RELEASE-p7) CVE Name: CVE-2023-5941 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background The FreeBSD C library (libc) Standard I/O (stdio) component provides essential functionality for input and output operations including file handling and buffering. It includes functions like "fopen", "printf", and "fflush". Streams may be unbuffered, line buffered, or fully buffered. The library writes buffered data when the buffer is full or when the application explicitly requests so by calling the fflush(3) function. II. Problem Description For line-buffered streams the __sflush() function did not correctly update the FILE object's write space member when the write(2) system call returns an error. III. Impact Depending on the nature of an application that calls libc's stdio functions and the presence of errors returned from the write(2) system call (or an overridden stdio write routine) a heap buffer overfly may occur. Such overflows may lead to data corruption or the execution of arbitrary code at the privilege level of the calling program. 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. 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, 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 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. [FreeBSD 14.0] # fetch https://security.FreeBSD.org/patches/SA-23:15/stdio.14.patch # fetch https://security.FreeBSD.org/patches/SA-23:15/stdio.14.patch.asc # gpg --verify stdio.14.patch.asc [FreeBSD 13.2] # fetch https://security.FreeBSD.org/patches/SA-23:15/stdio.13.patch # fetch https://security.FreeBSD.org/patches/SA-23:15/stdio.13.patch.asc # gpg --verify stdio.13.patch.asc [FreeBSD 12.4] # fetch https://security.FreeBSD.org/patches/SA-23:15/stdio.12.patch # fetch https://security.FreeBSD.org/patches/SA-23:15/stdio.12.patch.asc # gpg --verify stdio.12.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 . Restart all daemons that use the library, or 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/14/ abe12d2f4ce3 stable/14-n265706 releng/14.0/ 1f9c4610dde5 releng/14.0-n265376 stable/13/ 59ec3ffdd7ce stable/13-n256680 releng/13.2/ d51a39b13ee4 releng/13.2-n254639 stable/12/ r373263 releng/12.4/ r373265 - ------------------------------------------------------------------------- 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----- iQIzBAEBCgAdFiEEthUnfoEIffdcgYM7bljekB8AGu8FAmVLKaIACgkQbljekB8A Gu/MXBAA1Aayy2tPhgpV7uwRZWHKLsda8Am0/7Ok6fswejrxntVIlOwg+Vyo1pTW ojDTG2HS9BovXwdhWdSEObNwk+KxZlF8YIYHMOv5HyU4/iTxiBYVUjnk14J0YQAw mywyBjOyULXv1gOlvA8FUMk6M8I/RE9fN8dR0D6xHwdY/a/LUbpqqo3H7fftF5D7 CVZy4Uw0rSJXvJEZIWhgbaqKRyjydXoClX4NS/aMEfLFGDcSQtblVotUVpDedsRZ uhVKLibhNqoaausR75oLB6izclHQXzXz3eh7UefM7Udz4R/M8IfFtxwtpsWl3KGH bB/2BfrWgrj6Emhmy455NShd7YDcw4VdIZZUVwofS8kmw9NMxvtU2EgdFp/TITMD fo/XqMtrwpNTjuyWPY9xM41QansEeidhVBeHsA6B8kmsiZ1XVo8uaAmj5aHldEZx TCCVWOlg8D/OnHHtOY0nBz50f57Lt8z2UcSlR3nZL/wRgxsGDdwh1doeFJupIxbE 1ZS6x4DoQInUhVNTXmSngMCfNOywatVCaOnS2swZETEawI4xAYKUHVJswpA3E0R4 MhUEo5gk2dEYhuvvr51eewvNSE9mIt7rPhNxhSU7hioraWkdLqE7rUkv9eeaSOOu BWaAaCnyS/Vft6aC5nqTg/+2EeRPNJg7JkTHl+pu00h3Y+Q2g48= =wgNS -----END PGP SIGNATURE----- From nobody Wed Nov 8 06:49:55 2023 X-Original-To: freebsd-security@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 4SQG100vsKz506bX for ; Wed, 8 Nov 2023 06:49:56 +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 4SQG0z29nxz3Gyv; Wed, 8 Nov 2023 06:49:55 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699426195; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=sAvQzUWf9qQ9QgoNndV1+VBAdk4s4UH7Y82YKeohCfA=; b=OjWbIdGOUx7yNF9kRnMXZjS+qlnm3h8RpPpqNclOmBGC17Ny0sfJulW3ox3ZFvzXxri8W5 Gy/uuQuvfVgl0Exwv9fG7NcFb09EYGpB/SYG38QptCA/6Zn0ycL/OvRz0uQhHW0ITy/yLp xaxxGXLfk69PsVUKtP8IuiT5eX4eg2TIOqXDekO9jdjtIhX/OrGdZv2DqYQB/08i3JI5aG SoE+L2kht3LX/ll4rWLpRir9vQ6de/JAB0/zCCVb7VnhmkqdkWecmRByDCNTBnoUGkjhrW Zq2Z3OLZbjjH7tADoqwKP8UM2DRYdY6JM3nzKkCgXZjtaS99sC5jEdcgJjCDXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699426195; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=sAvQzUWf9qQ9QgoNndV1+VBAdk4s4UH7Y82YKeohCfA=; b=VcOTE++EFRreGiU38Y2r0Lj9BomXpty5zr5mG3VnTfQQxmn416ei5026g8jGOwrOUcQkMZ JgUClQQq/drp1aW/QG20ArAbJ33N/01B6/8zHLmqCW8VFgPKQfbA/cWpYe1eKp4JHh54bz UwFIrlXim3JVccwfzAAaNNrZNGe828MV9QYwKHc5VlkaejMkVLB7BhjDsdrJv4S870TeOF dXO8XgAu0jTHuv6Mp0r+XhDbpU59gnfzAy8Kt2QiRvAzyyZ80WJT9d/paxTPiby2E5q39d /WpO8ckoW6WOPO1KhcDVNbbrbO2/AbY0FRXDmhAljxzBYcxkcIv0S6LSInB6GQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699426195; a=rsa-sha256; cv=none; b=H/E/gq94UAilMTTc3CyE4+VVWXoCQ3XEMFzLPLME81cUvsJey0NWDtN8sFrwnxw+N5At5g q1AErcIf8ylOtePusRGjr54jdnj9cYh1zdiVMjrS2o/z5YdS+L/HgYw3oFjTNhcUVvpYjj 9HIN6WoVSMCp5uwXxJvbBoFNXGzLqX6ptscafcUj47DkXEXRx2opn3y3t6ES/RavLgwYYK mYf0/xcdpCsf9JK4Dlz4lU/zB0IN3c2YAndnG8Qt/WESl0sDJcoyPD6UYOXdEI2UqsGSKe V/ztnFWpy17DMao/9uTyl1zudgF6rCNYNm4afCLhsPFXDjXmRBHro5TGu1JrKQ== Received: by freefall.freebsd.org (Postfix, from userid 945) id 2DB321A3B1; Wed, 8 Nov 2023 06:49:55 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-23:16.cap_net Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20231108064955.2DB321A3B1@freefall.freebsd.org> Date: Wed, 8 Nov 2023 06:49:55 +0000 (UTC) List-Id: Security issues List-Archive: https://lists.freebsd.org/archives/freebsd-security List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-security@freebsd.org X-BeenThere: freebsd-security@freebsd.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-23:16.cap_net Security Advisory The FreeBSD Project Topic: Incorrect libcap_net limitation list manipulation Category: core Module: libcap_net Announced: 2023-11-08 Credits: Shawn Webb, Mariusz Zaborski Affects: FreeBSD 13.2 and later Corrected: 2023-11-06 19:19:04 UTC (stable/14, 14.0-STABLE) 2023-11-08 00:45:34 UTC (releng/14.0, 14.0-RC4-p1) 2023-11-06 19:19:54 UTC (stable/13, 13.2-STABLE) 2023-11-08 00:49:31 UTC (releng/13.2, 13.2-RELEASE-p5) CVE Name: CVE-2023-5978 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background libcasper(3) allows Capsicum-sandboxed applications to define and use system interfaces which would otherwise be disallowed, through implementing special services. One of these services, libcap_net, enables networking capabilities within the restriced environment. II. Problem Description Casper services allow limiting operations that a process can perform. Each service maintains a specific list of permitted operations. Certain operations can be further restricted, such as specifying which domain names can be resolved. During the verification of limits, the service must ensure that the new set of constraints is a subset of the previous one. In the case of the cap_net service, the currently limited set of domain names was fetched incorrectly. III. Impact In certain scenarios, if only a list of resolvable domain names was specified without setting any other limitations, the application could submit a new list of domains including include entries not previously in the list. IV. Workaround No workaround is available. Note that no FreeBSD base system software is vulnerable to this issue. V. Solution Upgrade your vulnerable 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 vulnerable 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 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:16/cap_net.patch # fetch https://security.FreeBSD.org/patches/SA-23:16/cap_net.patch.asc # gpg --verify cap_net.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 . Restart all daemons that use the library, or 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/14/ 765757c6301f stable/14-n265696 releng/14.0/ 5f4fc91cc87c releng/14.0-n265377 stable/13/ 114c6d9bef76 stable/13-n256672 releng/13.2/ acd860c3622d releng/13.2-n254640 - ------------------------------------------------------------------------- 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----- iQIzBAEBCgAdFiEEthUnfoEIffdcgYM7bljekB8AGu8FAmVLKaYACgkQbljekB8A Gu8Ofg/6AxzPey7hIS6rRO5Mv5ufiKEiYDwPo3t6epUiaLid21KhkLry1CofqFHd pC0zsYDJiWCkvieGBHhCkNYmffL9TCgLqNxSSH7plwMHwrLLQKxYRVn9V0ReGdc9 qRY5XB1W0Ocns0CbpEXuMRNde5UNwc63xN0/xlnBESfex6+fP9kPNB7VLoYY4Foj jDzn6s8YNaUOVO7YtlZDjPRRazwVLriQ3Bf+lCNkJFq4VyyhRPFkeknOFHt5olA2 dp+DIVQGUVRGjeaZDlxLZ4j0Nw39ZK8T6mSXSskjtSfQtHd6DPgDFBzZKjhtzRFd +5lutnrXpZemQjUcOKqVG1ZmlbDQChIWVlJ1kyORRjb8ZO+vknhFo/w3a5o4sq1A ZtK1w2CFo0+jL+oWxJdFEiRFR0jwMtVfMCzZAoLsDXnYbmni/353BKGMlBFgdsAy Php3E/LsxCoFaZ+r87Z6O2UefEYMCr1FDM99SQkU1Ui3kzWEskHEvPR6JS31Htu2 9ry3c4T08r1Qhp7J9Zdfnwvtd0fyEWn16ewzeiV4M6+gPErWZncar+86b87IRKof bTJ4XiK7kcORyD5ksgcBINUd5njOvXGIYTfkqSmlyikAhnoM7MN3npUGyRq6KQTE NPAr3gWrch7pegBVP3JuDQaYwfJarg6BmPb9sWWfkzQHRf9pfOI= =XNt1 -----END PGP SIGNATURE-----