🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
5 messages
5 total messages Started by Simon Cozens Thu, 26 Nov 2026 09:00
Bug#1155425: exim4: internal error in string_catn using $header_subject in filter file
#6280
Author: Simon Cozens
Date: Thu, 26 Nov 2026 09:00
64 lines
4723 bytes
Package: exim4
Version: 4.98.2-1+deb13u6
Severity: normal
X-Debbugs-Cc: team@security.debian.org

After the security upgrade this morning, mail stopped being delivered through
my filter file. I narrowed this down to the line

logwrite "$header_from::$header_subject::Accepting"

exim logs showed the following during processing this logwrite:

07:47:45  2349 LOG: MAIN PANIC DIE
07:47:45  2349   internal error in string_catn (ptr 47 size -8324541)
2026-11-26 07:47:45 1xWUAU-000000000LT-2Qpm internal error in string_catn (ptr 47 size -8324541)
2026-11-26 07:47:45 1xWUAU-000000000LT-2Qpm internal error in string_catn (ptr 47 size -8324541)
07:47:45  2348 rda_interpret: subprocess yield=8 error=NULL
07:47:45  2348 LOG: MAIN PANIC
07:47:45  2348   internal problem in userforward router (recipient is XXX): failure to transfer data from subprocess: status=0100 readerror='Invalid argument'

Removing the $header_subject allowed mails to be delivered. This happened
for multiple mails, even those with very simple ASCII subjects.

-- Package-specific info:
Exim version 4.98.2 #2 built 11-Nov-2026 17:36:59
Copyright (c) University of Cambridge, 1995 - 2018
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2024
Hints DB:
 Berkeley DB: Berkeley DB 5.3.28: (September  9, 2013)
Support for: Content_Scanning crypteq Expand_dlfunc iconv() IPv6 PAM Perl GnuTLS move_frozen_messages TLS_resume DANE DKIM DNSSEC ESMTP_Limits ESMTP_Wellknown Event I18N OCSP PIPECONNECT PRDR PROXY Queue_Ramp SOCKS SPF SRS TCP_Fast_Open
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 passwd pgsql sqlite
Authenticators: cram_md5 cyrus_sasl dovecot external plaintext spa tls
Routers: accept dnslookup ipliteral iplookup manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Malware: f-protd f-prot6d drweb fsecure sophie clamd avast sock cmdline
Fixed never_users: 0
Configure owner: 0:0
Size of off_t: 8
Configuration file search path is /etc/exim4/exim4.conf:/var/lib/exim4/config.autogenerated
Configuration file is /var/lib/exim4/config.autogenerated

-- System Information:
Debian Release: 13.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 7.1.9-x86_64-linode176 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages exim4 depends on:
ii  debconf [debconf-2.0]  1.5.91
ii  exim4-base             4.98.2-1+deb13u6
ii  exim4-daemon-heavy     4.98.2-1+deb13u6

exim4 recommends no packages.

exim4 suggests no packages.

-- debconf information:
  exim4/drec:
Bug#1155425: exim4: internal error in string_catn using $header_subject in filter file
#6328
Author: Andreas Metzler
Date: Thu, 26 Nov 2026 18:00
49 lines
3623 bytes
On 2026-11-26 Simon Cozens via Pkg-exim4-maintainers <pkg-exim4-maintainers@alioth-lists.debian.net> wrote:
> Package: exim4
> Version: 4.98.2-1+deb13u6
> Severity: normal
> X-Debbugs-Cc: team@security.debian.org

> After the security upgrade this morning, mail stopped being delivered through
> my filter file. I narrowed this down to the line

> logwrite "$header_from::$header_subject::Accepting"

> exim logs showed the following during processing this logwrite:

> 07:47:45  2349 LOG: MAIN PANIC DIE
> 07:47:45  2349   internal error in string_catn (ptr 47 size -8324541)
> 2026-11-26 07:47:45 1xWUAU-000000000LT-2Qpm internal error in string_catn (ptr 47 size -8324541)
> 2026-11-26 07:47:45 1xWUAU-000000000LT-2Qpm internal error in string_catn (ptr 47 size -8324541)
> 07:47:45  2348 rda_interpret: subprocess yield=8 error=NULL
> 07:47:45  2348 LOG: MAIN PANIC
> 07:47:45  2348   internal problem in userforward router (recipient is XXX): failure to transfer data from subprocess: status=0100 readerror='Invalid argument'

> Removing the $header_subject allowed mails to be delivered. This happened
> for multiple mails, even those with very simple ASCII subjects.
[...]


Hello Simon,

Can you provide a failing subject? I tried in vain with either plain
ASCII, unencoded 8bit chars or rfc-2047 encoded latin1.

I have used this trivial acl to check, which was not enough to
reproduce the issue:

acl_check_data:
  warn log_message = "$header_from::$header_subject::Accepting"

  deny message = aborting

Did the respective logwrite succeed on your side for the messages which
were not delivered?

