Ubuntu patches OpenDKIM header-forgery and symlink flaws via ESM for 16.04 through 22.04 LTS
OpenDKIM failed to strip forged Authentication-Results headers, letting remote senders spoof DKIM validation to downstream filters, and the fix ships only through Ubuntu Pro ESM for four LTS releases.
Summary
Ubuntu published USN-9389-1 on 2 December 2026, fixing two security issues in OpenDKIM, the milter implementation of DomainKeys Identified Mail used to sign and verify mail at the MTA boundary. The advisory covers Ubuntu 16.04 LTS, 18.04 LTS, 20.04 LTS and 22.04 LTS, with corrected opendkim packages ranging from 2.10.3-3ubuntu0.1~esm1 on xenial to 2.11.0~beta2-6ubuntu0.1~esm1 on jammy.
The more consequential flaw, CVE-2022-48521, is that OpenDKIM did not properly remove forged Authentication-Results header fields from messages. A remote attacker could therefore make a message with a forged sender address appear to carry a valid DKIM signature to any program that trusted the Authentication-Results headers OpenDKIM added. The second issue, CVE-2020-35766, concerns a predictable temporary file name in the OpenDKIM library test suite, which a local attacker could exploit via a symlink attack to escalate privileges if that test suite were run. All four fixes are delivered through Ubuntu Pro's ESM Apps channel, and the advisory notes a community fix might become publicly available later.
What USN-9389-1 changes in OpenDKIM
- Header sanitization (CVE-2022-48521): OpenDKIM is a milter that inserts Authentication-Results headers after evaluating DKIM signatures; the flaw is that pre-existing forged Authentication-Results fields were not stripped, so downstream spam and phishing filters could read attacker-supplied verdicts as if OpenDKIM had produced them.
- Trust boundary: The vulnerability is remote and unauthenticated, affecting any mail flow where a later stage (MTA policy, spam filter, or mailbox rule) consumes Authentication-Results rather than re-verifying the signature itself.
- Symlink race (CVE-2020-35766): The library test suite wrote to a predictable temporary file name, allowing a local attacker to pre-place a symlink and redirect the write, with privilege escalation possible when the suite runs with elevated rights.
- Package versions: Fixed builds are opendkim 2.11.0~beta2-6ubuntu0.1~esm1 (22.04 jammy), 2.11.0~beta2-1ubuntu0.1~esm1 (20.04 focal), 2.11.0~alpha-11ubuntu0.1~esm1 (18.04 bionic) and 2.10.3-3ubuntu0.1~esm1 (16.04 xenial).
- Delivery channel: All four releases receive the fix through Ubuntu Pro ESM Apps, not the standard archive, so a plain apt upgrade on an unsubscribed system will not pull the patched opendkim.
Why it matters
OpenDKIM sits directly in the mail authentication path for self-hosted and small-provider mail servers, and a forged Authentication-Results header undermines the DMARC and spam-filtering chains that many administrators rely on without re-checking signatures. Because the corrected packages are ESM-only across 16.04 through 22.04, operators of long-lived mail relays must confirm Ubuntu Pro coverage or plan an upgrade to a release with a community fix. The advisory also serves as a reminder that milter-added headers are an attack surface in their own right, not just a convenience for downstream filters.
Original reference: ubuntu.com →