USN-8228-2: Exim regression
USN-8228-1 fixed vulnerabilities in Exim. Unfortunately, the fix for CVE-2026-40684 introduced an out-of-bounds read when Exim processed certain DNS data. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. Additionally, an SMTP client could expose heap memory in a 250 reply by sending RSET during a BDAT transfer. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, and Ubuntu 24.04 LTS. This update fixes these problems. We apologize for the inconvenience. Original advisory details: It was discovered that Exim incorrectly handled parsing malformed JSON in message headers. A remote attacker could possibly use this issue to execute arbitrary code. (CVE-2026-40685) It was discovered that Exim incorrectly handled processing of UTF-8 trailing characters. A remote attacker could possibly use this issue to obtain sensitive information. (CVE-2026-40686) It was discovered that Exim incorrectly handled SPA authenticator input. An authenticated user could possibly use this issue to execute arbitrary code. (CVE-2026-40687)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/exim4-daemon-heavyto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/exim4-daemon-lightto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch USN-8228-1
Event History
Frequently Asked Questions
Which Ubuntu releases are affected by the DNS-processing regression?
The out-of-bounds read triggered by certain DNS data affects Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS.
Which Ubuntu releases are affected by the BDAT/RSET heap-memory exposure?
The issue in which an SMTP client can expose heap memory in a 250 reply by sending RSET during a BDAT transfer affects Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, and Ubuntu 24.04 LTS. Ubuntu 26.04 LTS is not listed as affected by this issue.
What level of access does exploitation of the original Exim issues require?
Malformed JSON header parsing and UTF-8 trailing-character handling may be exploitable remotely, with impacts including arbitrary code execution and sensitive-information disclosure. Exploitation of the SPA authenticator issue requires an authenticated user.