> Architecture: i386 (x86_64)
> Foreign Architectures: amd64

I understand you are running an i386 system and use some amd64 binaries.
- Was the breaking exim an amd64 or an i386 one?

cu Andreas
Bug#1155425: exim4: internal error in string_catn using $header_subject in filter file
#6549
Author: Andreas Metzler
Date: Sat, 28 Nov 2026 12:10
55 lines
4165 bytes
On 2026-11-26 Andreas Metzler <ametzler@bebt.de> wrote:
> On 2026-11-26 Simon Cozens via Pkg-exim4-maintainers <pkg-exim4-maintainers@alioth-lists.debian.net> wrote:
>> Package: exim4
>> Version: 4.98.2-1+deb13u6
>> Severity: normal
>> X-Debbugs-Cc: team@security.debian.org

>> After the security upgrade this morning, mail stopped being delivered through
>> my filter file. I narrowed this down to the line

>> logwrite "$header_from::$header_subject::Accepting"

>> exim logs showed the following during processing this logwrite:

>> 07:47:45  2349 LOG: MAIN PANIC DIE
>> 07:47:45  2349   internal error in string_catn (ptr 47 size -8324541)
>> 2026-11-26 07:47:45 1xWUAU-000000000LT-2Qpm internal error in string_catn (ptr 47 size -8324541)
>> 2026-11-26 07:47:45 1xWUAU-000000000LT-2Qpm internal error in string_catn (ptr 47 size -8324541)
>> 07:47:45  2348 rda_interpret: subprocess yield=8 error=NULL
>> 07:47:45  2348 LOG: MAIN PANIC
>> 07:47:45  2348   internal problem in userforward router (recipient is XXX): failure to transfer data from subprocess: status=0100 readerror='Invalid argument'

>> Removing the $header_subject allowed mails to be delivered. This happened
>> for multiple mails, even those with very simple ASCII subjects.
> [...]


> Hello Simon,

> Can you provide a failing subject? I tried in vain with either plain
> ASCII, unencoded 8bit chars or rfc-2047 encoded latin1.

> I have used this trivial acl to check, which was not enough to
> reproduce the issue:

> acl_check_data:
>   warn log_message = "$header_from::$header_subject::Accepting"

>   deny message = aborting

> Did the respective logwrite succeed on your side for the messages which
> were not delivered?

>> Architecture: i386 (x86_64)
>> Foreign Architectures: amd64

> I understand you are running an i386 system and use some amd64 binaries.
> - Was the breaking exim an amd64 or an i386 one?

FWIW I cannot reproduce on i386 either.

cu Andreas
-- 
"You people are noisy," Nia said.
I made the gesture of agreement.
Bug#1155425: exim4: internal error in string_catn using $header_subject in filter file
#6635
Author: Christian G. Warden
Date: Sat, 28 Nov 2026 22:50
29 lines
2840 bytes
Here is a minimal reproduction:

$ printf 'To: test@example.com\n\nTest message\n' >/tmp/exim-test.eml
$ exim4 -bem /tmp/exim-test.eml '$h_to:,'
2026-11-28 16:27:15 internal error in string_catn (ptr 16 size -5560914)

When testing against a queued message, the following expansions succeed:

exim4 -Mset MESSAGE_ID -be '$h_to:'
exim4 -Mset MESSAGE_ID -be '$h_from:'

The following fail:

exim4 -Mset MESSAGE_ID -be '$h_to:,'
exim4 -Mset MESSAGE_ID -be '$h_from:,'
exim4 -Mset MESSAGE_ID -be '$h_to:,$h_cc:'

Concatenating raw headers succeeds:

exim4 -Mset MESSAGE_ID -be '$rh_to:,$rh_cc:'

In my case, the offending line in .forward was a condition of the form:

if foranyaddress $h_to:,$h_cc: (...)

This prevented all incoming mail delivery. Commenting out this rule restored
delivery.

Christian
Bug#1155425: exim4: internal error in string_catn using $header_subject in filter file
#6657
Author: Andreas Metzler
Date: Sun, 29 Nov 2026 07:00
24 lines
2576 bytes
Control: forwarded -1 https://code.exim.org/exim/exim/issues/3267
Control: found -1 4.100.1-5

On 2026-11-28 "Christian G. Warden" <cwarden@xerus.org> wrote:
> Here is a minimal reproduction:

> $ printf 'To: test@example.com\n\nTest message\n' >/tmp/exim-test.eml
> $ exim4 -bem /tmp/exim-test.eml '$h_to:,'
> 2026-11-28 16:27:15 internal error in string_catn (ptr 16 size -5560914)
[...]

Thank you very much Christian! I was able to reproduce and have forwarded
upstream. It is not Debian specific but also a regression in in 4.100.2

This requires
* i386 (I have not checked on other 32bit archs, it does not fail on
  amd64)
* Building with 
  env CFLAGS="`getconf LFS_CFLAGS`"

cu Andreas
-- 
"You people are noisy," Nia said.
I made the gesture of agreement.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads