From nobody Sat Jan 11 05:34:27 2025 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 4YVRzS3FH7z5lJJq for ; Sat, 11 Jan 2025 05:34:28 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YVRzS24YXz4jNn for ; Sat, 11 Jan 2025 05:34:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736573668; 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=H4inzCYz8mzWX1cVaDnpNyoycmBUSvvAZ883TuiAxXA=; b=gbqAfUMxjnRB7+GxYMH0i+EkwspcrR19Va2JXmVaWJB6Uar+yowqTKN6347AdUEiJDDLNW DH7HuOrJOHysECTZvNzcONoqx8tNeONEsfkV44pvPLk18ywuFkA4eihDvpO6AIjIcdw3cy mruuxInhOyMvnJwO2KZ2Zc3oL9kfxFwE9oGqUKPGYjRndTZj/HKXsZ3ot/WXdBxJDz63k0 uUdKqnz892Qkpa4YbDOB5POyLi/xd92gthfYfGSFS1af+LQjiaCNsglY5IRdAd3GcUmsma sGu2IrsWPwaW03V8U7VQ8CVHltW2kyFI1U6wUbhTIxsEvWtr0BZz+lBue7HPjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736573668; a=rsa-sha256; cv=none; b=cskiN6gZ7nSb2qhve/TKSSFRvrgTbESF7tlXiphzF5aqq2T2PLHirss6qqw4CK5Rm1TE0H e3JRuufpDXfhfIKxCARpHznQ1VE+FFNBRk10SzFoUiGj6VKMXWD4HXmzQ+KngCsNFAOLTb bpl6pvnCn0/xEXZSJ50OyDwvsnUq19xLmBLjk+41gyiiIrB+XOlsFsKhp8oXbtTYSWridR 2xu67/3zq2PQpR2AJEKwKyY5armdZSgWT5EZJ7ywAPvgxxBIFFr/Uwb8Xec2l5Dglk9hvi ut0BQWUaUV129qsNf9dmC2wnI9jJ/H0dYhv+tuUyEEsCZXLcvb3hQeV5TkDTGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YVRzS1Sfrzm8V for ; Sat, 11 Jan 2025 05:34:28 +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 50B5YSu5092720 for ; Sat, 11 Jan 2025 05:34:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50B5YSfa092719 for bugs@FreeBSD.org; Sat, 11 Jan 2025 05:34:28 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 283909] bsnmpget/walk: coredump when SNMPPASSWD is empty Date: Sat, 11 Jan 2025 05:34:27 +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: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283909 --- Comment #6 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D3999a860d6e899de98b1025317d2d0ef1= f83255f commit 3999a860d6e899de98b1025317d2d0ef1f83255f Author: Gleb Smirnoff AuthorDate: 2025-01-11 05:08:02 +0000 Commit: Gleb Smirnoff CommitDate: 2025-01-11 05:08:02 +0000 libbsnmptools: avoid uninitialized snmptoolctx->passwd with empty passw= ord The removed check left snmptoolctx->passwd pointer to uninitialized memory. Always calling strlcpy(3) would guarantee that with empty password it will point to empty string. Submitted by: markj PR: 283909 usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=