[An on-line version of this announcement will be available at
https://www.postfix.org/announcements/postfix-3.11.8.html]
This release addresses medium-impact problems that need to be fixed
as some enable local information disclosure or SMTP client DOS.
The fixes below, and more, were also released in the unstable version
postfix-3.12-20261117.
In addition to updated releases for the supported Postfix versions
3.8-3.11, releases will also be available for the out-of-support
Postfix versions 3.5-3.7. NOTE: these do not include the patches
for out-of-support Postfix versions that have been issued for "large
SMTP inputs (June 2026)", and for "TLSA parsing (June 2026)". Those
patches still need to be applied.
Tidbit: more than half of the 12 defects below date back 25-29
years.
Incompatible changes
--------------------
* [TLS protocol configuration syntax change] Relevant if your
configuration contains ">=" or "<=" followed by SPACE. To
avoid breaking configurations, Postfix will now treat ">= SPACE
protocol-name" as ">=protocol-name, and "<= SPACE protocol-name" as
"<=protocol-name". The forms "<=" or ">=" (i.e. not attached to a
protocol name) were treated as "<=0x0" or ">=0x0" (i.e. no upper or
lower bound) and are now treated as syntax errors. Solution: look for
"<=" or ">=" followed by SPACE and correct the syntax.
* [SMTP client DNS total time limit] Relevant if you are sending mail
over very slow network connections to domains with a huge number
of SMTP server IP addresses. The Postfix SMTP client now enforces a
100-second time limit on SMTP server IP address lookups per delivery
request. This reduces the impact from denial of service attacks in
which a hostile DNS operator returns up to 100 MX host names and
deliberately lets each address lookup request time out.
* [:include: /path/to/file read permission] Relevant if your root-owned
aliases file contains ":include:/path/to/file", where "/path/to/file"
is a symlink or hardlink to a file with a different owner than the
"/path/to" directory. The Postfix local delivery agent will now
defer delivery if the "/path/to" owner has no permission to read
"/path/to/file". Workaround: make /path/to/file world-readable.
Bugfixes
--------
Local information leak:
* (defect introduced: Postfix beta, date: 19981104): A compromised
mailing list manager could replace a local(8) :include: file,
referenced in a root-owned alias database, with a hardlink or symlink
to a restricted file (not world readable), and reveal that file's
content in bounce messages. Reported by Anton Klingspor assisted
with AI, fixed by Wietse.
Denial of service:
* (defect introduced: before Postfix alpha, date: 19970427): A hostile
DNS operator could return a large number of MX hostnames to the
Postfix SMTP client, and deliberately let each SMTP server IP address
lookup request time out. Problem reported by coredump.ws assisted
by pf-outbound. Fix by Wietse: stop making IP address queries after
their combined elapsed time exceeds 100s per delivery request.
* (defect introduced: Postfix before alpha, date: 19971211): The
Postfix SMTP client did not count an empty reply line towards the
reply size limit, but still added an empty line entry to the in-memory
session history. An SMTP server that replies with a stream of empty
lines could run an SMTP client process out of memory and degrade
performance of concurrent deliveries. Problem report by macintog,
fix by Wietse and macintog.
Panic, crash:
* (defect introduced: Postfix 3.6, date: 20200718): Unnecessary
panic() while parsing a TLS policy with a 1-character "match="
fingerprint. Report and fix by coredump.ws assisted by Claude Opus 5.5.
* (defect introduced: Postfix alpha, date: 19980804): Null pointer read
error in "sendmail -bs" (stand-alone SMTP server mode) while rejecting
a large SIZE parameter value in a MAIL FROM command. Problem report
and fix by coredump.ws assisted by Claude Opus 5.5.
Milter support:
* (defect introduced: Postfix 3.11, date: 20251104): With Milter
support enabled, and "non_empty_end_of_header_action = add_header"
(not the default), Postfix wrote the "MIME-Error:" header AFTER a dummy
"header append" PTR record. This caused Postfix's Milter client to
treat that header as body content instead of header content. Problem
and fix by coredump.ws, assisted by Claude Opus 5.5.
* (defect introduced: Postfix 2.3, date: 20060511): When
"milter_default_action = accept", and a Milter connection was lost or
aborted while a "replace body" request was in progress, the Postfix
cleanup daemon committed the queue file in an undefined state (with
pre-replacement body content which would still be consistent with the
'default accept' policy, or with partial new content which caused
the message to end up in the "corrupt" queue). Reported by OpenAI
Security and other parties. Fix by Wietse (defer, instead of accept).
* Bugfix (defect introduced: Postfix 2.5, date: 20071123): When Postfix
negotiated a new non_smtpd_milters connection and the Milter sent
a list of macro names, Postfix replaced a previously received list
from that Milter without freeing the old list's memory, resulting in
a small memory leak. If the Milter did not send a per-milter macro
name list over a new connection, Postfix reused the list that was
received over an earlier connection with that same Milter. Report
and fix by coredump.ws assisted by Claude Opus 5.5.
Other TLS support:
* Bugfix (defect introduced: Postfix 3.6, date: 20200725): when
parsing TLS protocol bounds, Postfix treated a bare "<=" or ">="
(i.e. not attached to a protocol name) as "<=0x0" or ">=0x0"
(i.e. no upper or lower bound). These forms are now treated as a
syntax error. Except, to avoid breaking existing configurations,
Postfix will treat ">= SPACE protocol-name" as ">=protocol-name, and
"<= SPACE protocol-name" as "<=protocol-name". Problem reported by
coredump.ws, assisted by Claude Opus 5.5. Fix by Wietse.
SMTPUTF8 protocol support (SMTP client):
* (defect introduced: Postfix 3.0, date: 20140715): With "smtputf8_enable
= yes" (default setting) the Postfix SMTP client could send
unencoded content in the ORCPT parameter while sending RCPT TO,
because the internal uxtext_quote() function failed to propagate
an error condition. This bug is unlikely in practice, because the
Postfix SMTP server accepts non-UTF8 content in an ORCPT parameter
only with "smtputf8_enable = no" (not a default setting). Reported
by coredump.ws, found with fuzzing.
Other:
* (defect introduced: before Postfix alpha, date: 19970514): Whitespace
in an envelope address domain portion caused corruption of the From_
line that separates messages in a mailbox file. Problem reported
by coredump.ws with assistance from Claude Opus 5.5. Fix by Wietse:
replace the domain portion with "domain.invalid".
* (defect introduced: Postfix 1.0 and various later): A nested
"MAIL FROM" command could reset ESMTP parameters for the still
active "MAIL FROM" transaction; ESMTP parameters specified in a
rejected "MAIL FROM" command could leak into the next "MAIL FROM"
transaction. Fixed by resetting "MAIL FROM" ESMTP parameters after
the check for nested "MAIL FROM" commands, and by adding missing
SIZE and AUTH initializations. Problem and fix by coredump.ws with
Claude Opus 5.5.
You can find the updated Postfix source code on the mirrors listed
at https://www.postfix.org/.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]