OpenSMTPD Local Denial-of-Service Vulnerability via UNIX Domain Socket

Vulnerability

A denial-of-service vulnerability has been identified in OpenSMTPD version 7.7.0p0, packaged for openSUSE Tumbleweed. This vulnerability allows local users to crash the OpenSMTPD service by exploiting a world-writable UNIX domain socket used for inter-process communication. The issue arises because the socket, located at '/var/run/smtpd.sock', is writable by all users, enabling them to send malformed messages that cause the 'smtpd: control' daemon to terminate unexpectedly. Additionally, there is a related memory leak issue in the socket handling code that remains unaddressed.

Impact

Exploitation of this vulnerability leads to a local denial-of-service condition, causing the OpenSMTPD service instance to shut down completely. Furthermore, after the main issue is fixed, a memory leak problem allows unprivileged users to gradually consume memory in the 'smtpd: control' instance, causing a delayed denial-of-service effect.

Reproduction

The vulnerability can be reproduced using a Python script that sends a message with an excessive header length to the 'smtpd.sock' UNIX domain socket. This malformed message triggers an error in the 'smtpd' daemon, causing it to exit and take down the entire OpenSMTPD service instance.

Remediation

Upstream has released a bugfix for the main denial-of-service issue, which will be included in the upcoming OpenSMTPD version 7.8.0. Users can also apply a temporary workaround by adjusting the permissions of the 'smtpd.sock' socket to restrict access, although this may interfere with some functionalities.

Added: Nov 20, 2025, 4:18 PM
Updated: Nov 20, 2025, 5:24 PM

Vulnerability Rating

Custom Algorithm
spread
3.4
impact
2.5
exploitability
5.4
remediation
8.3
relevance
1.1
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.