[From nobody Thu May  7 12:01:05 2026
Received: (at 1135795-close) by bugs.debian.org; 7 May 2026 10:59:07 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-7.2 required=4.0 tests=BAYES_00,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HAS_BUG_NUMBER,
 RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 37; hammy, 150; neutral, 136; spammy,
 0. spammytokens: hammytokens:0.000-+--systemctl,
 0.000-+--UD:socket, 
 0.000-+--drop-in, 0.000-+--UD:Debian, 0.000-+--golovan
Return-path: &lt;sgolovan@gmail.com&gt;
Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:60540)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
 (Exim 4.96) (envelope-from &lt;sgolovan@gmail.com&gt;) id 1wKwRf-00FPtG-1l
 for 1135795-close@bugs.debian.org; Thu, 07 May 2026 10:59:07 +0000
Received: by mail-pg1-x530.google.com with SMTP id
 41be03b00d2f7-c6dd5b01e14so251703a12.0
 for &lt;1135795-close@bugs.debian.org&gt;; Thu, 07 May 2026 03:59:07 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1778151546; cv=none;
 d=google.com; s=arc-20240605;
 b=fcyuN0rhJMYc/0lONw+TEQwWAseeTne77I3FdJuNjmL1+TsJwVHOq1qEYya4Cmo4oQ
 qbihWRgBEErR8wDhalku6S6he8RYYGZWthE+VRaelBxZGlQ+4kGogF2VBivPJqVzfIu+
 sH+oBVhZm7Gu2dRU5je+LJeA53yPjmu+Zlo+GZDoGw2YNQlee9pmxghGbRyMJXSTlVoG
 XXyKgSxeKmEAxWGikzw9p/sfr47yY+RpB3QG8RL5A2kq3lYV/mZp8aw6ZUk0l5VTaUwx
 UZ7AEbn4TOw/l3lLx2xUP9iu1u/1xM6OdEGLz5XybQAxVU4uD9NmAMsIdPIvWNtuuiFr
 fErg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20240605; 
 h=content-transfer-encoding:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:dkim-signature;
 bh=6lMyLk7Ycdl9OAW0x/a5RMOMAdiuGsbF6d+ph9h2fzM=;
 fh=in0kiqIBwjw4t4sholTB4oMsUDEZVb2BvhZh0GlA+e4=;
 b=LIh+ONhzI2PZy8q2onymLo6iff+cAdFdk1yP/wW9wKgH08mRfmU2JIHV7/HQ7fZMKS
 pIQEd0f3pCM3kiQaFNsvyOd/PBUDd3dv5tR/zuZGNwpZakBhco3G+gwuuwwjyvnonY6C
 6sxQ7xINWcygMv5s0y0zaMCFw7BeO/wE97Y67TBxAXemfW8UdDjNnchBz96AVejMRbLa
 z1BPWrR6kwd0Rb8/awpTgeSxpBICm0I4yXzynyNaAwBEbRsMtuNk+echODbCVjFSP7pA
 bnzUKg9D/5dwhwncq1d1JiX99GjAYDBpChq+B+GZMlhyEoWt9CrQ/YVrjRZM6FRXBXMw
 hWDg==; darn=bugs.debian.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1778151546; x=1778756346; darn=bugs.debian.org;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=6lMyLk7Ycdl9OAW0x/a5RMOMAdiuGsbF6d+ph9h2fzM=;
 b=FO8BPS8JsO8jn+fZUXc7BQSnPcBSdcdy1IcMstWoQcjXbtybNr/9vsyX4BR2BIqXss
 5EvNUblH0raVINMPzy88rVgC/m3+p18++z4VhrCdF1m6o7cLq3HfnqczzMRBFBkOvcn4
 FFw+6Pnd/qK+Qvhf1IHwk3OlSyRb5tqYsXHAC0FDLLoXYg8bENZFs99/mbUYCveSoGs1
 7CCcH0xhPHFgooglurq/CvYW0khYhIjC/VUmiu6W7JQa2vpdGXjuxNY5hm1J0oJHVi3a
 9O6KKOUDsgL8IWRv3eo3C7nCMqf2N8g12GoFZ9CKJYq/0YkkXHh34Y0Arj7AodKRuy7w
 0b+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1778151546; x=1778756346;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=6lMyLk7Ycdl9OAW0x/a5RMOMAdiuGsbF6d+ph9h2fzM=;
 b=h8Z4PFSStnhz5rbhGibKo9Nu24xb4V69gUF9UI8bGQh/TnIIV/rz3Pv+9YilCeyxqx
 X7SEsz6c08Sd1sjj7L0LUiPFa6dMHJYG3GnpDaOujtjUEhTqoT8UtHHFmIlvTkL/AzKO
 LWn454xQm3JopJRuKjl9+xlK94MiWepaC8Nwpo7iw0ng/ECpwQZmDSqtDGK5Jx9L6rVT
 7KzeZL4ki+EWu1innWWS8nvbuObWTAClFJMJHvgAnpwgX1LNsOlQW35JWXPzHoA3aOZH
 F4gExhSNtJylNGMhF1noeTMFa2ZcD41avew8nJeYBfsBK51nMj52V53qAu/dFIyabP6m
 SNdA==
X-Forwarded-Encrypted: i=1;
 AFNElJ871+IOhrn+yGLTciDt38riaO/+6Gh+Ttxmcwo+NQzYWoUy2dhLYqRYG2WnbwDWGEXMw/KVIjSKJUoEoY39@bugs.debian.org
X-Gm-Message-State: AOJu0YzrP5v+AgUOigaQPK6q9uVt5YScpKw5LxZAWGQsXFtAXLKG+iFw
 u1BMWzpDBaAgG3tEwCgFwevaZ+23+T7Tu7O9iwDExL7eAv1WmAG94ucKe32aFGNfGfU6bKpkuwJ
 6qjrzo4DHB8lGyxV9b9wCDd1j2EFcpvDzu+hJ
