From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KwRvKISpz2pryAkAWB0awg (envelope-from ) for ; Wed, 14 Oct 2026 12:10:44 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=RPUwVrPm; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 8DE171E050; Wed, 14 Oct 2026 12:10:44 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id B369B1E04E for ; Wed, 14 Oct 2026 12:10:43 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D33A74BA23E1 for ; Wed, 14 Oct 2026 16:10:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D33A74BA23E1 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=RPUwVrPm Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id C616D4BA2E15 for ; Wed, 14 Oct 2026 16:10:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C616D4BA2E15 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C616D4BA2E15 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791994218; cv=none; b=vC30LfngvS6AQKERIYTbKFaeH1W8LwpH62+OEO9IviRumWMe9NexkaP3isRYr2IiLneoYo8LONxScJQLPbYnljNy6YcqOgsxxEYGK9Qga8CH8FG4P5BbuLqKYilTWIWOWLrhk+lz4Q94Kaev+o4mzdX6kfzizpCcooPHLepOo4w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791994218; c=relaxed/simple; bh=+zzmXxyLG/7nOHHRKGG8Rfy1rJ8QLS+aIPR5jWnRgLY=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=t14RZa8tHlPKYV+5h2hSNCe7CcHdCDcYngnIjPM7T515l5TRXxp/KNFAbtId4l9tpgsgrDiu1DDs1XtK2kMRvaTT2182xrvN6ZvJgcqcK9ycQPxmz1A3dsxWCxnf+5m4qzcVls8MiJHf89njmG7UuyL/cofrChJoMHtnTlv/i8o= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=RPUwVrPm DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C616D4BA2E15 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791994218; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TkE+IIDSTUXVvRu6dgqIEJCZRbNnebbR+LRreD9SVIo=; b=RPUwVrPm5b4jVdl7zFIGXRuClwC6iUnjEb2U4h3xkYLbMu2RlKgLr9knlE4QDsj4h1yedm TllpzAK4H1z8Jtn74hY8MmFLTGsbPwPw2hDVpQ5RXf584F5p80XaQnUcClMfoB5Y7/lph1 XA5sKWIm3mWAQ7P3GpvK88HYxLou6kI= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-65-Qc-sA-V8N9GE1pz_LK8F7Q-1; Wed, 14 Oct 2026 16:10:15 +0000 X-MC-Unique: Qc-sA-V8N9GE1pz_LK8F7Q-1 X-Mimecast-MFC-AGG-ID: Qc-sA-V8N9GE1pz_LK8F7Q_1791994215 Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-5337ed1ba44so93417651cf.3 for ; Wed, 14 Oct 2026 09:10:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791994215; x=1792599015; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=TkE+IIDSTUXVvRu6dgqIEJCZRbNnebbR+LRreD9SVIo=; b=OtomoBgpmCn+7G/DrDtddtUO9FShBuiTytdktpGUTexwbhWQhkz52geVl8KyRMUjTv uBDko1ITYE0r8K7AFkPQrlayRJkkLExLmgyEGlWpuRpq1IBQqU7DUd08T/O+fyDHulNF sVbMRKvbYU0YmR4/DxCtxzLRrZx+jPrcX014EdLJ8nVrBfbyfQZDOB2TlThWT9ryp+ZN 9yDthXzq+1SLXfugLp3vLhgO922wRJrvu3/TM1xRQx3RwmAYA+ZL8Xtft/42+kIEX0lm +Sy9lnbpzhI2yo+gIcLDwk4c2vFQoWr29sVKH2DBZmymOhByGUhtMoJIeT0DEDUFDH3O hQlQ== X-Forwarded-Encrypted: i=1; AKwUvBx+sKwED7yejbvErCexib4n2P1kGzl3BPAZX6/jRG0n6hGHMBL01CNKMFVgfEqw72G5sfUBEAmsPZBp+A==@sourceware.org X-Gm-Message-State: AFq9FYJL5UbfnuXQmgzT5QZjB6lV6s3F9Uq6ERdj0HprlnpuZW1ZG6ya KBhMAPNqOhgHpAsX52S9fWGr/F2xepCeZB+GdpfHJIM10x7VIrJ295tW2gklFcZ+ZXxiQa0Wxoj SOrLMY/ol6jKmL9vOHVWsW6s23Ny+jkNfK5UWjudH33J5kaGqaurrU91luLNOwfH8tIrqatE= X-Gm-Gg: AYBFou3AUpMUwZJijid0LB9VEPudy6PjTZR0ylf2yHXn2UzPLd8KHabwteMkJErMk8P Mp6/ZA+wfdHf1ECS3Q9T6GoK3kTOcSeEQ4ODdCLhoVXdMZrbFpyz6Hnwcv6IoZT5tynIillQPJW 9NGgK8vf3lSpmE9Te+WY24ij+uJMsgLaHbh/1CbvM15kXQaSgFX7lCpk1MJg/tg8FII1MuNmhS2 HtPSSFja9fwATFh4tZamcAEM/hXq3TelkmmIs5aAtkhtC9tuo3xDVt+1+8Ty3JFoorHpMDWGh/c xvNH06GnhNixWtJR/OcPC0cbegCUvc0+N6QXw9SgHZF77UaRYZA0kBNQQ52rbUj+iiQp8zMCcvU aow== X-Received: by 2002:a05:622a:1350:b0:532:9eb6:8498 with SMTP id d75a77b69052e-5359fae3ff7mr261191011cf.22.1791994214469; Wed, 14 Oct 2026 09:10:14 -0700 (PDT) X-Received: by 2002:a05:622a:1350:b0:532:9eb6:8498 with SMTP id d75a77b69052e-5359fae3ff7mr261190471cf.22.1791994214042; Wed, 14 Oct 2026 09:10:14 -0700 (PDT) Received: from [192.168.42.182] ([38.74.41.78]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91ba3d63c70sm37035076d6.43.2026.10.14.09.10.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Oct 2026 09:10:13 -0700 (PDT) Message-ID: Date: Wed, 14 Oct 2026 12:10:10 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/5] gdb: extend SECURITY.txt to highlight additional remote debugging risks To: Tom Tromey Cc: Andrew Burgess , gdb-patches@sourceware.org References: <4a6d4fbc0037fcff1e4e5efc940aab03eb9e57f8.1791812758.git.aburgess@redhat.com> <87jynk48wz.fsf@tromey.com> From: Siddhesh Poyarekar In-Reply-To: <87jynk48wz.fsf@tromey.com> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 4wVwX7MTDoVNipH3A04SSoYq1YrCEKNkIfmb6G9N0lM_1791994215 X-Mimecast-Originator: redhat.com Content-Language: en-US, en-CA, en-GB, en-IN Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On 10/14/26 11:08 AM, Tom Tromey wrote: >>> + Additionally, when GDB connects to a remote target, it will, by >>> + default, automatically download the executable and shared libraries >>> + from the remote system and parse them locally, without prompting the >>> + user. This means that the risks described above relating to parsing >>> + malformed executables also apply when performing remote debugging. >>> + If the remote target is untrusted, or the connection to the remote >>> + target is untrusted, malicious or malformed binaries could be served > >> This is a good guideline, but does not make clear if bugs in this >> processing will be treated as security issues. This is true for the >> line above as well, which this paragraph intends to augment - it warns >> the user that such behaviour is not good, but does not make a >> definitive statement whether bugs related to them will be treated as >> security issues or not. > > I think it's relatively clear given these paragraphs: > > GDB is not meant to be offered as a service (that is, offered > over an insecure connection to non-local users), and so denial of > service attacks targeting GDB itself, or other bugs that target > this use case, are not considered a security bug. > ... > Any issues that arise from running an untrusted program outside of a > secure environment are not security bugs in GDB. Any issues that > arise from running an untrusted program through GDB inside a secure > environment are only security bugs if GDB is required in order to > trigger the issue. It's probably this clause that applies instead of the second one though, since it's about loading an executable without running it: Any bug in GDB or gdbserver that can trigger arbitrary code execution without the program being debugged having been executed by a user command, is considered a security bug, e.g. if loading a program into GDB could trigger arbitrary code execution, then this is a security issue. except that the "if the remote target is untrusted" brings a new variable into the picture. The policy assumes a trusted connection (the first clause you quoted) but an untrusted target (the new clause), i.e. an untrusted endpoint, which makes it moot. This inconsistency leaves a gap in what's considered a security issue. Sid