What Happened
Ubuntu Security has published USN-8228-2, an update that fixes a regression in its earlier Exim vulnerability fix and covers three additional flaws in the same mail server. The regression came from USN-8228-1. Ubuntu Security says the fix for CVE-2026-40684 introduced an out-of-bounds read when Exim processed certain DNS data, and the notice includes an apology for the inconvenience.
The same notice describes a separate issue. If an SMTP client sent RSET during a BDAT transfer, Exim could expose heap memory in a 250 reply. Ubuntu Security says the update fixes both problems and restates the original flaws that USN-8228-1 addressed.
For an MSP, a flawed fix is its own kind of outage. A mail server that stops delivering or starts returning bad data interrupts client business, and the repair work lands on your desk.
Timeline
Ubuntu Security's notice does not give a longer timeline for when each flaw was found or reported.
- 30 November 2026: Ubuntu Security publishes USN-8228-2, which fixes the regression introduced by USN-8228-1 and the additional issues.
Who Is Affected
The notice names the Ubuntu LTS releases affected by each issue. MSPs should check whether any client mail server runs Exim on those releases.
Ubuntu Security's notice does not report any exploitation of these flaws.
- Exim on Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS and Ubuntu 26.04 LTS (out-of-bounds read regression)
- Exim on Ubuntu 20.04 LTS, Ubuntu 22.04 LTS and Ubuntu 24.04 LTS (heap memory exposure in 250 reply)
Technical Details: The Exim Vulnerability
USN-8228-2 covers four CVE identifiers. The first is CVE-2026-40684. Ubuntu Security says the fix for that flaw in USN-8228-1 introduced an out-of-bounds read when Exim processed certain DNS data. That regression affected Exim on Ubuntu 20.04 LTS, 22.04 LTS, 24.04 LTS and 26.04 LTS.
The second issue is separate. An SMTP client could expose heap memory in a 250 reply by sending RSET during a BDAT transfer. That issue affected Exim on Ubuntu 20.04 LTS, 22.04 LTS and 24.04 LTS. The update fixes it.
Ubuntu Security also restates the flaws fixed in USN-8228-1:
- CVE-2026-40685: Exim incorrectly handled parsing malformed JSON in message headers. A remote attacker could possibly use this issue to execute arbitrary code.
- CVE-2026-40686: Exim incorrectly handled processing of UTF-8 trailing characters. A remote attacker could possibly use this issue to obtain sensitive information.
- CVE-2026-40687: Exim incorrectly handled SPA authenticator input. An authenticated user could possibly use this issue to execute arbitrary code.
Why This Matters for MSPs
Exim is a mail transfer agent. Many Linux hosts run it as the mail server for a domain or as part of a hosting stack. When mail stops flowing, the client notices within minutes, and the follow up work is yours.
A patch regression adds a second failure mode. You apply a fix for a known flaw, and the mail server behaves incorrectly in a different way. The vendor then ships a corrective update, which is the situation here.
The flaws in this notice matter for two reasons. First, the underlying issues include possible remote code execution and possible sensitive information disclosure, as Ubuntu Security describes them. Second, the affected product is a mail server, so a successful attack or a broken update both land on a business critical service.
Patching is only half the job. You also need to know which hosts run Exim and which Ubuntu release each one is on.
What MSPs Should Do
Start with the update that Ubuntu Security published, then verify it landed everywhere it needs to.
- Apply USN-8228-2, which fixes the regression introduced by USN-8228-1 and the additional issues.
- Inventory every Exim instance you manage and record which Ubuntu LTS release it runs.
- Confirm that the affected releases are the ones named in the notice: 20.04 LTS, 22.04 LTS, 24.04 LTS and 26.04 LTS for the regression, and 20.04 LTS, 22.04 LTS and 24.04 LTS for the heap memory issue.
- Stage the update on a test mail server before production, since a fix in this chain already introduced a regression.
- Watch mail flow and logs after the update, and keep the previous package version available for rollback if delivery or authentication breaks.
- Keep a clean, tested backup of mail server state so you can restore service without rebuilding from scratch.
- Tell clients what changed only after you have verified their mail is flowing normally.
How EnterProtect Helps
EnterProtect backup keeps clean restorable copies of the systems your clients depend on, including mail servers. If an update or an incident takes a server down, you have a known good point to restore from.
EnterProtect recovery gets a client running again after a failure. That is the part that matters when a business is losing money by the hour and the fix is not simply a reboot.
EnterProtect vulnerability scanning finds exposed versions across client environments, which supports a standing inventory practice for the software you manage.
Frequently Asked Questions
What Is USN-8228-2?
USN-8228-2 is the Ubuntu Security notice that fixes a regression introduced by USN-8228-1 and covers additional issues in Exim. The regression came from the earlier fix for CVE-2026-40684, which introduced an out-of-bounds read when Exim processed certain DNS data. The update also fixes an SMTP issue where a client could expose heap memory in a 250 reply by sending RSET during a BDAT transfer.
Which Ubuntu Releases Are Affected by CVE-2026-40684?
Ubuntu Security says the out-of-bounds read regression affected Exim on Ubuntu 20.04 LTS, 22.04 LTS, 24.04 LTS and 26.04 LTS. The heap memory exposure in the 250 reply affected Exim on Ubuntu 20.04 LTS, 22.04 LTS and 24.04 LTS. The notice does not list affected versions for the three flaws fixed in USN-8228-1.
Can CVE-2026-40685 Lead to Remote Code Execution?
Ubuntu Security says Exim incorrectly handled parsing malformed JSON in message headers, and a remote attacker could possibly use this issue to execute arbitrary code. That flaw is CVE-2026-40685 and was fixed in USN-8228-1. The notice does not state that it has been exploited.
What Are the Other Exim Flaws in This Notice?
The notice restates two more flaws fixed in USN-8228-1. CVE-2026-40686 covers incorrect handling of UTF-8 trailing characters, which a remote attacker could possibly use to obtain sensitive information. CVE-2026-40687 covers incorrect handling of SPA authenticator input, which an authenticated user could possibly use to execute arbitrary code.
Should MSPs Apply USN-8228-2 Immediately?
Ubuntu Security's stated action is to apply USN-8228-2, which fixes the regression and the additional issues. In practice, stage the update on a test mail server first, because the previous fix in this chain introduced a regression. Then confirm mail flow and authentication on every affected host before you move on.
Was the Exim Vulnerability Exploited in the Wild?
The advisory does not report any exploitation of these flaws. It describes what each flaw could allow, using wording such as could possibly. No exploitation status has been published.
Sources
- USN-8228-2: Exim regression (Ubuntu Security)