From nobody Wed Feb 14 07:07:42 2024 X-Original-To: freebsd-announce@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 4TZTmG64b2z5BBlN for ; Wed, 14 Feb 2024 07:07:42 +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 4TZTmG492tz4dTB; Wed, 14 Feb 2024 07:07:42 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707894462; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=nYpyB9ytjFo33NJdYpSucUMYdLEL6gweaoWcOEEy+0s=; b=rsN/0TVOKONa6GQ789lZJiSR4cRE9sMO7yduJFCe2DXXM5DaL+7UEOyKdQgT30eEQKjyLn /EBy8VGyc/8v2S/Nyd+05Ssl4ywju2VaP2FCzZWcpNqcP4j2rUDdu9z6QcS4igtM/DQxC/ xFOg8C7vdkmwRCOVZFKskgrnjIq+BWXRH/1NbWrlVapkNLlJ6Z5DqRBx1+Lg5WXSQa+hds 6+/2UljSCSflcaQxMJWtexgHe9bSTtOYhq99jseqFxGgit2GloOwe1bzwu3h2qqz73g9j/ nzWpqaA+clcGtnorsGjiAFo4dvsCKhBb2CrSAxp6eG8q7BNRjmxgkVx1KFksJg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707894462; a=rsa-sha256; cv=none; b=IqPlJR/ijXMIq6uZnWlXzs4yUZ5pjJK/q3BbUTpPNghlKADKn/hEWEBfsQMaanV7D9Wtzl O492nnR2rRYTdTzvKVhzam7qPT3DXHjjeJnvqi23I+iTxiDeNHKQsfamzTOfEdtnMulo9X 00Zr2H2ZGoMmrxXh+3xlMEtviHkP2L/HxhKY3iLxC+aXXcOLiyeGfs7ctH06TEixXzlpgm EBxSur3IgFvFtf9xYuDW/dRvI8I3efBua1qblfgkDOakuSh1twflaWJddTH5WiFASrUFb+ W9TE8pnIaoB1B/nOsJEBPJWQs6NuI56jJ3InJaYpxAtHry96F9JFOEaTOP0/oQ== 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=1707894462; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=nYpyB9ytjFo33NJdYpSucUMYdLEL6gweaoWcOEEy+0s=; b=kOWN8nfaAEN8llnTxbxBjUF2B4yzDOuHJvTdzqwPdVTtiXdKEChjh0UgSHA0thwHiJ1lJZ s1EKg94M4ljNbsYJ3uT02Jpxnmo59+ePiXoYwYSO3wND68HKcfJuPaWR5hBn2aRcAF3KMi 3BV2K1vyW1aXbp/zF9LofdS9KQZVIcJFZU2OEGHSPJxpNvc0u//tNb50pC3YC3hdEcmLhu HmgcdY6m9sdxMVZFmo9+AL26pM6e3XmcjLncC7w2XLQB+bqL20lHJDo/Dwom9jtTDDdWOV J9KzhksT62qRIuf6T0izXsDVQnbR55TEArNvAPXMcEBsFmtR/Iv4wpWmAsLAGQ== Received: by freefall.freebsd.org (Postfix, from userid 945) id 727F026987; Wed, 14 Feb 2024 07:07:42 +0000 (UTC) From: FreeBSD Errata Notices To: FreeBSD Errata Notices Subject: FreeBSD Errata Notice FreeBSD-EN-24:03.kqueue Reply-To: freebsd-stable@freebsd.org Precedence: bulk Message-Id: <20240214070742.727F026987@freefall.freebsd.org> Date: Wed, 14 Feb 2024 07:07:42 +0000 (UTC) List-Id: Project Announcements [moderated] List-Archive: https://lists.freebsd.org/archives/freebsd-announce List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-announce@freebsd.org X-BeenThere: freebsd-announce@freebsd.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-EN-24:03.kqueue Errata Notice The FreeBSD Project Topic: kqueue_close(2) page fault on exit using rfork(2) Category: core Module: kqueue Announced: 2024-02-14 Affects: All supported versions of FreeBSD. Corrected: 2023-12-05 00:43:27 UTC (stable/14, 14.0-STABLE) 2024-02-14 06:05:42 UTC (releng/14.0, 14.0-RELEASE-p5) 2023-12-05 00:44:13 UTC (stable/13, 13.2-STABLE) 2024-02-14 06:05:58 UTC (releng/13.2, 13.2-RELEASE-p10) For general information regarding FreeBSD Errata Notices and Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background The kqueue(2) system call provides a generic method of notifying the user when an event happens or a condition holds. II. Problem Description Normally, when a process exits, all its kqueue fds will be destroyed at the moment p_klist is detached. However, if the process was created with rfork(2) with shared file descriptors, its signal knotes can survive. This can eventually result in a page fault when the process exits. III. Impact Using kqueue(2) with a process using rfork(2) can panic the system. IV. Workaround No workaround is available. V. Solution Upgrade your 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 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 Reboot the system. 2) To update your 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/EN-24:03/kqueue.patch # fetch https://security.FreeBSD.org/patches/EN-24:03/kqueue.patch.asc # gpg --verify kqueue.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/ 24346a2f7775 stable/14-n265907 releng/14.0/ bb06104dce0b releng/14.0-n265404 stable/13/ 55e91944998c stable/13-n256837 releng/13.2/ 154dedade465 releng/13.2-n254656 - ------------------------------------------------------------------------- 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----- iQIzBAEBCgAdFiEEthUnfoEIffdcgYM7bljekB8AGu8FAmXMYQwACgkQbljekB8A Gu+GSxAA5voCfr4a2LrMmBjQvgD7XwpCNH9yvYN3chKG07TTqNWkHbCxNvc4Brzm IXKGxvolrY3PZhXgN2KZhe/wAOf0I1ZazeW9wdk13O9G2SF5aaUYBkCvoMmPME42 f7lVXnkxhTQAovVFQRZAK6sYCVspIPQEpavoa7rq5dDDtO9g2AqB53aAbgdBpQ0j ClIcMzM2HdiYQBi4WuL36XVbeX6N++N5ouE8Hdz+pDcQSHuOm3VHUKlpRsEXLmYI 3uDJ8py+PGbtcLnSVALEcnreirJcCJ5em7Gaec2KXHDRis/dLW+DPlPyZp1mpIBZ l073AME8hEOxnJOUALvxTVHQS3L35JjFmxnSGwnLzXH16v/fGUKlnAZkOftNcRan JW1fLXB2EH+H+hdnOWiQeTCk8duIIvXuWEYf8dfP6SBMm9FfzBAoTv/K1mHxGFKZ s3iR4WyC7Y6r56meVdNfs/F4XtVh3edhVfOdjf/5I8+Ut9HGRNuHOCepLG9DASOd eQbhHAnHnUB21qq4Tme0eKoA130gVcBMr2NsE0lifNArLzEvvGB0Bw+9ZP9IfFeS /fPs4Yq1XIjpgk+TDdOPGexLWCIBl0ursjZMSuGyhXkDaD1oYzF3SKWrJRkahpUq +tN6jVPkG7Iy36myKSHofuPh641hSmk88IJPJHVrdNjo88hUti0= =xsIs -----END PGP SIGNATURE-----