From nobody Tue Aug 09 22:35:35 2022 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 4M2SZb4c04z4YRnN for ; Tue, 9 Aug 2022 22:35:35 +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 4M2SZb3rv6z3MvX; Tue, 9 Aug 2022 22:35:35 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660084535; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=LfBVSNQ0it1+f/r4SteoTFtVidc6Tr3hYyRi93Xkc2M=; b=w5gXTw0nyMYGqHS3kl1P0UdmENikU2F6bG7LI9O2K6WRT5EH5RxOB7o3e0gDSBhViRohEc opeK7vEHHSqdH5YMuBxRId7Zc/XpJed5/ECplro7InaQqR4yxnaQv2MIgmPpRbEYjZ9lkr DFd7qODG3CCsf8EqExzcEExdnSvOEKByY3ZtP9VK7bknZZ+QgYreGGf3MHSFA6MK293RT8 TwENr3zvaJVpL+kuPOQqSty2AiybF2LzNtQdoqvnjQdOUJeTKIjqLmpKrAwoJwdFVHMRRR p7WaAQRGarQvwVfo0p/tOOETHcpiA9x8DaoDFhJ9AaZY999xw2bLpxR+VwjpRQ== Received: by freefall.freebsd.org (Postfix, from userid 945) id 5E29F172BB; Tue, 9 Aug 2022 22:35:35 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-22:11.vm Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20220809223535.5E29F172BB@freefall.freebsd.org> Date: Tue, 9 Aug 2022 22:35:35 +0000 (UTC) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660084535; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=LfBVSNQ0it1+f/r4SteoTFtVidc6Tr3hYyRi93Xkc2M=; b=ASlbz21f2YzLi3aNwL3FQz3Q/ELXVWD/WuNjyFMrIJFjYwygzpPXa/CVHDLl8tGvBIMzkA pLs1ybms3rJhb/sjQkozJfydkyXgKNWYa4EG6d6pwiwTiCEzT2VpXNWVbpB3HfT7GHfyfu 9C//NRCueI/piFBU6jS6gYvIIGor69R2wi2t+vvF4C3fBV7gbRYyWxb7FZrd2FwLfNAvxI R5t7BaPGv1wzsiP5iV+vsS8IJ9HboXsIY8j7zbIX63Q0MmNhlA5Vbh0YgvPfFW8cOWHStm 42Ok2BXm0s/3du0EGu8ETo+WPjiFJS819h1dpgxkeD7nCW8Ye8ToTTUJ1nt07w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660084535; a=rsa-sha256; cv=none; b=NZ9JmcI4ZLJHHFXH5lHVICL6JRaBiHZGPt3GDToTLX/+2T4+JO52DoUiwa0IyRHnZzHrSw lP3TZo10Md2+NZEl7ritdvygc2U7O1cHeEQwb6NLEGmt6dmEJnhFQ3CliNVZV+aJotrK4O mTkkUWIAsaQ+/uBDE3giVoBpwwc6mU0wqhRcks61CiwvPmSaasxav5VTPEIEpkM5o+lDAy OB/99g8HpJS5v0UOixn7SiLH8z1w+Y8DS0YU+0Wb4YQJxfbTr8bj1EuuDuBFh2IJnJCqW9 XmSuYsyzJ5wsPKBS42LdCxq6lG5i9jlWOQCLdB8WIMZ4eFCsPvAB3xn5nyGHRg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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-22:11.vm Security Advisory The FreeBSD Project Topic: Memory disclosure by stale virtual memory mapping Category: core Module: vm Announced: 2022-08-09 Credits: Mark Johnston Affects: All supported versions of FreeBSD. Corrected: 2022-08-09 19:47:40 UTC (stable/13, 13.1-STABLE) 2022-08-09 20:01:00 UTC (releng/13.1, 13.1-RELEASE-p1) 2022-08-09 19:59:49 UTC (releng/13.0, 13.0-RELEASE-p12) 2022-08-09 19:57:38 UTC (stable/12, 12.3-STABLE) 2022-08-09 19:59:48 UTC (releng/12.3, 12.3-RELEASE-p6) CVE Name: CVE-2022-23091 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background Memory mappings shared between processes are a feature of the FreeBSD virtual memory system. They may be established by unprivileged processes with the mmap(2), fork(2), and other system calls. II. Problem Description A particular case of memory sharing is mishandled in the virtual memory system. This is very similar to SA-21:08.vm, but with a different root cause. III. Impact An unprivileged local user process can maintain a mapping of a page after it is freed, allowing that process to read private data belonging to other processes or the kernel. 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, 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:11/vm.patch # fetch https://security.FreeBSD.org/patches/SA-22:11/vm.patch.asc # gpg --verify vm.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/ 3ea8c7ad90f7 stable/13-n252080 releng/13.1/ 0c88ecaa1255 releng/13.1-n250153 releng/13.0/ dd349089ff92 releng/13.0-n244805 stable/12/ r372377 releng/12.3/ r372381 - ------------------------------------------------------------------------- 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/A6HiuWv54gCjWNV05eS9J6n5cIFAmLyz1EACgkQ05eS9J6n 5cK+mQ//V5ZGy6Hx4dfngafOWuSnC/5usXbu69iKnHQONPVZoVO72ZZKbm1fyMn7 HlDyAfhEtYuh67JNROH7KJUf3lPeHQUd/rfSbTv8usXhxeAu09/kWi74/kviDLd5 5Ocaja6DSN457c4gd6Lght1IrzDjnrL/oR8sHf7QWP0UAPjzi9CAcN5R90e7UP0u J5/w76zl4ApGu4na3CNi3OTCf4xOf4ncosOXFyZHOAsnbyXjjl0qp17MtxDpsvNn xAXOF3PvtFsO8r2MyLqRkcvPZE3n1LNvAPaI5jlVaXS6Nw7enZMqokj8XLmiUxcg FXipr9nhdL+Rihj3JjIY3uSXv7x+ZacET9cM03a9LlI7kSzfuWA+hkiDExfITJZ5 jJFqZ+PV+TvNqXfeatnOC9o2iyW0tAj7j1JPO3NEowdJSh/cpgzDfniDhm5dMA7G TTFyxCrX5ZwhbPgHwKdb6J6oVYc0v8Rlnbb4bIpIeFO/OP0QwAU0f/GnxCeTEoXn 0s26Azsi2l31HKhSha7KVz66IWCdyBjwGApC2lNM9G2zKlD4NXEr976mG9WA09wS jUM290y1uj2igdfq6gcgno37c6xQiAypDpOnOCGAL0+sbPT5ak7y/NFDFppR0uB4 x7USiGEonMNswkKHtaOf7df6RAwNQZG7F+ADwtaMlC/C+c6hlUk= =WXZW -----END PGP SIGNATURE-----