From nobody Tue May 10 10:43:38 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 CCA281AC6372 for ; Tue, 10 May 2022 10:43:38 +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 4KyF563klkz4l8r for ; Tue, 10 May 2022 10:43:38 +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 605EB23D94 for ; Tue, 10 May 2022 10:43:38 +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 24AAhc0d098282 for ; Tue, 10 May 2022 10:43:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24AAhcYp098281 for bugs@FreeBSD.org; Tue, 10 May 2022 10:43:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 263893] pam_exec.so in auth stack with expose_authtok option makes su segfault Date: Tue, 10 May 2022 10:43:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: felix@palmen-it.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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=1652179418; 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; bh=1iUItKu8Bi67QIcskl2gOvM9vjYS6JjWZOAIVsanQLM=; b=JBRN4OvDvzXbG72RetDFYfwUJ2G0J6yQba7VSEZr+XfuKx9Z2k5fNjoIDJxpHN3976vih+ 5iSqTFpjHloB+CirIjV6NdL0dEk/xwv+Fi7pezFn6fyVxjoT2l/dsCPxWUnbidIbAoqrSq 5J0W15oKMLD8eQ7fVgVe+nEj5I2tF+Pwt8SPz3hBoTUQ5/60iz9s0ire9zwVz0RDLb3PQx eIFkV148JUryhIGTLHMmSpDYRHGuPaZg36v8q48nWXRjVhTCe4yA2q8Li7aS0JEIMAOPgY NdWIUR8GjWubF2iqu9bl36d08r+gjZObSHoi1FE4WsYvZFqpSriINNPH+kyUuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652179418; a=rsa-sha256; cv=none; b=m6RfKUlr2ik1Q7RYjY5gZ0EUqSo5c/DPDKSGX04W8+hR1byJwcYs9v3ZTrc74awkPT6YQP WpBZvA7WDZuadyi32/PL5Uo5YkOQqv4LAj8Ewr6su/ktwV/84Es9o+k1AIcM9QFYjAfjkj WzLjRATbrQYBFL3PcquQA8lNvuCGw5uQnisF0yuprMPtIlbp+WAVvYprdQSXzptsQjASnw ik/wH8EaVMV1gWOUK/wD+2EhpAuaEVm5eshPC5athAOtvpL3wwzTcCzR1d102+kK7XmgNk GLsdWGN747Mp2lxQ64pELTpUBqhBmC9CrHT4nsQ6JtZ/6n8YPgOAAUgWG57Grw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263893 Bug ID: 263893 Summary: pam_exec.so in auth stack with expose_authtok option makes su segfault Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: felix@palmen-it.de su(1) segfaults when there's pam_exec.so in the "auth" stack with the option expose_authtok. To reproduce, use the following "auth" config in /etc/pam.d/system: auth sufficient pam_exec.so expose_authtok /usr/bin/false auth required pam_unix.so use_first_pass null= ok When removing the 'use_first_pass' option from 'pam_unix.so', su asks for a password a second time (as expected), but still segfaults. When removing the 'expose_authtok' option from 'pam_exec.so', the segfault = is gone. A lot of (probably irrelevant) context is here: https://forums.freebsd.org/threads/su-segfaults-when-adding-some-custom-pam= _exec-to-the-auth-stack.85112/ --=20 You are receiving this mail because: You are the assignee for the bug.=