X-Gm-Gg: AeBDiesCuqV/IA6yWk0+QjbPYmIKd4iPg9luxtkbmT/cYpzIntmCFhdPgz5nV2tfk9R
 IqqZzViolxsxX3PZHkYW9Itrsq1Vurv4h0Xzkunnada22QjHD22fdf30vib7kqF5q+h47hXvaw2
 l2/UauT0Z6gQB/6A6fuu7bJH4q80Dlo25/7Du9LVCfDa51A/46mDgR5vf/CxAq6FxadVadfQva0
 gn8ye5P1M/b2N1qsCQ2veMrz9ahm1A3hROoJ3DezS9Uo5c1AOddFMoededxeaV2FaNbq7R0WHN8
 XucNabRZRaE37ZOp
X-Received: by 2002:a05:6a20:9185:b0:398:7855:3e33 with SMTP id
 adf61e73a8af0-3aa5ab87a3bmr7789299637.56.1778151546184; Thu, 07 May 2026
 03:59:06 -0700 (PDT)
MIME-Version: 1.0
References: &lt;CAOq2pXFuE-9e8iuUWaKk7v7eLjgP0g6pgHysH+NykQjRvTkz8g@mail.gmail.com&gt;
 &lt;284ef9df0bf17daa164f6cf68220de14@riseup.net&gt;
 &lt;17523398e58dcc6e2a9e42fc0099fada@riseup.net&gt;
 &lt;c87461626fe2f870464da923a66c989d@riseup.net&gt;
In-Reply-To: &lt;c87461626fe2f870464da923a66c989d@riseup.net&gt;
From: Sergei Golovan &lt;sgolovan@gmail.com&gt;
Date: Thu, 7 May 2026 13:58:54 +0300
X-Gm-Features: AVHnY4LnXXK_YWAfcDWA2wb6FOzLkGd8C9Bfq1cbE7prHtSRLlWXGkLUlnRewrA
Message-ID: &lt;CAOq2pXEn89pkjNRxc7Wm1-i9z6+z-SXd_HUdzC2B1BsgVJzzJg@mail.gmail.com&gt;
Subject: =?UTF-8?Q?Re=3A_Bug=231135795=3A_=5BPkg=2Derlang=2Ddevel=5D_Bug=231135795=3A_epm?=
 =?UTF-8?Q?d=2Esocket_fails_to_bind_to_127=2E0=2E0=2E1=3A4369_with_=E2=80=9CAddress_alr?=
 =?UTF-8?Q?eady_in_use=E2=80=9D_even_when_nothing_is_listening?=
To: marvology@riseup.net, 1135795-close@bugs.debian.org
Content-Type: text/plain; charset=&quot;UTF-8&quot;
Content-Transfer-Encoding: quoted-printable

Hi!

On Thu, May 7, 2026 at 1:15=E2=80=AFAM &lt;marvology@riseup.net&gt; wrote:
&gt;
&gt; &gt; It's reasonable if you don't use distributed Erlang.
&gt;
&gt; Not sure I understand. When I ran &quot;apt install ejabberd&quot;, it
&gt; auto-installed Erlang via apt.
&gt;

As far as I know, ejabberd is a distributed XPP server, even if there
is a single
node, ejabberd uses distributed Erlang.

&gt;
&gt; &gt; I can reproduce this, as far as I investigated, it is caused by the opt=
ion
&gt; &gt; BindIPv6Only=3Dboth
&gt; &gt; in the socket file. When systemd binds to IPv6 address, it also listens=
 to IPv4
&gt; &gt; packets, which makes address already in use.
&gt;
&gt; I was finally able to listen on &quot;127.0.0.1&quot; only, because opening 4369
&gt; publicly is asking for trouble[1].

I guess you should file a bugreport for Erlang developers for that. As for =
now
I don't know about any exploitable vulnerability in epmd.

&gt;
&gt; # ss -tulpn|grep epmd
&gt; tcp   LISTEN 0      4096       127.0.0.1:4369       0.0.0.0:*
&gt; users:((&quot;epmd&quot;,pid=3D2370007,fd=3D3),(&quot;systemd&quot;,pid=3D1,fd=3D199))
&gt;
&gt; To do this, I had to:
&gt;
&gt; 1. Run: systemctl edit epmd.socket
&gt; 2. Add 2 lines line this:
&gt;
&gt; ### Editing /etc/systemd/system/epmd.socket.d/override.conf
&gt; ### Anything between here and the comment below will become the contents
&gt; of the drop-in file
&gt;
&gt; [Socket]
&gt; ListenStream=3D
&gt; ListenStream=3D127.0.0.1:4369

You've found another way of teaching epmd.socket to listen only on
12.7.0.0.1, good.

&gt; &gt; Anyway, I don't think that's a bug in epmd.socket. It works as intended=
.
&gt;
&gt; I think there is a bug because when I edit like below, epmd failed to
&gt; restart.
&gt;
&gt; [Socket]
&gt; ListenStream=3D127.0.0.1:4369

I don't think that I can account for all possible ways the users chose
to override
the default socket settings. This particular way fails, but there are
others, they
are documented in /usr/share/doc/erlang-base/README.Debian.

&gt;
&gt; I need to add &quot;ListenStream=3D&quot; - unsure if this is a correct fix but som=
e
&gt; people mentioned this on other forums.

No, you don't. Please, read the readme in
/usr/share/doc/erlang-base/README.Debian,
it explains how to make the epmd socket listen only on the lo
interface (localhost).

As for now, I'm closing this bugreport.

Cheers!
--=20
Sergei Golovan]