From nobody Tue Aug 9 22:35:31 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 4M2SZX1fsSz4YRWC for ; Tue, 9 Aug 2022 22:35:32 +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 4M2SZX0jkCz3MZy; Tue, 9 Aug 2022 22:35:32 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660084532; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=PLggPPiTmTIGc61O9vC2bsdgFhLKovXCqaSFsOIwp34=; b=YGjKc4aWdQUH0K5tVnCXMtdKNkknXd7RzDGJS1DczxdZywz6sPbFnTOs18wpFpZN2zemPP WlRG2u2FVtyOg9dvGlrDRceXGXHWH0nhlotpsJiS5VVAy117RcUZ6n2gOKDkfXkov1hf/4 ddLD2PVLZ8Ru/n1UFJh1hgqwVnGs0GPpGrI6+5Cg0k5PgQPeFgkmP0d8IMiO3H1YhfTXXC 1Qu35xyFKD9JdZ1GTySgtTPewjGmN35cs+aFNIU8SBVaqR73Kb9rTx+5N0u8lX/ZSDkhZ8 yatMf1WHxJV+zrMEpnhKKF4vK5/0E1hD0ZiHPQiV35jtMBeM72N34jsz/yYaeg== Received: by freefall.freebsd.org (Postfix, from userid 945) id D949C173A8; Tue, 9 Aug 2022 22:35:31 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-22:10.aio Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20220809223531.D949C173A8@freefall.freebsd.org> Date: Tue, 9 Aug 2022 22:35:31 +0000 (UTC) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660084532; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=PLggPPiTmTIGc61O9vC2bsdgFhLKovXCqaSFsOIwp34=; b=dHnEYf5GSpH2bjFAXpon75iqPE/dMEvvYAQf5wxsqckuYNadKEC7r2FJRMt8Tn4KvlBThY IIHExNloEUq68hTbYYs2/c/IOVGEr7fmC5QSxef+e4G1bP3YQGMr2LQvV9YmyeEcUD4xH0 uEOQ9omETiZgYgbf8L/LYkIM3CAqgRzanyGvOqmf9M3MJTmGrMeap5UJlfpjFasLvtJN8z lO8JTTf3s8/XsaMnsC1rVQbaBPU50ZbApiyECo2Lh1nFu1uK5JkTYfnsnojBf0GNZyg66G b+5D6BvwgEWF/N++leNvHqGydwYTOSTej9fSm9c9IK4LzNlEb+j3+g0VVXxiAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660084532; a=rsa-sha256; cv=none; b=KNTj+7+3+an9nIHxsCYFtViU6D9ky0T/TgzT3Pvl3SPe/GEWbrl3ieulgEQX4Yp5UMrV0Z 61yHoqQCML47EeiEBPoKSw5tH2l/azvq5lrYIwpIpXNd42q5lDJYqvOHbHSOFpkRs4pja/ nRM6NL+XZc+F4RhwPqnqRlxtcQ2FJjwq1a5BzQTEG5/GQUsXT/Byh1nC97CLQUvEfFb8G0 FPSgVrtShGq0OkS3yPx0OgIXHvPlHddB7yShjtAPcdzCZesekoXaV/yKhNMn0EPEOC+MPy DYWFK5ReA8ycNrqHxQTQgOu4t2Ux6Un31zeSLLaxoA+eJOPXlzLUUeZliuJ8Jw== 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:10.aio Security Advisory The FreeBSD Project Topic: AIO credential reference count leak Category: core Module: kernel Announced: 2022-08-09 Credits: Chris J-D Affects: FreeBSD 12.3, FreeBSD 13.0 Corrected: 2021-10-01 00:32:22 UTC (stable/13, 13.0-STABLE) 2022-08-09 20:00:24 UTC (releng/13.0, 13.0-RELEASE-p12) 2022-06-27 17:27:50 UTC (stable/12, 12.3-STABLE) 2022-08-09 19:59:44 UTC (releng/12.3, 12.3-RELEASE-p6) CVE Name: CVE-2022-23090 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 aio(4) subsystem implements asynchronous I/O. II. Problem Description The aio_aqueue function, used by the lio_listio system call, fails to release a reference to a credential in an error case. III. Impact An attacker may cause the reference count to overflow, leading to a use after free (UAF). 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. [FreeBSD 12.3] # fetch https://security.FreeBSD.org/patches/SA-22:10/aio.12.patch # fetch https://security.FreeBSD.org/patches/SA-22:10/aio.12.patch.asc # gpg --verify aio.12.patch.asc [FreeBSD 13.0] # fetch https://security.FreeBSD.org/patches/SA-22:10/aio.13.patch # fetch https://security.FreeBSD.org/patches/SA-22:10/aio.13.patch.asc # gpg --verify aio.13.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/ 9499d3c1e40d stable/13-n247480 releng/13.0/ c864c8cf08a9 releng/13.0-n244801 stable/12/ r372172 releng/12.3/ r372379 - ------------------------------------------------------------------------- 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 5cI0ZBAAi90yUPtPxBcshN+DldO6WSuQEWBE5XU+7Ivesns80PMF+QuQ9S/YfurC I0LNfjGe48Q4/CIfixLf3Xsari9IBmHpUPvJS3+TaoxrOLRTLv2uTCZl6mGj1iqL H4ufrtMCbaA830EAKlEfCfI6eY8eDJpKh+he86adW3qNPWewTKGeEK8Mi4st009F DcCcHquy+IC2DnZaeoO+dttKyMoyEJgvo8F0oej8Jg7OBPdW6yTuabutQkuxSur/ JChz+Gn0tKj9qtN6023T/JvDXBKsQVlURbGofHhcm5JkpFFVd0A4+2MLbAO24gJa fnYRJDaWbRHvF0joy3qbZWZ/a3iHHC+yq7jupHoOkP7yULUQRftoj2kdPPZic6eQ XcyZE3rKgk7CHJq1ofg/Ye6WTgEghWjUlp5yrTniL+uWp6YuSVZNKPvXweDpi45M segQvlLoDWG3GEhaRyvaeBkA4v1lLucdkLQCM9bAFPhq5S27lcHPf9r4jiWBR5HB yQKddJZGa5lzsiYhKfX+pJ4rQa3QPN7N1NRygXDp4WRcPCqV3r4owZNJs6rsPkVM c0+wyGZhv4jH8lRrludMeXkiusoYOHEE+hslA+xU3M+19ak7W3DkJZKvEZQgBMNs bobKi/rl0GmAJthxd+vLXmdRK8g50RhPP+Fq80eLct151DDBdd0= =7sbf -----END PGP SIGNATURE-----