Skip to contentSkip to conversation

package/heirloom-mailx: fix comment about ignore CVE-2014-7844

PATCH In review Thomas Petazzoni via buildroot 2 participants 5 messages Aug 28, 2023 – Sep 14, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/heirloom-mailx: fix comment about ignore CVE-2014-7844

In commit
15972770cf34ed0b0ba330e3cc42c04f1c80c3c8 ("package/heirloom-mailx:
security bump to version 12.5-5 from Debian"), we added CVE-2014-7844 in HEIRLOOM_MAILX_IGNORE_CVES, but with the wrong comment about it: it is a different patch in the Debian stack of patches that fixes it. Indeed the description of patch 0011-outof-Introduce-expandaddr-flag.patch is:

=====================================================================
Subject: [PATCH 1/4] outof: Introduce expandaddr flag

Document that address expansion is disabled unless the expandaddr binary option is set.

This has been assigned CVE-2014-7844 for BSD mailx, but it is not a vulnerability in Heirloom mailx because this feature was documented.
=====================================================================

See also https://marc.info/?l=oss-security&m=141875285203183&w=2 for details.

---
 package/heirloom-mailx/heirloom-mailx.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/heirloom-mailx/heirloom-mailx.mk +1 -1
index d3b8ad437a..bb2e1f48de 100644
@@ -12,7 +12,7 @@ HEIRLOOM_MAILX_LICENSE = BSD-4-Clause, Bellcore (base64), OpenVision (imap_gssap
 HEIRLOOM_MAILX_LICENSE_FILES = COPYING
 HEIRLOOM_MAILX_CPE_ID_VENDOR = heirloom
 HEIRLOOM_MAILX_CPE_ID_PRODUCT = mailx
-# 0014-globname-Invoke-wordexp-with-WRDE_NOCMD.patch in the Debian patches
+# 0011-outof-Introduce-expandaddr-flag.patch in the Debian patches
 HEIRLOOM_MAILX_IGNORE_CVES += CVE-2014-7844
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
Signature · 6 lines
2.41.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/heirloom-mailx: ignore CVE-2004-2771

The CVE-2004-2771 is already fixed by the Debian patch 0014-globname-Invoke-wordexp-with-WRDE_NOCMD.patch. The Debian patch description is:

Subject: [PATCH 4/4] globname: Invoke wordexp with WRDE_NOCMD (CVE-2004-2771)

See also https://marc.info/?l=oss-security&m=141875285203183&w=2 for more details.

---
 package/heirloom-mailx/heirloom-mailx.mk | 2 ++
 1 file changed, 2 insertions(+)
package/heirloom-mailx/heirloom-mailx.mk +2 -0
index bb2e1f48de..6e0f2c31ab 100644
@@ -14,6 +14,8 @@ HEIRLOOM_MAILX_CPE_ID_VENDOR = heirloom
 HEIRLOOM_MAILX_CPE_ID_PRODUCT = mailx
 # 0011-outof-Introduce-expandaddr-flag.patch in the Debian patches
 HEIRLOOM_MAILX_IGNORE_CVES += CVE-2014-7844
+# 0014-globname-Invoke-wordexp-with-WRDE_NOCMD.patch
+HEIRLOOM_MAILX_IGNORE_CVES += CVE-2004-2771
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 HEIRLOOM_MAILX_DEPENDENCIES += openssl
Signature · 6 lines
2.41.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] package/heirloom-mailx: ignore CVE-2004-2771

Quoted 19 lines · Thomas Petazzoni via buildroot

The CVE-2004-2771 is already fixed by the Debian patch 0014-globname-Invoke-wordexp-with-WRDE_NOCMD.patch. The Debian patch description is:

Subject: [PATCH 4/4] globname: Invoke wordexp with WRDE_NOCMD (CVE-2004-2771)

See also https://marc.info/?l=oss-security&m=141875285203183&w=2 for more details.

---
  package/heirloom-mailx/heirloom-mailx.mk | 2 ++
  1 file changed, 2 insertions(+)
package/heirloom-mailx/heirloom-mailx.mk +0 -0
index bb2e1f48de..6e0f2c31ab 100644

package/heirloom-mailx/heirloom-mailx.mk HEIRLOOM_MAILX_CPE_ID_VENDOR = heirloom · line 17

Quoted 4 lines
package/heirloom-mailx/heirloom-mailx.mk +1 -0
@@ -14,6 +14,8 @@ HEIRLOOM_MAILX_CPE_ID_VENDOR = heirloom
  HEIRLOOM_MAILX_CPE_ID_PRODUCT = mailx
  # 0011-outof-Introduce-expandaddr-flag.patch in the Debian patches
  HEIRLOOM_MAILX_IGNORE_CVES += CVE-2014-7844
+# 0014-globname-Invoke-wordexp-with-WRDE_NOCMD.patch

I've added "in the Debian patches" like in the other comment.

With that, both applied to master, thanks.

Regards,
Arnout

package/heirloom-mailx/heirloom-mailx.mk HEIRLOOM_MAILX_CPE_ID_VENDOR = heirloom · line 21

Quoted 4 lines
package/heirloom-mailx/heirloom-mailx.mk +1 -0
+HEIRLOOM_MAILX_IGNORE_CVES += CVE-2004-2771
 
  ifeq ($(BR2_PACKAGE_OPENSSL),y)
  HEIRLOOM_MAILX_DEPENDENCIES += openssl

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Re: [Buildroot] [PATCH 2/2] package/heirloom-mailx: ignore CVE-2004-2771

In reply to Thomas Petazzoni via buildroot
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:

The CVE-2004-2771 is already fixed by the Debian patch 0014-globname-Invoke-wordexp-with-WRDE_NOCMD.patch. The Debian patch description is:

Quoted 6 lines

Subject: [PATCH 4/4] globname: Invoke wordexp with WRDE_NOCMD (CVE-2004-2771)

See also https://marc.info/?l=oss-security&m=141875285203183&w=2 for more details.

Committed to 2023.02.x and 2023.05.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
In reply to Thomas Petazzoni via buildroot
Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:

In commit
15972770cf34ed0b0ba330e3cc42c04f1c80c3c8 ("package/heirloom-mailx:
security bump to version 12.5-5 from Debian"), we added CVE-2014-7844 in HEIRLOOM_MAILX_IGNORE_CVES, but with the wrong comment about it: it is a different patch in the Debian stack of patches that fixes it. Indeed the description of patch 0011-outof-Introduce-expandaddr-flag.patch is:

=====================================================================
Subject: [PATCH 1/4] outof: Introduce expandaddr flag

Document that address expansion is disabled unless the expandaddr binary option is set.

Quoted 8 lines

This has been assigned CVE-2014-7844 for BSD mailx, but it is not a vulnerability in Heirloom mailx because this feature was documented.
=====================================================================

See also https://marc.info/?l=oss-security&m=141875285203183&w=2 for details.

Committed to 2023.02.x and 2023.05.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot