CVE-2026-144473: Knot DNS 3.4.1 before 3.5.9 and 3.6.x before 3.6.1 Local Privilege Escalation via Auto-Generated TLS Key Symlink
Knot DNS 3.4.1 before 3.5.9 and 3.6.x before 3.6.1 contain a link following vulnerability in selfkey() in src/libknot/quic/tlscommon.c that, when QUIC or TLS is enabled without a configured certificate, creates the auto-generated private key file in the KASP database directory with open() without ONOFOLLOW or OEXCL and then changes its owner to the configured server user with fchown(). Local attackers who can write to the KASP database directory, such as the knot service account, can place a dangling symbolic link at the key path so that knotd, when started as root before it drops privileges, creates a file at an arbitrary location owned by the knot user, leading to privilege escalation to root.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.5.9 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.6.1
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Affected deployments run Knot DNS 3.4.1 through before 3.5.9, or a 3.6.x release before 3.6.1, with QUIC or TLS enabled and no certificate explicitly configured. The issue also requires knotd to start as root before dropping privileges.
What access does an attacker need to exploit it?
An attacker needs local access that allows writing to the KASP database directory. The knot service account is an example of an account with the required access.
How does exploitation lead to root-level impact?
The attacker places a dangling symbolic link at the auto-generated key path. When knotd starts as root, it follows the link to create a file at an attacker-chosen location and changes that file's ownership to the configured server user, which can be leveraged for privilege escalation.
What configuration change can reduce exposure before an update is applied?
Configure a TLS certificate so Knot DNS does not need to auto-generate the private key. Also restrict write access to the KASP database directory to prevent untrusted local users from placing symbolic links there.