From nobody Wed Apr 06 04:08:18 2022 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 547DB1A99935 for ; Wed, 6 Apr 2022 04:08:19 +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 4KY9wg0VdJz3J1k; Wed, 6 Apr 2022 04:08:18 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649218099; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=xt8St5SLkSy4XGtNV1AuM4LbQrh/Gq6STG9P5DrsH6Y=; b=jz2/F9cP4aCuYsQcOoCSew5rkcXxxNQRViqDsuPka2BblnOJ5JHn+LxSEX3zRd7dGJkTLt R2EdEDpKVjMM9OElKaA/fwXmYXSPUSpyvXYqN6RMsGWiQ2m+vVnGcBa9ovo3l/VRBbPQ7i N+ygRk/OIJuiA9TJwBXwoSay3TCFvjnVV2PEU/Ql3CGHLwngdp0/0N8td3jD7ZleBNNVd2 zdP48nvXh5yBFDQguv5UzVjLaxvQAB6aV0OLXeQJ+pq9bNHoiFZQMkX4S3ZIpUisY+n+0r numZUBxIdMamf7gUBqFPpuUcIDmxTFlJRmFEIL+XyGm8rzzBok83NSTHHbekSw== Received: by freefall.freebsd.org (Postfix, from userid 945) id AA6503814; Wed, 6 Apr 2022 04:08:18 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-22:07.wifi_meshid Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20220406040818.AA6503814@freefall.freebsd.org> Date: Wed, 6 Apr 2022 04:08:18 +0000 (UTC) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649218099; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=xt8St5SLkSy4XGtNV1AuM4LbQrh/Gq6STG9P5DrsH6Y=; b=b+fTdDUzo8+61WqCjbZrkn9hz4v8zgNjJ+DypTDr2W6gKdo2m7iZkKc0wRMnfzrSobwVau /AK6uohX9WWm4bhYGA3AVoPKjLVJ8Db+DdG5NFI2RGk+Df3j2nXxNdo6z5Pd8XQz/sj1dh 92vJg6y/zvnthJ2SyixVkSU2FZCNTUpyC4mkQUpH+WPANnrEIFew4IrmwdOvZnC8wbo3+p /2dRehD6eUUSRohskBNxcV0U23z6MVZWO+3lk/8YnvLJCaV+e7QVw7LFA81qs6+xdsCPVK Wt5HO3bOake6E5vJBaC73Aldw2fFhwXClowZPsf4b7L+syo6TpuosWWMFtN8bw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649218099; a=rsa-sha256; cv=none; b=PsH3J2cedjoySsiH878TlFNVMWeY4wV91M8t7za7yuYmGGD+eUVKKRhJ742GVjEv6I7F7t ePW1JU0Ac4aRtTXDJWn0lXmNioAcagctQk+ezgHVJoRzWPqKYDqlc+Y2iXscJrG/+Dr+Vc d4mXoxGrcZtOR1AN4yWwZi8vBlBnGuxquWx9qfddmkoUPEkJngaluw6XmpziR7PXsQ8Qf2 N82W2pM7kjdGgjRPuvYePMGWtO8kgc9y1rSGONjoAfwrqCENSxbGxzE/unQgPOk8Yoh4aR txt8suNIpkq1Ack3mdFDXusv85tXDT01rZsBHZftfABh1eJb1ml/dqtZ4T2yaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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-22:07.wifi_meshid Security Advisory The FreeBSD Project Topic: 802.11 heap buffer overflow Category: core Module: net80211 Announced: 2022-04-06 Credits: m00nbsd working with Trend Micro Zero Day Initiative Affects: All supported versions of FreeBSD. Corrected: 2022-04-05 22:59:53 UTC (stable/13, 13.1-STABLE) 2022-04-06 01:56:58 UTC (releng/13.1, 13.1-RC1-p1) 2022-04-06 03:04:17 UTC (releng/13.0, 13.0-RELEASE-p11) 2022-04-05 23:03:40 UTC (stable/12, 12.3-STABLE) 2022-04-06 03:06:33 UTC (releng/12.3, 12.3-RELEASE-p5) CVE Name: CVE-2022-23088 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background FreeBSD's net80211 kernel subsystem provides infrastructure and drivers for IEEE 802.11 wireless (Wi-Fi) communications. II. Problem Description The 802.11 beacon handling routine failed to validate the length of an IEEE 802.11s Mesh ID before copying it to a heap-allocated buffer. III. Impact While a FreeBSD Wi-Fi client is in scanning mode (i.e., not associated with a SSID) a malicious beacon frame may overwrite kernel memory, leading to remote code execution. IV. Workaround No workaround is available. Systems not using Wi-Fi 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. 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-22:07/wifi_meshid.patch # fetch https://security.FreeBSD.org/patches/SA-22:07/wifi_meshid.patch.asc # gpg --verify wifi_meshid.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/ 72617f9246e3 stable/13-n250273 releng/13.1/ 00cc1ce78da3 releng/13.1-n250079 releng/13.0/ b2b23824272d releng/13.0-n244797 stable/12/ r371868 releng/12.3/ r371873 - ------------------------------------------------------------------------- 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/A6HiuWv54gCjWNV05eS9J6n5cIFAmJNDgYACgkQ05eS9J6n 5cL+FQ/9FPr6zxTpQ9HMQym2BYnZZHXLFWE2ALDLXE8UYiNa6vLaeIvO4f/bzS6b StHq4YoLTU6tPtTVXu1MTv+BZmDcavtKtBohppkcSdV2Xs2zHrlcUGNBlJdWWUR6 vgcRsI8EhdrFltKoeJ+L7bfHCzE4oGAFKhvap7DL8URrt+a7S0mkfdaX9o7RSQi3 vku98kns+ylV4T+DgY5KO21rnzwopIkmw3XlRO+S0XILK/h+7EWvcrOTTEV+byQM vZL17NlumXhrZvg3nQIgpTmai7B8hFCVvRYy8aT8ygRSgEWG5ZtJVuPtgmJ7TMPg mZneNAQ3eJep4l53nRu3mlxvwJYm9KR/RYDIf6iHhkVStPGv4+9wPSqHZXzn/bDy MLTHNcOi6wBmRMi+JsR4QkhS6VukFlZvNl4UhXRG7Lx2Tss5CG/SKXCEHcwOYcZY TEIJY2iDoTTU3jEYWclvcmLMKn3yRfyox1vpv71Ugh33L0lgM22P/5+p/jebeQvL xl62ZEZZUzOeHfDzMNKi4yFhi4RvRA8exmVTKjPbqiDPIpUQFrCLWvbzeQhUbeSm zsldDRAf51jeJbahwSfujqjJ7NOum0iY1qTSqgV3JLvAjShQHCMYCK12zlwT42CM 3Op+ruTU7mx9UhjerQtklrzP1qE9i6A9D5Kk/MZSOA4zRbuFTRw= =uFZx -----END PGP SIGNATURE-----