REDHAT-BUG-2525567: High severity Dovecot dovecot vulnerability
When mailmaxuseripconnections is set (default 10) and reached, submission-login can crash with epoll() panic caused by file descriptor handling issues. If running in high-security mode (default for community releases), only the new submission connection gets terminated. If running in high-performance mode (default for Pro releases), all connections handled by the submission-login process will be terminated. The crashes can cause failure for user to send a message, or it can cause duplicate messages to be sent. If TLS is not used (in the backend server processing the submission), duplicate deliveries cannot happen, because the crash can only happen at AUTH stage. Limit the number of connections handled by single submission-login process. This has a performance impact though. Update to non-vulnerable version. No publicly available exploits are known.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Limit the number of connections handled by a single submission-login process using mail_max_userip_connections.
submission-login mail_max_userip_connections
Event History
Frequently Asked Questions
Which deployments have the broadest connection impact?
In high-performance mode, which is the default for Pro releases, a crash terminates all connections handled by the affected submission-login process. In high-security mode, the default for community releases, only the newly accepted submission connection is terminated.
What condition must occur before the failure is triggered?
mail_max_userip_connections must be configured and its limit reached; the stated default limit is 10. The failure occurs in submission-login during file descriptor handling.
What can be done while waiting to update?
Limit the number of connections handled by each submission-login process, accepting the associated performance impact. Updating to a non-vulnerable version is also recommended.
When can duplicate message delivery occur?
Crashes can cause duplicate messages, but duplicate delivery cannot occur when TLS is not used by the backend server processing submission because the crash can only happen during the AUTH stage.