From nobody Thu Oct 06 15:50:49 2022 X-Original-To: bugs@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 4Mjwrp1Zcwz4dsy9 for ; Thu, 6 Oct 2022 15:50:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mjwrn73YGz3Qs6 for ; Thu, 6 Oct 2022 15:50:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mjwrn68c0zJ7d for ; Thu, 6 Oct 2022 15:50:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 296FonJf067722 for ; Thu, 6 Oct 2022 15:50:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 296Fon3X067721 for bugs@FreeBSD.org; Thu, 6 Oct 2022 15:50:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 231926] ldd can't operate on a segfaulting binary Date: Thu, 06 Oct 2022 15:50:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665071450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=elI2yiL/5iYGULt6lPZauItXIHko9TrMaZ+PjupSjaE=; b=mUd4sXMH+Aj6CKkxp5ZJEk7Ds7U2fN/rYtwUFhGXDO9bSTVMOEuZfbOa1vSPRsLSLdHOmC YP9GV2aVPkDWmdauO2bJO/T2Ico93etS3sIYESLuNLXGYDtPLZkrc7OWBQTnw0ZYrN0RFw D3O5C+/7cFNxdKpcB1z9b5W0FJ1uWL2QZRtXHzfPscnsEzGtMoUv2lXILo39xkngXyxHRs Mhbbut+Uome2QmUcGBpDxDOpBfClVXDktkzJxkRfUxIKO5dBtRgBfn0AfuyVR2VSTQoxq4 UsIWLc4IQaH+WAyAWfLm/BGdOrwi9+xAjTE3iQlewD+Sc+Hx2mKHeVUBEscF4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665071450; a=rsa-sha256; cv=none; b=ZwqF68WrWueM8ZoECtiOtmuKS4hBUC3IEYTScvE9NjGe6NstOOHyMG+Z/rIx21wVWfWvXL osHAISw4jqDWGdSMtf/b5bDGqHT4v2ZmkVsEodUR6gC8uk1Lq38ddFPF0nNkplf7KJG4Cd ObZKNP7HNR+s+fpd0UCikH3rrMXSu4YB/Ws8cRtjZALc2R0nWOBK45o2NYoGuXw3gyCSNG EZUz+58bZuKbhTb92tmPOumvEF5RdC0Cy4WCUe3bpiR/vPXc5AkkzgsP2EDkCNBUoBhv0u Axq8sry0age0I8gRn6UAbfdjat2185ejFI/lUEOqDIgMqY8efGEjDQbpYUX9rQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231926 --- Comment #8 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D9cabef3d146e9a844813b6bc8952d6cf2= e9d45e5 commit 9cabef3d146e9a844813b6bc8952d6cf2e9d45e5 Author: Konstantin Belousov AuthorDate: 2022-09-21 13:55:44 +0000 Commit: Konstantin Belousov CommitDate: 2022-10-06 15:50:26 +0000 ldd: use direct exec mode unconditionally Trying to exec malformed or unusual binary, for instance, a non-FreeBSD ABI, or using a non-standard interpreter, might give unexpected outcome. Reported by: The UK's National Cyber Security Centre (NCSC) Reviewed by: emaste, markj, philip Discussed with: jhb Sponsored by: The FreeBSD Foundation admbug: 991 PR: 127276, 175339, 231926 MFC after: 1 week Differential revision: https://reviews.freebsd.org/D36650 usr.bin/ldd/ldd.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=