Distro News

Ubuntu releases security update for Exim to fix regression and memory exposure

Key Takeaway

Ubuntu has issued a corrective update for the Exim mail transport agent to resolve a regression and a heap memory exposure issue introduced in a previous security patch.

Summary

Canonical has released USN-8228-2 to address technical regressions in the Exim mail transport agent. The previous security update, USN-8228-1, intended to patch several vulnerabilities but inadvertently introduced an out-of-bounds read vulnerability during DNS data processing.

This new advisory also addresses a separate issue where an SMTP client could trigger the exposure of heap memory via a 250 reply if an RSET command is sent during a BDAT transfer. The update affects multiple Long Term Support (LTS) versions of Ubuntu, including 20.04, 22.04, 24.04, and 26.04, depending on the specific vulnerability.

Technical details of the Exim vulnerabilities

  • DNS Processing Regression: The fix for CVE-2026-40684 caused an out-of-bounds read when the Exim daemon processes specific types of DNS data, affecting Ubuntu 20.04, 22.04, 24.04, and 26.04 LTS.
  • Heap Memory Exposure: A vulnerability exists where sending an RSET command during a BDAT transfer allows an SMTP client to expose heap memory within a 250 reply; this affects Ubuntu 20.04, 22.04, and 24.04 LTS.
  • Original Vulnerability Context: The underlying security concerns addressed in the initial patch cycle included arbitrary code execution via malformed JSON in message headers (CVE-2026-40685), sensitive information disclosure via UTF-8 trailing characters (CVE-2026-40686), and arbitrary code execution via SPA authenticator input (CVE-2026-40687).

Why it matters

System administrators running mail servers on Ubuntu LTS distributions should prioritize this update to prevent memory leaks and potential out-of-bounds reads. Because the fix involves the exim4 package, users on older LTS releases like 20.04 may require Ubuntu Pro to access the necessary security patches.

Original reference: ubuntu.com →