From nobody Wed Jul 29 22:34:30 2026 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 4h9Rw70z5Xz6mx7j for ; Wed, 29 Jul 2026 22:34:31 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h9Rw65DxNz3tFV; Wed, 29 Jul 2026 22:34:30 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785364470; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=DTZ9DR+qZ66xWP2XGbr4OTtBvCQ02tagax1KbEjhjX4=; b=bw9Spe+OdDXVQvpRTFxgfA9rkCpN9jiAVxcIZyJ+b9cYcWbUW0/A0hFAMfzQPr3/yM/6d8 bU03MV7VcwvdbXJzjK/TGLVBZ6Eha+/4+iY4BqRvuej3P11SR2Szn1JnzwmtrsNupYvyZx JEj+NbhRiwwkzs2EzfzDfQHeXU3n00o5UyLX2HjEnC/t9KV8nN1nsaVHUotHw1vChv7Rnu lK9gOg5xm0KMB0cY/pWpEEtcC0O5ULYpfuZrdnmsHheYcdijCw90JsBwwhW4LnTIeA+iir +mCgfQ5xZL6/64R5RkSMuTgcXUp9FCfXWxU7Xin+qDvoKeF1qriD6fxkLozOBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785364470; a=rsa-sha256; cv=none; b=YmQhjl65uASH0v3avLqzxNw4KKi0JGj5zrqWVJFnmHDg/B1eRvkgpne0d5oTyeYdYe4A8j IfJaaC43dzQSNPCnXhuz7Wn7FLoXZsznSdD6QzGjiI3/YjqoOue1n/zw4AHbC38oJbZ3Uv SJV2k6NUwZz3PYnuOPkVz/w0ZGpRaj/IExQWLP9KV67ug4F3vagW2OxSQjcUeI8aQOwBfu 20sHER36+NEwRGr2BV0pkE+4CRFws4Cu+GWPtF1mbBpIndde+I5RwNIqf/6HQ0cnc3TBHX U/VNVsSenI+KsB10OfgfcPUqHIqJQP7+EUG2wUpGAMLrKhq4hMyNKkDyR5jTGQ== 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=1785364470; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=DTZ9DR+qZ66xWP2XGbr4OTtBvCQ02tagax1KbEjhjX4=; b=XV3bxbfznD6Sbhym17/E7+WkXk/G9Jz2Rk9+6dGgjACa0VEeWBoJ5C3/Joonf/fkRK66L0 KnI6pjcqf7LH2uihYlqQ/0TkXrcZ63R+aDT0rQwHW4UDRKkEGZ5L3Ln0tB3SHf5y9lfDF4 9F+EqVnMC4aqXAywEtGqjCDq95NFCN+bR0g1V8TDo0vjMMk0BVBOByYJv+NLLFf+1QFM42 Aa5eXKbj27G81KcsILX9aj9MZ9mxw8RsUVZzR9VodQOWy0P2BYBqFmYIi+JDQ2BV3h9lhp KyKj5KcesvX9t0CustFMAsNefWX3xBgBWM4aq76RWDJob9+WcnDemcB7ls/J8g== Received: by freefall.freebsd.org (Postfix, from userid 945) id 963F115DE4; Wed, 29 Jul 2026 22:34:30 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-26:55.elf Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20260729223430.963F115DE4@freefall.freebsd.org> Date: Wed, 29 Jul 2026 22:34:30 +0000 (UTC) List-Id: Project Announcements [moderated] List-Archive: https://lists.freebsd.org/archives/freebsd-announce List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-announce@freebsd.org Sender: owner-freebsd-announce@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-26:55.elf Security Advisory The FreeBSD Project Topic: Race condition in ELF core dump segment counting Category: core Module: elf Announced: 2026-07-29 Credits: Maik Muench of Secfault Security Affects: All supported versions of FreeBSD. Corrected: 2026-07-29 17:48:45 UTC (stable/15, 15.1-STABLE) 2026-07-29 17:50:37 UTC (releng/15.1, 15.1-RELEASE-p2) 2026-07-29 17:50:11 UTC (releng/15.0, 15.0-RELEASE-p12) 2026-07-29 17:49:04 UTC (stable/14, 14.4-STABLE) 2026-07-29 17:49:38 UTC (releng/14.4, 14.4-RELEASE-p8) CVE Name: CVE-2026-58088 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background When a process dumps core, the kernel writes an ELF file containing the process's register state and memory contents. Each dumpable region of the process's virtual memory map is represented by an ELF segment in the core file. II. Problem Description The ELF core dump code counted the number of dumpable VM map entries, allocated a buffer for the corresponding program headers, then iterated over the map a second time to populate them. A process sharing the address space via rfork(2) can mutate the map between the two passes, causing the second pass to write program headers past the end of the buffer. III. Impact An unprivileged local user sharing an address space with a process that dumps core can trigger an out-of-bounds write on the kernel heap, potentially leading to privilege escalation. IV. Workaround Set sysctl kern.coredump=0 to disable core dumps entirely. 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 installed from base system packages: Systems running a 15.0-RELEASE or later version of FreeBSD on the amd64 or arm64 platforms, which were installed using base system packages, can be updated via the pkg(8) utility: # pkg upgrade -r FreeBSD-base # shutdown -r +10min "Rebooting for a security update" 2) To update your vulnerable system installed from binary distribution sets: Systems running a RELEASE version of FreeBSD on the amd64 or arm64 platforms which were not installed using base system packages can be updated via the freebsd-update(8) utility: # freebsd-update fetch # freebsd-update install # shutdown -r +10min "Rebooting for a security update" 3) 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 15.x] # fetch https://security.FreeBSD.org/patches/SA-26:55/elf-15.patch # fetch https://security.FreeBSD.org/patches/SA-26:55/elf-15.patch.asc # gpg --verify elf-15.patch.asc [FreeBSD 14.x] # fetch https://security.FreeBSD.org/patches/SA-26:55/elf-14.patch # fetch https://security.FreeBSD.org/patches/SA-26:55/elf-14.patch.asc # gpg --verify elf-14.patch.asc b) Apply the patch. Execute the following commands as root: # cd /usr/src # patch -E -p0 < /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/15/ 008d3bafa124 stable/15-n284648 releng/15.1/ 8592efddadf6 releng/15.1-n283595 releng/15.0/ 475a72f75478 releng/15.0-n281098 stable/14/ 89a88e4f2ddc stable/14-n274646 releng/14.4/ d46ec216104e releng/14.4-n273753 - ------------------------------------------------------------------------- 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----- iQJPBAEBCgA5FiEEthUnfoEIffdcgYM7bljekB8AGu8FAmpqblIbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMCwzAAoJEG5Y3pAfABrvlBMQANG+Id+ZqIheEim9bCQc +Rxfqu3VgaAz8JET1VtOWew6C7xGPe3ii2g+Q/MIN28Lss9ndn1NoyEojKxJhWpb 4e7yUgA1p24pKcrV23uuMtbn/nWH/BnkIqZXhK1yPxRZ59uv7D1CCr1Qhh6HjADZ T6fG5anrUivmTDxDLJZb7OpIuMeVahH9TUvxAvH3MQDEVkv8S0ig8Lghdmf8Ytua zZa1gGMiA/LnTGcd13dysGtKSXECRYutD2ak2GV416vPVThCgd1yzdFp4axdopBg gMAJK9F3+0C7Mn53ATUGsRXYyAfb6PNNsF5vAc5aojHBluf5hEQTNDK0QumOpYfQ Gt6ZvS0lBJ1Lj3nNSKVF2fgBAQeHY80FFeRYABNwPPRWz1X41GMs0ngK6laJVP41 /m0P6Ad+7KbEWJ5mhfRMx0igApHqpprFMHMMr5HZAd3H8pgclkb7k09PuDBjBFsk Y/UsxJ6T5P0IZ5PnExGB5D1K6cql86n8PRDI5mu9aU3wEPQJFsykIeSQU41SWOoc GQyAmvUCU4qRjRVaIrULiCowUwhM6TQbuOgrQcJVp/n8MMh92bvpb+sCRniKZDSV IvD/6gLXoNBmPEOMR7Bgq1Lz/wUCLPBAQgNmEcFb+HLEMURj+QDXX6heSkZV/6GI brmHeN390GhTuutDmJTGgQCK =CL/m -----END PGP SIGNATURE-----