Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package diffutils for openSUSE:Factory 
checked in at 2026-11-17 17:15:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/diffutils (Old)
 and      /work/SRC/openSUSE:Factory/.diffutils.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "diffutils"

Tue Nov 17 17:15:56 2026 rev:52 rq:1397576 version:3.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/diffutils/diffutils.changes      2025-04-20 
19:51:11.734943763 +0200
+++ /work/SRC/openSUSE:Factory/.diffutils.new.1251/diffutils.changes    
2026-11-17 17:15:58.672434210 +0100
@@ -1,0 +2,7 @@
+Sat Nov 14 15:58:56 UTC 2026 - Dirk Müller <[email protected]>
+
+- add CVE-2026-53910.patch:
+  bsc#1273068 (CVE-2026-53910) heap-based buffer overflow due to
+  signed integer overflows in line‑mapping calculations
+
+-------------------------------------------------------------------

New:
----
  CVE-2026-53910.patch

----------(New B)----------
  New:
- add CVE-2026-53910.patch:
  bsc#1273068 (CVE-2026-53910) heap-based buffer overflow due to
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ diffutils.spec ++++++
--- /var/tmp/diff_new_pack.0RIjyf/_old  2026-11-17 17:15:59.808482133 +0100
+++ /var/tmp/diff_new_pack.0RIjyf/_new  2026-11-17 17:15:59.811482260 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package diffutils
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 # Copyright (c) 2025 Andreas Stieger <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -27,6 +27,7 @@
 Source0:        https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
 Source1:        https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
 Source2:        
https://savannah.gnu.org/project/release-gpgkeys.php?group=diffutils&download=1#/%{name}.keyring
+Patch1:         CVE-2026-53910.patch
 Provides:       diff = %{version}
 Obsoletes:      diff < %{version}
 
@@ -62,10 +63,16 @@
 
 %files
 %license COPYING
-%doc AUTHORS NEWS README THANKS
-%{_bindir}/*
+%doc NEWS README THANKS
+%{_bindir}/cmp
+%{_bindir}/diff
+%{_bindir}/diff3
+%{_bindir}/sdiff
 %{_infodir}/diffutils.info%{?ext_info}
-%{_mandir}/man1/*.1%{?ext_man}
+%{_mandir}/man1/cmp.1%{?ext_man}
+%{_mandir}/man1/diff.1%{?ext_man}
+%{_mandir}/man1/diff3.1%{?ext_man}
+%{_mandir}/man1/sdiff.1%{?ext_man}
 
 %files lang -f %{name}.lang
 %license COPYING

++++++ CVE-2026-53910.patch ++++++
From: Collin Funk <[email protected]>
Date: Mon, 20 Apr 2026 23:43:51 -0700
Subject: diff3: check for integer overflows when reading line numbers from
 diff

Reported by Michał Majchrowicz.
* src/diff3.c (readnum): Return nullptr if the line number would
overflow.
---
 src/diff3.c | 3 ++-

--- a/src/diff3.c
+++ b/src/diff3.c
@@ -1019,7 +1019,8 @@ readnum (char *s, lin *pnum)
 
   do
     {
-      num = c - '0' + num * 10;
+      if (ckd_mul (&num, num, 10) || ckd_add (&num, num, c - '0'))
+        return nullptr;
       c = *++s;
     }
   while (c_isdigit (c));


From: Paul Eggert <[email protected]>
Date: Tue, 21 Apr 2026 00:30:50 -0700

Problem reported by Michał Majchrowicz.
* src/diff3.c (readnum): Limit line numbers to LIN_MAX / 2.
---
 src/diff3.c | 6 ++++++
 1 file changed, 6 insertions(+)

--- a/src/diff3.c
+++ b/src/diff3.c
@@ -1025,6 +1025,12 @@ readnum (char *s, lin *pnum)
     }
   while (c_isdigit (c));
 
+  /* Simplify overflow checking later, so that we can always add a
+     line number and a line count, or subtract two line numbers and
+     add 1 to the result, without worrying about overflow.  */
+  if (LIN_MAX / 2 < num)
+    return nullptr;
+
   *pnum = num;
   return s;
 }

Reply via email to