Merge ~bryce/ubuntu/+source/exim4:sru-lp1998678-kinetic into ubuntu/+source/exim4:ubuntu/kinetic-devel

Proposed by Bryce Harrington
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merge reported by: Bryce Harrington
Merged at revision: 2b7abe03b201b8f168358629f6458a78fbe5fe6a
Proposed branch: ~bryce/ubuntu/+source/exim4:sru-lp1998678-kinetic
Merge into: ubuntu/+source/exim4:ubuntu/kinetic-devel
Diff against target: 68 lines (+46/-0)
3 files modified
debian/changelog (+9/-0)
debian/patches/fix-run--arg-parsing.patch (+36/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Lena Voytek (community) Approve
Canonical Server Pending
Canonical Server Core Reviewers Pending
Canonical Server Reporter Pending
Review via email: mp+444949@code.launchpad.net

Description of the change

This is the SRUable portion of the fix from mp:bryce/exim4/444948

  Bug: https://bugs.launchpad.net/ubuntu/+source/exim4/+bug/1998678
  Ref: https://code.launchpad.net/~bryce/ubuntu/+source/exim4/+git/exim4/+merge/444948
  Ppa: https://launchpad.net/~bryce/+archive/ubuntu/exim4-sru-lp1998678/

  - exim4/4.96-3ubuntu1.2~kinetic2
    + ✅ exim4 on kinetic for amd64 @ 15.04.23 02:32:39 Log️ 🗒️
    + ✅ exim4 on kinetic for arm64 @ 15.04.23 03:01:23 Log️ 🗒️
    + ✅ exim4 on kinetic for armhf @ 15.04.23 02:34:15 Log️ 🗒️
    + ❌ exim4 on kinetic for i386 @ 15.04.23 02:34:25 Log️ 🗒️
      • basic FAIL 🟥
    + ❌ exim4 on kinetic for i386 @ 10.05.23 06:03:23 Log️ 🗒️
      • basic FAIL 🟥
    + ❌ exim4 on kinetic for ppc64el @ 15.04.23 02:32:40 Log️ 🗒️
      • basic FAIL 🟥
    + ❌ exim4 on kinetic for ppc64el @ 10.05.23 06:04:59 Log️ 🗒️
      • basic FAIL 🟥
    + ✅ exim4 on kinetic for s390x @ 15.04.23 02:32:02 Log️ 🗒️

The i386 error is to be expected. The ppc64el issue seems to be TLS related and I wonder if it is an infrastructure issue rather than a problem with this change.

To post a comment you must log in.
Revision history for this message
Lena Voytek (lvoytek) wrote :
review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: bryce, lvoytek
Uploaders: bryce, lvoytek
MP auto-approved

review: Approve
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, updated and uploaded:

Successfully signed dsc, buildinfo, changes files
Vcs-Git: https://git.launchpad.net/~bryce/ubuntu/+source/exim4
Vcs-Git-Commit: 2b7abe03b201b8f168358629f6458a78fbe5fe6a
Vcs-Git-Ref: refs/heads/sru-lp1998678-kinetic
$ dput ubuntu ../exim4_4.96-3ubuntu1.2_source.changes
gpg: ../exim4_4.96-3ubuntu1.2_source.changes: Valid signature from E603B2578FB8F0FB
gpg: ../exim4_4.96-3ubuntu1.2.dsc: Valid signature from E603B2578FB8F0FB
D: Setting host argument.
Checking signature on .changes
Checking signature on .dsc
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading exim4_4.96-3ubuntu1.2.dsc: done.
  Uploading exim4_4.96-3ubuntu1.2.debian.tar.xz: done.
  Uploading exim4_4.96-3ubuntu1.2_source.buildinfo: done.
  Uploading exim4_4.96-3ubuntu1.2_source.changes: done.
Successfully uploaded packages.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 39a48b4..253f9fc 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,12 @@
6+exim4 (4.96-3ubuntu1.2) kinetic; urgency=medium
7+
8+ * d/p/fix-run--arg-parsing.patch: Fix argument parsing for ${run }
9+ expansion. Previously, when an argument included a close-brace
10+ character (e.g. it itself used an expansion) an error occurred.
11+ (LP: #1998678)
12+
13+ -- Bryce Harrington <bryce@canonical.com> Tue, 11 Apr 2023 18:16:12 -0700
14+
15 exim4 (4.96-3ubuntu1.1) kinetic-security; urgency=medium
16
17 * SECURITY UPDATE: use after free in regex handler
18diff --git a/debian/patches/fix-run--arg-parsing.patch b/debian/patches/fix-run--arg-parsing.patch
19new file mode 100644
20index 0000000..c863071
21--- /dev/null
22+++ b/debian/patches/fix-run--arg-parsing.patch
23@@ -0,0 +1,36 @@
24+From 44b6e099b76f403a55e77650821f8a69e9d2682e Mon Sep 17 00:00:00 2001
25+From: Jeremy Harris <jgh146exb@wizmail.org>
26+Date: Sat, 3 Dec 2022 23:13:53 +0000
27+Subject: [PATCH] Fix ${run } arg parsing
28+
29+JH/15 Fix argument parsing for ${run } expansion. Previously, when an argument
30+ included a close-brace character (eg. it itself used an expansion) an
31+ error occurred.
32+
33+Broken-by: cfe6acff2ddc
34+
35+Description: Backports the above fix, coupled with some necessary
36+ defines from d8fbda7d "Args count reduction in expansions coding".
37+Origin: upstream, https://git.exim.org/exim.git/commit/44b6e099b76f403a55e77650821f8a69e9d2682e
38+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/exim4/+bug/1998678
39+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025420
40+Reviewed-By: Bryce Harrington <bryce@canonical.com>
41+Applied-Upstream: 4.97, commit:44b6e099b76f403a55e77650821f8a69e9d2682e
42+---
43+ src/src/expand.c | 13 ++++++++++---
44+
45+--- a/src/expand.c
46++++ b/src/expand.c
47+@@ -5568,7 +5568,11 @@
48+
49+ if (late_expand) /* this is the default case */
50+ {
51+- int n = Ustrcspn(s, "}");
52++ int n;
53++ const uschar * t;
54++ /* Locate the end of the args */
55++ (void) expand_string_internal(s, TRUE, &t, TRUE, TRUE, NULL);
56++ n = t - s;
57+ arg = skipping ? NULL : string_copyn(s, n);
58+ s += n;
59+ }
60diff --git a/debian/patches/series b/debian/patches/series
61index 761902c..2b07802 100644
62--- a/debian/patches/series
63+++ b/debian/patches/series
64@@ -13,3 +13,4 @@ CVE-2022-3559-1.patch
65 CVE-2022-3559-2.patch
66 CVE-2022-3559-3.patch
67 CVE-2022-3559-4.patch
68+fix-run--arg-parsing.patch

Subscribers

People subscribed via source and target branches