From nobody Tue Oct 3 23:04:10 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 4S0YKk3sRGz4w76P for ; Tue, 3 Oct 2023 23:04:10 +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 4S0YKk39J4z3Hq2; Tue, 3 Oct 2023 23:04:10 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696374250; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=qZQnpCyyos3M2c4nqLRvSKPm9OxgAZ4qFvwgA21pZjM=; b=TUO1m99CeeJ/IBiU0o+CIiRaqN+nXU5+KC3GVNAxwFLxD3J43Kt2HSqMvC2+kBBJSl2dU3 zEjbWe+vHnqxzbVE7n2xj1ccfqYxKt+YTDqpZuv26cYBQqQqmoMgJ63X45pHy3nhR4qJ7t Jbr2Wv7j8Aj8kNe2VuhJhhARnLiy8yuQEa/BqIReuXBv13SgF1j41uxJt4mlC2lF+guVIQ +lYQkpnx+2NAvuG5IWO0L+IHxmepPt+KECsprCYLm9ITDOqYM3uc0r4CKH/KBaXzuUwZcJ vpj1Lm0JoDkK9q4lf+JNWbyBPg8jM1qGkQBQHAliEVRgvGqR9H6ti5BpjELm/Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696374250; a=rsa-sha256; cv=none; b=F12P6GvNYIndXHMu74T7Kq/K3kT5qgPlpOKQAGgot/aXcb28pbp9OOIKerYbhzrH+SVh0D GC0GsYyEw80MiGBYyrxaZ0lLHaCGbHSL2fbNwx3w4HVopwnVM+x/OWHHe1q0VFvuuHmLg5 QrMOrOKHY0hrgOlIk3joTtJuXsYuiKsHT4WsMeiLQsxYTdRYCMXvK39/vGugZPfGLOuOMY iUmuB1lxcXzbQEqVsleTEGKeI+Xp742ube+A0Nhz8mFA+luXMr/vVc5ujY27WKUTRcEqXc jsG1WUwJAaE9y9AmE51UFbC63fy0U1aSBHunqh3KHpBKI5vSN5Ff1/cLIzPZMw== 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=1696374250; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=qZQnpCyyos3M2c4nqLRvSKPm9OxgAZ4qFvwgA21pZjM=; b=Le2GC27CH/FL/nRwP60WDjINGIwtGl/U3gHwpEU1eX4dzIJmk4YwmkFua/0KTBsY9dwWki UKA+n9S+tQkYwBxhnERPGYZK4OE9ghjjr63/WDjqP5ZMF8GUKoAypUKsOGogXSRkakcXYi uuq2+6V1NmbkyaospAaEvKzW14qxcClCshbP3ZCi5aoLGLPHkuWuhAmAPBqv+JRIhKIjK/ aHKN2DKfUbhgK+3o4wpv6EmSz68nWnRaLzYUoGDpHnM3JXARYFj6MZbSoBSXDEi+JV5I26 W8jAGohP5yGlpLC145wafjB92PjOkXc+8t9UEm0pqdz8GflcN6OTy6lcQYMc7w== Received: by freefall.freebsd.org (Postfix, from userid 945) id 50323132E2; Tue, 3 Oct 2023 23:04:10 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-23:14.smccc Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20231003230410.50323132E2@freefall.freebsd.org> Date: Tue, 3 Oct 2023 23:04:10 +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:14.smccc Security Advisory The FreeBSD Project Topic: arm64 boot CPUs may lack speculative execution protections Category: core Module: arm64 Announced: 2023-10-03 Affects: FreeBSD 13.2 Corrected: 2023-09-25 12:13:47 UTC (stable/13, 13.2-STABLE) 2023-10-03 21:29:11 UTC (releng/13.2, 13.2-RELEASE-p4) CVE Name: CVE-2023-5370 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background To mitigate speculative execution side channel attacks on some AArch64 hardware the kernel can call into the boot firmware using the Secure Monitor Call Calling Convention (SMCCC) mechanism. To decide if the kernel needs to use the SMCCC mitigation on a given CPU it can query the firmware if the SMCCC workaround is present. II. Problem Description On CPU 0 the check for the SMCCC workaround is called before SMCCC support has been initialized. III. Impact No speculative execution workarounds are installed on CPU 0. IV. Workaround No workaround is available. Not all AArch64 CPUs are affected. Systems where CPU 0 has the CSV2 and PSTATE.SSBS processor features are unaffected by the speculative execution attacks. The kernel will print the following under CPU 0 on unaffected CPUs: Processor Features 0 = <...CVS2...> Processor Features 1 = <...PSTATE.SSBS...> The Arm Cortex-A35, Cortex-A53, and Cortex-A55 CPUs 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, 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:14/smccc.patch # fetch https://security.FreeBSD.org/patches/SA-23:14/smccc.patch.asc # gpg --verify smccc.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/ 4df1447f2c76 stable/13-n256420 releng/13.2/ 485912e051bb releng/13.2-n254637 - ------------------------------------------------------------------------- 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----- iQIzBAEBCgAdFiEEthUnfoEIffdcgYM7bljekB8AGu8FAmUclU8ACgkQbljekB8A Gu8zqQ//bCjUB/hXZxypEFmnnnyUPr0Y/pzHd1i7EcIFQubd6kosUw4k2VGzwOsi /BwKU4W/MrUyr/wwSkjJ/lmeA+CRX2TAPWPTPC0umnN58fOXRqhKpVAi0yfho+L9 lYUfdLWM0xS4XWsZk7DapjfN8XznLnn6iQrWmFLmZd0ViJFGkGJcxjdWr7aSs7ZX C8v8GoqFx6GUUdOgRERdpZ/2mxi7ibs9LbCt4PUTwKV8clAmq4w4Mv+q4xfZPSnM nXGrTd+t2G5ZrmEZ9Rq32C9JqGaAaQUTp/NsOw8yQq5YVBXanA12VJLx2kdoVKsj 84e3rJz/QTpXTpgiSkVmWdT3ziZW8Zs9aygvUXyzK6C/s2ZiKd8o65dnF3MGCyJs Y7aNgAS51mX/fgPyXwicF/eYA1nm/1AJAK9J/eUBbsi+hu9DW5XjpiLUYAe10KKf 9XsgJ1vTJMKXIv/UAlN0d78SfSfcGyUCbH0qk7zCzw9XfLYj+r9a7de/vnAc0qtm 8Gh0hqbacA6dqtxrNEDC9R1Tp6inf0YYR6gP5HPjjy96FvfZCGmHk5XUmbmk4C4T UylvLXrO4gJiyBXhdZ3P3Mib6HdMWkLMRh095Y2revdAGMv0BrGs3G+eaMVIgNt2 puELCPfLgJF1ljcHV8svdQcuy0Fea2R2R22cqwsT1vPuKqgmP60= =lOTX -----END PGP SIGNATURE----- From nobody Wed Nov 8 06:49:44 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 4SQG0n2CWnz506Jy for ; Wed, 8 Nov 2023 06:49:45 +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 4SQG0m6pg2z3GRN; 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=1699426185; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=b5bmOjktNT56Tb9kaWgvwNuvEHvZD8L5kspKUw9pr1A=; b=Sxaps2ixxoioigpCtOQUOcw8nxri/keC8v93JsNGQAJy7TtzyQ5X4hHFv4JYWE3FAqes0+ kRpkgqlxu4oJJ/8XOC1lS5YQfRz25/e1zb/blfzNw0RtYUJxshxEBVRHPs9A4+roqUDMfk NLsaengob8YTGUwCROQb1aYSIYQGMuKHYg9RSwDsYRsM2b8PrBsMk3NY0tnxKkRtgm2pNO D1CMDOV2iCOWiY7d043XecNUWJ2/j3ZEE08CoDTrPSZRbHYLrqbgZTzdu7NbK78YegzQB4 qhYJBtpFuVvwqQmx/yZ5oF71Yx0aCaf8CViBpDLbmtQK12yF/HIJ4JQvgxV2sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699426185; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=b5bmOjktNT56Tb9kaWgvwNuvEHvZD8L5kspKUw9pr1A=; b=geKaXXcCahDTKz+3ycIbytQ4lU8hKpvUdNh6u+OJqYbSSl+7jH0o0LT9eFbzkKS4m9kwGS PE72+PsBBXkDmUxjc2GizL7s5zR7WamNuQsa1mDdiVkkwcmUcdX5+wq1aTDE3XgS+l6tNu E6nFhJaKfL0+61GScLfGyhJfkHzB8bidQE9hWtx1n3LIA58HBXXjPhqWOVj2oXPfmUoLnd lnAmEkG1OErPuS10YAmwDPt2p9z/vEQiFGHOkFsa9CwEhaCNjdolFgCbO4gx/15xHMsgml TGmjAyZ7bo5kAdgCT3Bb6akVNyn2pCRwLqERLSYeDzXo4iHsClb/sVqd10lrZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699426185; a=rsa-sha256; cv=none; b=FTKbw4eWICGxuaXalNWZoDlGTGBGEIvogija3v1n7KRUxkXLgx8BBfSWi7B2Bz7kL+J7Lm Ie5cMPPz0p3i2B1Ql1ZQSsaMqx5QGeFFdrSDrA5z458WvJtFM3/vwJekqRzbUdhXGOfqPi pdVuucT+LnxR+1OLfuqcF7ZsRU+96KL738MPgodx1pE/BUoM6RFuFSY2El6nYDQMKPVj65 MSsK3qZEPz0fHNS/5J2QwBJRiJydsfOIoHtHO9Nmzze7CCve2pdjEhL1APPm7t57+T1ukZ 843MAt1gDMihR4EyvttQ3RXsEqxb9WIonjRB/MipHkXc/1tgev/LdV8NojPTPQ== Received: by freefall.freebsd.org (Postfix, from userid 945) id BF6B61A24E; 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.BF6B61A24E@freefall.freebsd.org> Date: Wed, 8 Nov 2023 06:49:44 +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: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-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 4SQG100CCZz506Y0 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 4SQG0z1ztBz3H8y; 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=f/SewQYM0M2T81cEoIFs04MN1cZF6mMPhMZcGNSzRZ2er3tlJGu30fSjUN13qXbcsE30T9 ortknnDlHZu5XWXu9Qzd43Vv75F55YfN5FAxGl+rAIue3rdWrJzdZC339eUSUhZxLi8Bcx 80HunurM4ZfnJvfLli06EIyyBtDn3ELF5zkfL9nd8xZ4/JzMJUHFjQ15GkOCZL3+bHexTr msbMyGXgmOtctoyE7doYr81KFiPeRKFfjlYY86UfOpGHHT4t57rGrRZhn1VUq4fGx7tP8U IMEBVzRsNcbFIk2IJklBsQk3W7Ku82KK8Mcm6yqlF6zYn7rd9oUYDKN07SuZNQ== 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=YlcW2jYFRflx074QQFu5Lu9oNOMs1L6fd7tDofjGRPChuHOxQ36parh94Rbel6+/uzLmLU ohAiU7Bz/2PqqgUjQCiOcG2hPnjO7gz060uvJdYOUATM62JsQrj26xzosuo/aWRS8jBU/Q ST0Lms/i2Lp9atTDc4bpf50bNGSJxgwiafbj4YNqifHEBWxk59dOQWZQtlUFRzQc/1EZVT yaYxetZTKvK1ME+HrFPeSCG2w5ko0kxN+ukFmfct5Q2LGn6n7oynRDLkF8vKY0cAPsG/sU 7q3NqPZF2oCi4yZINnh2c1oWZXeXxBs5YCCYaieKYM8HsxUZLOPvAgaJFvTGmQ== 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=Zp3xbU/vySIuV71LdQV/VD1Y5ngM031FPSFF9aQDpngjKmOplJhiRA851bXl7WTO7BOrXV lUpz4tgw2A2LRR5V9iP7IepswuqjbUudRFm1JEZ1FwURTSJ4FzNSPQlHGTYullFIhQ0Elp VhtOH3xHUSiOuQxLx3v9jcqNo1+52MhXl6LhIfsKlkLdgZdHw9BrhYh+77eaaqXHzyoeyI xCGpSBVhrCRWuaOVlkIdlftExOkud0+CPwlUzhHDlC/EXaXN1kX37Nx+W1C7q0c/hQUsw6 3smX6gKnz39OkwYY55jMuYOlzAcsznOh2ElGSQ2Bv+ZHJST20rvdMOSPtuFeLg== Received: by freefall.freebsd.org (Postfix, from userid 945) id 3688E1A501; 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.3688E1A501@freefall.freebsd.org> Date: Wed, 8 Nov 2023 06:49:55 +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: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-----