Thread View: linux.debian.bugs.dist
2 messages
2 total messages
Started by Salvatore Bonaccorso
Fri, 09 Oct 2026 09:40
Bug#1150407: mutt: CVE-2026-107570
Author: Salvatore Bonaccorso
Date: Fri, 09 Oct 2026 09:40
Date: Fri, 09 Oct 2026 09:40
30 lines
2338 bytes
2338 bytes
Source: mutt
Version: 2.4.1-1
X-Debbugs-CC: team@security.debian.org
Severity: important
Tags: security upstream
Forwarded: https://gitlab.com/muttmua/mutt/-/work_items/533
Hi,
The following vulnerability was published for mutt.
CVE-2026-107570[0]:
| heap OOB write in convert_file_from_to() via a crafted Content-Type
| header allows attacker to OOB write when email is used as a
| template.
If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.
For further information see:
[0] https://security-tracker.debian.org/tracker/CVE-2026-107570
https://www.cve.org/CVERecord?id=CVE-2026-107570
[1] https://gitlab.com/muttmua/mutt/-/work_items/533
Please adjust the affected versions in the BTS as needed.
Regards,
Salvatore
Bug#1150407: mutt: diff for NMU version 2.4.1-1.1
Author: Salvatore Bonaccorso
Date: Sun, 25 Oct 2026 18:20
Date: Sun, 25 Oct 2026 18:20
111 lines
6126 bytes
6126 bytes
--KdnN6gGax/Yu9aOh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Control: tags 1150407 + patch
Control: tags 1150407 + pending
Dear maintainer,
I've prepared an NMU for mutt (versioned as 2.4.1-1.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should cancel it.
Regards,
Salvatore
--KdnN6gGax/Yu9aOh
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename=mutt-2.4.1-1.1-nmu.diff
diffstat for mutt-2.4.1 mutt-2.4.1
changelog | 8 +
patches/series | 1
patches/upstream/Fix-OOB-heap-write-in-convert_file_from_to.patch | 54 ++++++++++
3 files changed, 63 insertions(+)
diff -Nru mutt-2.4.1/debian/changelog mutt-2.4.1/debian/changelog
--- mutt-2.4.1/debian/changelog 2026-07-21 07:46:27.000000000 +0200
+++ mutt-2.4.1/debian/changelog 2026-10-25 15:12:45.000000000 +0100
@@ -1,3 +1,11 @@
+mutt (2.4.1-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix OOB heap write in convert_file_from_to(). (CVE-2026-107570)
+ (Closes: #1150407)
+
+ -- Salvatore Bonaccorso <carnil@debian.org> Sun, 25 Oct 2026 15:12:45 +0100
+
mutt (2.4.1-1) unstable; urgency=medium
* New upstream release (Closes: 1072814, 1113796, 1141601).
diff -Nru mutt-2.4.1/debian/patches/series mutt-2.4.1/debian/patches/series
--- mutt-2.4.1/debian/patches/series 2026-07-21 07:46:27.000000000 +0200
+++ mutt-2.4.1/debian/patches/series 2026-10-25 15:11:49.000000000 +0100
@@ -12,3 +12,4 @@
upstream/1125291-fix-smime_pk7out_command-for-key-extraction.patch
upstream/787968-muttrc-man-grammar-fix.patch
upstream/shellcheck-errors.patch
+upstream/Fix-OOB-heap-write-in-convert_file_from_to.patch
diff -Nru mutt-2.4.1/debian/patches/upstream/Fix-OOB-heap-write-in-convert_file_from_to.patch mutt-2.4.1/debian/patches/upstream/Fix-OOB-heap-write-in-convert_file_from_to.patch
--- mutt-2.4.1/debian/patches/upstream/Fix-OOB-heap-write-in-convert_file_from_to.patch 1970-01-01 01:00:00.000000000 +0100
+++ mutt-2.4.1/debian/patches/upstream/Fix-OOB-heap-write-in-convert_file_from_to.patch 2026-10-25 15:11:18.000000000 +0100
@@ -0,0 +1,54 @@
+From: "Kevin J. McCarthy" <kevin@8t8.us>
+Date: Tue, 6 Oct 2026 13:50:42 +0800
+Subject: Fix OOB heap write in convert_file_from_to().
+Origin: https://gitlab.com/muttmua/mutt/-/commit/7752d93f26f8f1384905fad874afff5abb0f3e54
+Bug-Debian: https://bugs.debian.org/1150407
+Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2026-107570
+
+This issue was reported by Calif.io, in collaboration with Anthropic,
+with a full reproduce and suggested patch. I've reviewed the patch
+and concur it is the best approach.
+
+This is due to a logic error in convert_file_from_to() in sendlib.c.
+It first counts the number of charsets to try in one loop, and then
+allocates and copies the charsets over in a separate loop afterwards.
+
+Unfortunately the second loop's logic does not follow the first loop
+exactly, and the counter gets out of sync with a zero-length charset.
+For example ":utf-8" where ":" is the delimiter.
+
+The fix is to keep the counter logic the same: incrementing after the
+initial zero-length charset check instead of in the for loop increment
+clause.
+
+It takes user interaction to trigger this OOB write: using the
+received message as a template in a new message via <resend-message>.
+The write is of arbitrary length.
+
+Calif.io did not report any exploitation beyond the OOB write.
+Nonetheless, I recommend all shipping distributions apply this patch.
+---
+ sendlib.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/sendlib.c b/sendlib.c
+index de6aa542b3c8..49d814000e33 100644
+--- a/sendlib.c
++++ b/sendlib.c
+@@ -864,11 +864,11 @@ static size_t convert_file_from_to(FILE *file,
+
+ /* Copy them */
+ tcode = safe_malloc(ncodes * sizeof(char *));
+- for (c = tocodes, i = 0; c; c = c1 ? c1 + 1 : 0, i++)
++ for (c = tocodes, i = 0; c; c = c1 ? c1 + 1 : 0)
+ {
+ if ((c1 = strchr(c, ':')) == c)
+ continue;
+- tcode[i] = mutt_substrdup(c, c1);
++ tcode[i++] = mutt_substrdup(c, c1);
+ }
+
+ ret = (size_t)(-1);
+--
+2.55.0
+
--KdnN6gGax/Yu9aOh--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads