CVE-2026-124305: Net::Server::PreFork versions through 2.018 for Perl let local users stop the server accepting connections by locking a lock_file that other users can read
Net::Server::PreFork versions through 2.018 for Perl let local users stop the server accepting connections by locking a lockfile that other users can read.
With lockfile set, each PreFork and PreForkSimple child opens the file for writing with default permissions, mode 0666 less the umask, which is usually readable by other users. Outside Windows the children serialize accept with an exclusive flock on that file, and flock needs only a read-only handle.
A local user who can open the file and hold the lock keeps every child from accepting connections for as long as they hold it. A server without lockfile uses a temporary lock file with mode 0600 and is not affected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Unset lock_file; servers without it use a temporary lock file with mode 0600 and are not affected.
Net::Server::PreFork lock_file = unset
Event History
Frequently Asked Questions
Which deployments are exposed to this denial of service?
The issue affects Net::Server::PreFork and PreForkSimple deployments that explicitly set lock_file and create it with permissions that allow another local user to read it. A deployment that does not set lock_file uses a temporary lock file with mode 0600 and is not affected.
What access does an attacker need?
An attacker needs local access to the system and the ability to open the configured lock file for reading. They can then hold an exclusive flock on that file, preventing all children from accepting connections.
Does this affect Windows systems?
The described accept serialization using an exclusive flock occurs outside Windows. The provided information does not identify Windows as affected.
What can be done if updating is not immediately possible?
Avoid configuring lock_file, so the server uses its temporary mode-0600 lock file instead. If lock_file must be used, restrict its permissions so untrusted local users cannot read and open it.