From nobody Tue Oct 29 21:32:53 2024 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 4XdNlV2PXZz5bx8K for ; Tue, 29 Oct 2024 21:32:54 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XdNlV0LbVz4Z1D; Tue, 29 Oct 2024 21:32:54 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730237574; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=N5qnJJ9FwvqiiOBFTedu1oHUvI02vR4hJzhl/AxannM=; b=IhTNK57nlJL7gyGFgRcrxxX7MvFbLxTweGlpRRa+zouEK2WA0sSmm1wxUX7HkgZAfAyJlz 7fmsIiJ+AARFcVLBXYGVq7rXNbenUC8fC5kgHK/mQ+0tP5lA2Qchlv5hGdqBKAW0xbNAgl X6tt/PuQquP7F/BEBv0UDtI0w5wERlMEdrD0GCYw3PjymeXjCRn+6Fb7qrdpOHbLzOBkkE zyPSbq87IK48UxHOqTGp7pvvmYhn5V/exQM7DPSOm3SSskUJpHRWdPlTSOU50v1Yjf+C9o 2fp6AJXbw65PfPqSt1sDbOmxLNhFOfp2rzZDH9N4Z3xlfwh+N3cTOXymoPSqjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730237574; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=N5qnJJ9FwvqiiOBFTedu1oHUvI02vR4hJzhl/AxannM=; b=re5oK3s+erMK8mCyh9XzwJUvub8RzcscZ98bgo2oSpFQs/1ZU7bbAt9P84FHfuLhoLDrun XDGHKir4wGSpEmM6dUWNUQ/5sScoh9xqsKrnWLKPKc0tObOFCfIiOUXhJWFGHRAVHY/F5r vnP1tlrQUJ9Gd06zkBIXLMBkt9hm4ZiugZfHSJrZOd9pcFuIgJLdHvj39WbNdRd6SqQvbQ 3dlVoFtYHrk91GoGubQeo0unB06D3iIc6VT1pVAyRZHf4x3uEPXOBLEsjbx5IjgGMn0pbU ezEuly91cjmWRFY9ojfSRll8qKSuYM3WVg7G2Q4lEHlKlhwpIlL1L3mMUs9uZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730237574; a=rsa-sha256; cv=none; b=BCmqLRv6bNHpvX+oD2v8uOC62Ic+P+N15Dftqz1PuwgP2vGsBrG0t575IEemQgG+ldn0ZN XNwcbnAnjGdgzdzBN3vAbbgbAw2EdN7uP1XRpjLF/OcQT7fHQ9k1y3RlyUBY5NHk54lWj7 Evmgdeg9i8ssMqTfasWG3cpMOh86nc0QAkudbLO8KHba8l9gnrbJvapv0r36FdXz3cjDna tpI/dYICR4KkXqFnDlK2F6amO2Ab35LoCWBh0ounwkI4Je5E0sm5Y6T5xu4mNrQKZDkuh7 0HYGG46krCJFb5GqW1ufoHAKx4y1qKV7INo6boldfafx9HW30dHXGwwoZF6GEg== Received: by freefall.freebsd.org (Postfix, from userid 945) id DC3E59158; Tue, 29 Oct 2024 21:32:53 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-24:17.bhyve Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20241029213253.DC3E59158@freefall.freebsd.org> Date: Tue, 29 Oct 2024 21:32:53 +0000 (UTC) List-Id: Security issues List-Archive: https://lists.freebsd.org/archives/freebsd-security List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-security@freebsd.org Sender: owner-freebsd-security@FreeBSD.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-24:17.bhyve Security Advisory The FreeBSD Project Topic: Multiple issues in the bhyve hypervisor Category: core Module: bhyve Announced: 2024-10-29 Credits: Synacktiv Sponsored by: The FreeBSD Foundation, The Alpha-Omega Project Affects: All supported versions of FreeBSD. Corrected: 2024-10-19 15:42:15 UTC (stable/14, 14.1-STABLE) 2024-10-29 18:45:36 UTC (releng/14.1, 14.1-RELEASE-p6) 2024-10-19 15:43:46 UTC (stable/13, 13.4-STABLE) 2024-10-29 18:49:55 UTC (releng/13.4, 13.4-RELEASE-p2) 2024-10-29 18:53:41 UTC (releng/13.3, 13.3-RELEASE-p8) CVE Name: CVE-2024-51562, CVE-2024-51563, CVE-2024-51564, CVE-2024-51565, CVE-2024-51565 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background bhyve(8) is a hypervisor that runs guest operating systems inside a virtual machine. II. Problem Description Several vulnerabilities were found in the bhyve hypervisor's device models. The NVMe driver function nvme_opc_get_log_page is vulnerable to a buffer over- read from a guest-controlled value. (CVE-2024-51562) The virtio_vq_recordon function is subject to a time-of-check to time-of-use (TOCTOU) race condition. (CVE-2024-51563) A guest can trigger an infinite loop in the hda audio driver. (CVE-2024-51564) The hda driver is vulnerable to a buffer over-read from a guest-controlled value. (CVE-2024-51565) The NVMe driver queue processing is vulernable to guest-induced infinite loops. (CVE-2024-51565) III. Impact Malicious guest virtual machines may be able to perform a denial of service (DoS) of the bhyve host, and may read memory within the bhyve process that they should not be able to access. IV. Workaround No workaround is available. Virtual machines that provide none of the NVMe, virtio, and hda devices to the guest are not vulnerable. V. Solution Upgrade your vulnerable system to a supported FreeBSD stable or release / security branch (releng) dated after the correction date. Restart bhyve processes, or reboot the system. 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 platform on FreeBSD 13, can be updated via the freebsd-update(8) utility: # freebsd-update fetch # freebsd-update install 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-24:17/bhyve.patch # fetch https://security.FreeBSD.org/patches/SA-24:17/bhyve.patch.asc # gpg --verify bhyve.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 the applicable bhyve processes, or reboot the system. VI. Correction details This issue is corrected as of the corresponding Git commit hash in the following stable and release branches: Branch/path Hash Revision - ------------------------------------------------------------------------- stable/14/ 86ba5941b132 stable/14-n269162 releng/14.1/ fcd9a2d8a5bd releng/14.1-n267723 stable/13/ df1a36fdfae6 stable/13-n258536 releng/13.4/ 5d07a7e902fa releng/13.4-n258265 releng/13.3/ adb7b541aea1 releng/13.3-n257475 - ------------------------------------------------------------------------- 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----- iQIzBAEBCgAdFiEEthUnfoEIffdcgYM7bljekB8AGu8FAmchUCUACgkQbljekB8A Gu/RJhAA5oWfn9F1Tdmwwl5CFbvIjSmHcWdDsTbQ66DrL8HcinrNoBSdhr2xuAQK mxsWuUI1V4Wb9Yp0EXjpNB2ZIpjDbEionVK7BEZJ2D09TCi1CFS84CiTdqBlkJ/A 2K+eQD6BAG+wKu0yRlqu2wA8RgUWob8ORZ9PFyT4XH23OT4F60WUhPJ+917cqCru Ye7hKcSy/xaL0J95ZOG+qeuTf9RbBeQ4f+Sq2ERbtPXVRcBs3x2PEjg1ptuKNmst Hbvg+fIsfGWf99r50EhBP2yPJ/jNZBhYJ5gX+zdJsyuXRnJwnv2P6WNxFKoh2I2n RI4L3rJ7hJVPURhXZ3fkmiQ8qW/VxrR+2H4YxjuD2U7KQg22ZxCCFNFfN7gYI63U 8/shw6Ez5OQqVyXl/+uD0/P6pnscKsQz9zNix7kI+G9meBZLnyA1/eGB0iFQVjYg NxepUWheMsraLX1ytURtI2lY8pr26Fd4xtY0mKpV13ohL59nQZ79fIeot50m8WMP ++zqqErJa/9mk6MSZ/xXHWUbPLmQmuNyHere4kqvd4dTLLMOe17WB7NrPJch2S23 BCcnfZNGwP9iPY27CHRStAYI2OIj2iL7oe2Z7jnh+afpcX3r5isxqZf3R6pw7C2a fDPHVTfKJ951yBloejhXJcPXdwgYMZ+8nd2MVafrIYD7dTZfCrU= =BYuX -----END PGP SIGNATURE----- From nobody Tue Oct 29 21:32:58 2024 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 4XdNlZ52spz5bxBh for ; Tue, 29 Oct 2024 21:32:58 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XdNlZ37srz4Z1r; Tue, 29 Oct 2024 21:32:58 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730237578; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=U4XOjEyKHHbIlncgkC12Mh9LwCmC2LPf2dmOvMBUFHc=; b=DPxCewaJ0yPwnr7YCY5m+f5Fex72Qi1tIAamriA1OwQg/eoZGZ9IeuzOlcfx9jJEW5G48S G4m2WJrlCkwhcuMX1Y61CCyG7mn9Yj9PoH/epLZ3iTI5jNBAxzxEYJocxfSlh0VdvGjMzT AAIcYG6nTVQpYNrOvU9wF9nhMgLQfsvsI5S5kELorZc03Ju4Zf8LR740cypYZXf5tPiKMr ADl7Z+8U9NMU4IPLVpHg4P28eyMiisUligPxQUBpjmvYAOIp1aQr57b1pX6Ihd59/RkmVi uFsuwmtVMao6999xhHn+wniZu5HI15KV6A3dfK5SL86LEi6T8Is/s4V+PXSimQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730237578; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=U4XOjEyKHHbIlncgkC12Mh9LwCmC2LPf2dmOvMBUFHc=; b=F4RmIAO+zUAWvr6BVAPpUgSy/WO4Agskp5n/m45E6jegmEtwATj0KG4DWh6qqyNaMUiMJd GeS5N7wf3/1+UaKA9RWB3CRgEX0Vp8QQLPYlPfqCvkMrwr0Dd0BZDdvHEsfSfHr35QdR6+ sESGFCI5lLXUttm0GVYNBaY9eODgiU9BY6l/GT+4O3BULmp0C3ddx7UQKxSdCb1J76UyhT 1Y0C9RGR4tuYqX6PcJGoHPWQtsYK2gqX8UTT9EDXKeK0hCPeJvX3QRu7zITQkXxWH4cDZM +5lgSBCa2yq1nqIU7z2ONLG91Zfgb9xan4ym2ItwOJPhpXFXl6DiV4216xdUCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730237578; a=rsa-sha256; cv=none; b=gKH+k4ZOMAV1zsA7Q1gjvisGHry4cPWoYsN0QU7l7x0+T25V3lvoflXHkI40LcuGQalq2i Uj+kqNSC9biaUSbsGIqYDwTVy1kZKGSM+ay2alC0ehnglDmnyvrl/uc4nj9XS40mmRqa7N wsKBsASECSj+ZUhYcLJwWkHXNlUPln6GFVTeVxf44USAjvulPxo/C9l+t8pbW3Esev3nAk HXvieFKkObkAJbSNA26lrNrj1ajqMlv0X48+PBgOuy7zPElUS4gy61YHbYCh6iOALveQod Fef2vw0b6OLWGOliij4tCm1Mg3TdH+O84GyJvjuC5iZTSKEVLdYoWMCYf12/Cw== Received: by freefall.freebsd.org (Postfix, from userid 945) id 64EAF91E1; Tue, 29 Oct 2024 21:32:58 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-24:18.ctl Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20241029213258.64EAF91E1@freefall.freebsd.org> Date: Tue, 29 Oct 2024 21:32:58 +0000 (UTC) List-Id: Security issues List-Archive: https://lists.freebsd.org/archives/freebsd-security List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-security@freebsd.org Sender: owner-freebsd-security@FreeBSD.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-24:18.ctl Security Advisory The FreeBSD Project Topic: Unbounded allocation in ctl(4) CAM Target Layer Category: core Module: ctl Announced: 2024-10-29 Credits: Synacktiv Sponsored by: The FreeBSD Foundation, The Alpha-Omega Project Affects: All supported versions of FreeBSD. Corrected: 2024-10-11 15:53:17 UTC (stable/14, 14.1-STABLE) 2024-10-29 18:45:37 UTC (releng/14.1, 14.1-RELEASE-p6) 2024-10-11 15:53:53 UTC (stable/13, 13.4-STABLE) 2024-10-29 18:49:56 UTC (releng/13.4, 13.4-RELEASE-p2) 2024-10-29 18:53:42 UTC (releng/13.3, 13.3-RELEASE-p8) CVE Name: CVE-2024-39281 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background The ctl subsystem provides SCSI target devices emulation. The bhyve(8) hypervisor and ctld(8) iSCSI target daemon make use of ctl. II. Problem Description The command ctl_persistent_reserve_out allows the caller to specify an arbitrary size which will be passed to the kernel's memory allocator. III. Impact A malicious guest could cause a Denial of Service (DoS) on the host. IV. Workaround No workaround is available. Systems not using virtio_scsi(4) or ctld(8) are not affected. V. Solution Upgrade your vulnerable system to a supported FreeBSD stable or release / security branch (releng) dated after the correction date, and reboot the system. 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 platform on FreeBSD 13, 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-24:18/ctl.patch # fetch https://security.FreeBSD.org/patches/SA-24:18/ctl.patch.asc # gpg --verify ctl.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 in the following stable and release branches: Branch/path Hash Revision - ------------------------------------------------------------------------- stable/14/ 2e7f4728fa73 stable/14-n269070 releng/14.1/ a8df23541444 releng/14.1-n267724 stable/13/ 367d8c86a182 stable/13-n258514 releng/13.4/ e389eb99fb63 releng/13.4-n258266 releng/13.3/ 9867aebc1d04 releng/13.3-n257476 - ------------------------------------------------------------------------- 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----- iQIzBAEBCgAdFiEEthUnfoEIffdcgYM7bljekB8AGu8FAmchUCcACgkQbljekB8A Gu86VhAArJMRQcCCLdF1dflUMBKXROmUUZRHZg/fDS6QvGgZXQ0vKaGsHYjdNS2Z oM+RgfsE98CU5FoiqBNdJNlAMX9+/JSN1h2wPD3UJfk/j6TLbj78RMcNnfG9OGSb /J626CnpcIz/9ORSVb5FRSe3Ac+aS19Gh7g4wY9RY/sRA2tR9+8A96JdD3nQCkAQ +oEiB3sNfo9rTxVNtPV7J47HwLcHecfqmUNp1fJ4eWs2utebyG0IoLWI6SlFrx81 peBImJvVZviZVesEeibTT/nBcbuugq9pGUp5EqVcoZM5VHqN/DIm3uI1jpNzAyvR NBoFBBI6+DxUfw3D1MFP6s341Ixmz1UBhqlGewhAryKTGT1Pm0ong69vH96hAEDT Q8OnigHESE94O76u61NsaQydjcqnC1gRw0NkRl7FNja4tLDKxKQ72P0tPSYyFSNp h7V2F+1g6EbMxWpb19KEjYIF6AAv4ijUc1DseW0NITteofufcm+yytvksOQGKbDm Vx8m+6ONqVSs09Bi7bIG0n5yF1qjFyLkWfKs/FiJF5tfu9bdXpm6VG32KSBsaF/2 O/0h6OKIyHHqOaKr9NgBt78gAknwPdi083ir7HIihzkaGfoMLhkyyss3G+cOa45I G3bfpjyQSpqwVgypP9KEogFU0Cb51GkKK3Hed4GyZ88c6C+QcAA= =ew5T -----END PGP SIGNATURE----- From nobody Tue Oct 29 21:33:02 2024 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 4XdNlf5Lq0z5bx7L for ; Tue, 29 Oct 2024 21:33:02 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XdNlf1cgZz4ZJ1; Tue, 29 Oct 2024 21:33:02 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730237582; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=HwrI+bpPUfZi/JvpO9jJzY6vhB16ZWf7/y44tVhvFeg=; b=izT0ZNK2CkjdKsazPwXfU83oY6NoCBv096AJI76CBFO4U0w01SRlzFcjDVgAf4yVzFzbJ1 1U0pAFGcM+7iEyWZP/e3n7czBzBdYJExuIE+lkkGKv6BkvVS03RXq19UtmPwaynyXhXdLm VYeguOyrRvUqZPj1tn7kbeE65a0GPOlhotbEDebFSLg4RGc1mS463vdtjQObRYLTpznSdq b0IOgEi4aBr7dFX/LrJlUa+XwAyas295f2p6FLlvXJj8bqN3CRfFgV6iqHm6MQ45ATSbLQ Ca9D4Zn5fT41NMWgMnaNSvTSSXOg3kyjHLsXmo2O2oAX66zSJPkZUaDZpncGSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730237582; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=HwrI+bpPUfZi/JvpO9jJzY6vhB16ZWf7/y44tVhvFeg=; b=KTOPXxkHkpSecBVSO3YP2ncYXT+yYlW5myIOtNS5pcZhI42e6SppJ66AxLFXdZzfFJlfad keXIhUvhHX9JBZ0MbV1tRwCn7yz5QZizJq134yQTlZduRaRhbpuruUUQeyKcvyUMKVcHzD Zn9O4YboVFpNvboXmUeGpKGiFMe1eVI6CVgqOy9Rgv/kbF6hA1WsKgINgmBqsHIZyi+K6T h5tNRh0bK393qLACKkUQlZVvw6mPne2qeDhhNbmx+pcqc5pgnJM+SEA1yhSQ6m9hG4VcAu oXFSXwww/w4fWsQUktcKyb+45KsZkVH/i3C01SQabEY0A9p0rwpwR8Ys/jEZ1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730237582; a=rsa-sha256; cv=none; b=RHKcU9eiCy4yazVuX59iwAFhwwLvsVb+KM1j/Y/9KptlPqn0c5eAkGgR1zCatkW2y9qENy b7cN9gnpSKdbkKgcAs+AA1qoZq78ysa62X0aKp5R62Ws8EesxewrQpwcFfuz8PXRO6GhlQ t8O96vtTI031NUHRdVcPffvvDKmBV8mGBohixeRG4v4abfB/0y6aoU2xVAnlsWLLHlVTq0 L1oMZCX7hGRZQu0qxSTnAljeNJ4s7gqkjRHI32Wr2FHMhs2mMvrtnQy2sAaWTx67RN9aAi MXe+1ytzETHe1YES6rqa+hrjQrFJ7zV6lGor6MBK3Vha+OraaGmN78C7Jm3grw== Received: by freefall.freebsd.org (Postfix, from userid 945) id 1CF0890EC; Tue, 29 Oct 2024 21:33:02 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-24:19.fetch Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20241029213302.1CF0890EC@freefall.freebsd.org> Date: Tue, 29 Oct 2024 21:33:02 +0000 (UTC) List-Id: Security issues List-Archive: https://lists.freebsd.org/archives/freebsd-security List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-security@freebsd.org Sender: owner-freebsd-security@FreeBSD.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-24:19.fetch Security Advisory The FreeBSD Project Topic: Certificate revocation list fetch(1) option fails Category: core Module: fetch Announced: 2024-10-29 Credits: Franco Fichtner Affects: All supported versions of FreeBSD. Corrected: 2024-10-09 11:49:32 UTC (stable/14, 14.1-STABLE) 2024-10-29 18:57:00 UTC (releng/14.1, 14.1-RELEASE-p6) 2024-10-09 11:50:06 UTC (stable/13, 13.4-STABLE) 2024-10-29 18:57:13 UTC (releng/13.4, 13.4-RELEASE-p2) 2024-10-29 18:57:30 UTC (releng/13.3, 13.3-RELEASE-p8) CVE Name: CVE-2024-45289 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background Fetch is utility used to retrieve file(s) from URL(s) specified on the command line. It supports a --crl option to specify a certificate revocation list which contains peer certificates which have been revoked. II. Problem Description The fetch(3) library uses environment variables for passing certain information, including the revocation file pathname. The environment variable name used by fetch(1) to pass the filename to the library was incorrect, in effect ignoring the option. III. Impact Fetch would still connect to a host presenting a certificate included in the revocation file passed to the --crl option. IV. Workaround The certificate revocation list file can be specified by the SSL_CRL_FILE fetch(3) environment variable rather than using the --crl option to fetch(1). 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 or arm64 platforms, or the i386 platform on FreeBSD 13, can be updated via the freebsd-update(8) utility: # freebsd-update fetch # freebsd-update install 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-24:19/fetch.patch # fetch https://security.FreeBSD.org/patches/SA-24:19/fetch.patch.asc # gpg --verify fetch.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 as of the corresponding Git commit hash in the following stable and release branches: Branch/path Hash Revision - ------------------------------------------------------------------------- stable/14/ 51676e0a3bd3 stable/14-n269041 releng/14.1/ 0e8bf366e6c5 releng/14.1-n267725 stable/13/ 484724578422 stable/13-n258502 releng/13.4/ 51f6c450d991 releng/13.4-n258267 releng/13.3/ 9f1314a30b4a releng/13.3-n257477 - ------------------------------------------------------------------------- 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----- iQIzBAEBCgAdFiEEthUnfoEIffdcgYM7bljekB8AGu8FAmchUCkACgkQbljekB8A Gu/0RQ//fm2B2XPZPiGADBhuNeC8NsVwFqzNh/Nrxj2bUCel44kU4yGRZ0jADOD+ URW+0LDs+rOhIV2cw6fZDUwN+/dblFjZiKpQHJF42A1M90hNRfPArbCh6X2h8EAq C4Kr6M6tUByfMX2Hf0aj/QNVrar/hirNhM8ZwDXVMxDj+aBSHSUqZCzfgeTy4/nn 9DJKOaxJ6WKE9OmAEUhSNoPF6AP+ZzU0aOQCs9tUn+OqKDTxLwn0vXSTPaPw4FcR YYYIeiIKpqLhZxPhDnLh/Z/J4AleXPLZeL8VFKemopYk5Fi6HOG/f8UjC/GYoFp/ eHlEY7H1/aRUYJ6FWm4p/cGfxdJOWmkcJax6VQwBNKX23bEzQh9+4RlnE5cPbAio w4XeQybgitic/NeKhI8Jt/aFnVQah2i+O/PQRFCsDDVJGqRnjVw7+6Zvl4zEDoTP Xx96PXGCW3UZyNgqDo2jgZman1P5GLKtZg6FmGKlc/IrqijVnWfh06fI5nZ7Bo1z b8DiCGSQ/W2cL+d2ILj0illAU9g7JO3MDJOl/lchSUTg4XLUI+G201HaR9wRxSo0 SXYq23CG4Nll6b8tdC6EEnOoc4RgyQIJv+N/oML8enJ15x7teXG+JlWIf0rM2qkf Bxn8hBawdfshzuIkLf2X0J6rm8MBj/s9O3j87oD1C37dqp+E4Uo= =CEwj -----END PGP SIGNATURE-----