🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #6973

Bug#1155997: trixie-pu: package netcdf-parallel/4.9.3-2

#6973
From: Alastair McKinstry
Date: Tue, 01 Dec 2026 08:20
248 lines
10966 bytes
This is a multi-part MIME message sent by reportbug.


--===============3609832247485775121==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: netcdf-parallel@packages.debian.org
Control: affects -1 + src:netcdf-parallel
User: release.debian.org@packages.debian.org
Usertags: pu

(Please provide enough information to help the release team
to judge the request efficiently. E.g. by filling in the
sections below.)

[ Reason ]
5  CVEs:
+CVE-2025-14932.patch
+CVE-2025-14933.patch
+CVE-2025-14934.patch
+CVE-2025-14935.patch
+CVE-2025-14936.patch

[ Impact ]
Should be low-impact, though the library is used in some online web-fronting workflows;
processing malicious NetCDF files could result in priviledge escalation.

[ Tests ]
Test suite ensures functionality works, but does not check these bugs.
Upstream testing was done; the patches are directly from upstream git.

[ Risks ]
Risks are low. All fixes are simple buffer overflow handling.

[ Checklist ]
  [X] *all* changes are documented in the d/changelog
  [X] I reviewed all changes and I approve them
  [X] attach debdiff against the package in (old)stable
  [X] the issue is verified as fixed in unstable

[ Changes ]
Buffer overflow fixes; 5 CVEs backported from upstream git

--===============3609832247485775121==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="netcdf.debdiff"

diff -Nru netcdf-parallel-4.9.3/debian/changelog netcdf-parallel-4.9.3/debian/changelog
--- netcdf-parallel-4.9.3/debian/changelog	2025-03-26 02:50:25.000000000 +0000
+++ netcdf-parallel-4.9.3/debian/changelog	2026-12-01 07:50:49.000000000 +0000
@@ -1,3 +1,13 @@
+netcdf-parallel (1:4.9.3-2+deb13u1) trixie; urgency=medium
+
+  * Patch from upstream for CVE-2025-14936
+  * Patch from upstream for CVE-2025-14932
+  * Patch from upstream for CVE-2025-14933
+  * Patch from upstream for CVE-2025-14934
+  * Patch from upstream for CVE-2025-14935
+
+ -- Alastair McKinstry <mckinstry@debian.org>  Tue, 01 Dec 2026 07:50:49 +0000
+
 netcdf-parallel (1:4.9.3-2) unstable; urgency=medium
 
   * Move to unstable
diff -Nru netcdf-parallel-4.9.3/debian/patches/CVE-2025-14932.patch netcdf-parallel-4.9.3/debian/patches/CVE-2025-14932.patch
--- netcdf-parallel-4.9.3/debian/patches/CVE-2025-14932.patch	1970-01-01 01:00:00.000000000 +0100
+++ netcdf-parallel-4.9.3/debian/patches/CVE-2025-14932.patch	2026-12-01 07:50:49.000000000 +0000
@@ -0,0 +1,36 @@
+Description: patch from  upstream for CVE-2025-14932
+Bug-Origin: https://github.com/Unidata/netcdf-c/commit/60578c3ac26b93b1932cba414a2870096bbcdd3b
+Last-Updated: 2026-11-29
+Forwarded: not-needed
+
+--- a/libdispatch/nctime.c
++++ b/libdispatch/nctime.c
+@@ -310,12 +310,12 @@
+ 	int nconv;
+ 
+ 	/* Parse the relunits.  First parse assuming white space only. */
+-	nconv = sscanf(relunits,"%s since %s %s",charunits,basetime_1,basetime_2);
+-
++	nconv = sscanf(relunits,"%63s since %47s %47s",charunits,basetime_1,basetime_2);
++	
+ 	/* Handle ISO-8601 "T" date-time separator in place of blank separator. */
+ 	if (nconv!=EOF && nconv>=2) {
+ 	    if (strchr (basetime_1, 'T') != NULL) {
+-		nconv = sscanf(relunits,"%s since %[^T]T%s",charunits,basetime_1,basetime_2);
++	      nconv = sscanf(relunits,"%63s since %47[^T]T%47s",charunits,basetime_1,basetime_2);
+ 	    }
+ 	}
+ 
+--- a/ncdump/nctime0.c
++++ b/ncdump/nctime0.c
+@@ -127,8 +127,8 @@
+ 	bool_t okunit = false;
+ 
+ 	/* Allow ISO-8601 "T" date-time separator as well as blank separator */
+-	nconv1 = sscanf(units,"%s since %[^T]T%s", charunits, basetime_1, basetime_2);
+-	nconv2 = sscanf(units,"%s since %s %s", charunits, basetime_1, basetime_2);
++	nconv1 = sscanf(units,"%63s since %47[^T]T%47s", charunits, basetime_1, basetime_2);
++	nconv2 = sscanf(units,"%63s since %47s %47s", charunits, basetime_1, basetime_2);
+ 	if (!(nconv1 > 1 || nconv2 > 1))
+ 	    return false;
+ 	/* Check for unit compatible with cdtime library, no attempt
diff -Nru netcdf-parallel-4.9.3/debian/patches/CVE-2025-14933.patch netcdf-parallel-4.9.3/debian/patches/CVE-2025-14933.patch
--- netcdf-parallel-4.9.3/debian/patches/CVE-2025-14933.patch	1970-01-01 01:00:00.000000000 +0100
+++ netcdf-parallel-4.9.3/debian/patches/CVE-2025-14933.patch	2026-12-01 07:50:49.000000000 +0000
@@ -0,0 +1,41 @@
+Description: patch from  upstream for CVE-2025-14933
+Bug-Origin: https://github.com/Unidata/netcdf-c/commit/b06b973e040ffede8d776ff7a94d22c68074ea98
+Last-Updated: 2026-11-29
+Forwarded: not-needed
+
+--- a/libsrc/v1hpg.c
++++ b/libsrc/v1hpg.c
+@@ -1030,6 +1030,11 @@
+     if(status != NC_NOERR)
+ 		goto unwind_name;
+ 
++    if(ndims > NC_MAX_VAR_DIMS) {
++      status = NC_EMAXDIMS;
++      goto unwind_name;
++    }
++    
+ 	varp = new_x_NC_var(strp, ndims);
+ 	if(varp == NULL)
+ 	{
+--- a/libsrc/var.c
++++ b/libsrc/var.c
+@@ -76,8 +76,17 @@
+ 	const size_t o2 = M_RNDUP(ndims * sizeof(size_t));
+ 
+ #ifdef MALLOCHACK
+-	const size_t sz =  M_RNDUP(sizeof(NC_var)) +
+-		 o1 + o2 + ndims * sizeof(off_t);
++	if (ndims > SIZE_MAX / sizeof(off_t))
++	  return NULL;
++	{
++	  const size_t base = M_RNDUP(sizeof(NC_var));
++	  if (o1 > SIZE_MAX - base ||
++	      o2 > SIZE_MAX - base - o1 ||
++	      ndims * sizeof(off_t) > SIZE_MAX - base - o1 - o2)
++            return NULL;
++	}
++	const size_t sz = M_RNDUP(sizeof(NC_var)) +
++	  o1 + o2 + ndims * sizeof(off_t);
+ #else /*!MALLOCHACK*/
+ 	const size_t o3 = ndims * sizeof(off_t);
+ 	const size_t sz = sizeof(NC_var);
diff -Nru netcdf-parallel-4.9.3/debian/patches/CVE-2025-14934.patch netcdf-parallel-4.9.3/debian/patches/CVE-2025-14934.patch
--- netcdf-parallel-4.9.3/debian/patches/CVE-2025-14934.patch	1970-01-01 01:00:00.000000000 +0100
+++ netcdf-parallel-4.9.3/debian/patches/CVE-2025-14934.patch	2026-12-01 07:50:49.000000000 +0000
@@ -0,0 +1,20 @@
+Description: patch from  upstream for CVE-2025-14934
+Bug-Origin: https://github.com/Unidata/netcdf-c/commit/1e22866daae12203c768a38c168b8d25c65627d9
+Last-Updated: 2026-11-29
+Forwarded: not-needed
+
+--- a/libsrc/var.c
++++ b/libsrc/var.c
+@@ -704,8 +704,10 @@
+ 
+ 	if(name != NULL)
+ 	{
+-		(void) strncpy(name, varp->name->cp, varp->name->nchars);
+-		name[varp->name->nchars] = 0;
++	        size_t copy_len = varp->name->nchars < NC_MAX_NAME
++		  ? varp->name->nchars : NC_MAX_NAME;
++		(void) strncpy(name, varp->name->cp, copy_len);
++		name[copy_len] = 0;
+ 	}
+ 
+ 	if(typep != 0)
diff -Nru netcdf-parallel-4.9.3/debian/patches/CVE-2025-14935.patch netcdf-parallel-4.9.3/debian/patches/CVE-2025-14935.patch
--- netcdf-parallel-4.9.3/debian/patches/CVE-2025-14935.patch	1970-01-01 01:00:00.000000000 +0100
+++ netcdf-parallel-4.9.3/debian/patches/CVE-2025-14935.patch	2026-12-01 07:50:49.000000000 +0000
@@ -0,0 +1,21 @@
+Description: patch from  upstream for CVE-2025-14935
+Bug-Origin: https://github.com/Unidata/netcdf-c/commit/0b33fab5c1d7bc458bf0aead93af433e0eae5abc
+Last-Updated: 2026-11-29
+Forwarded: not-needed
+
+--- a/libsrc/dim.c
++++ b/libsrc/dim.c
+@@ -419,9 +419,10 @@
+ 
+ 	if(name != NULL)
+ 	{
+-		(void)strncpy(name, dimp->name->cp,
+-			dimp->name->nchars);
+-		name[dimp->name->nchars] = 0;
++	         size_t copy_len = dimp->name->nchars < NC_MAX_NAME
++		   ? dimp->name->nchars : NC_MAX_NAME;
++		 (void)strncpy(name, dimp->name->cp, copy_len);
++		 name[copy_len] = 0;
+ 	}
+ 	if(sizep != NULL)
+ 	{
diff -Nru netcdf-parallel-4.9.3/debian/patches/CVE-2025-14936.patch netcdf-parallel-4.9.3/debian/patches/CVE-2025-14936.patch
--- netcdf-parallel-4.9.3/debian/patches/CVE-2025-14936.patch	1970-01-01 01:00:00.000000000 +0100
+++ netcdf-parallel-4.9.3/debian/patches/CVE-2025-14936.patch	2026-12-01 07:50:49.000000000 +0000
@@ -0,0 +1,24 @@
+Description: patch from  upstream for CVE-2025-14936
+Bug-Origin: https://github.com/Unidata/netcdf-c/commit/b491ecd8021f510427459051ebfd7bd4cfda2371
+Last-Updated: 2026-11-29
+Forwarded: not-needed
+
+--- a/libsrc/attr.m4
++++ b/libsrc/attr.m4
+@@ -440,9 +440,13 @@
+ 	if(attrp == NULL)
+ 		return NC_ENOTATT;
+ 
+-	(void) strncpy(name, attrp->name->cp, attrp->name->nchars);
+-	name[attrp->name->nchars] = 0;
+-
++	{
++	    size_t copy_len = attrp->name->nchars < NC_MAX_NAME
++                          ? attrp->name->nchars : NC_MAX_NAME;
++	    (void) strncpy(name, attrp->name->cp, copy_len);
++	    name[copy_len] = 0;
++	}	    
++    
+ 	return NC_NOERR;
+ }
+ 
diff -Nru netcdf-parallel-4.9.3/debian/patches/series netcdf-parallel-4.9.3/debian/patches/series
--- netcdf-parallel-4.9.3/debian/patches/series	2025-03-26 02:50:25.000000000 +0000
+++ netcdf-parallel-4.9.3/debian/patches/series	2026-12-01 07:50:49.000000000 +0000
@@ -10,3 +10,8 @@
 version-script.patch
 # esdm-support.patch
 nc-test-pnetcdf.patch
+CVE-2025-14932.patch
+CVE-2025-14933.patch
+CVE-2025-14934.patch
+CVE-2025-14935.patch
+CVE-2025-14936.patch

--===============3609832247485775121==--
Technical Details
Message-ID: <O5rfH-fi7L-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Alastair McKinstry <mckinstry@debian.org>
Newsgroups: linux.debian.bugs.dist,linux.debian.devel.release
Subject: Bug#1155997: trixie-pu: package netcdf-parallel/4.9.3-2
Date: Tue, 01 Dec 2026 09:20:01 +0100
Message-ID: <O5rfH-fi7L-1@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Dec  1 08:17:11 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Alastair McKinstry <mckinstry@debian.org>, 1155997@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: netcdf-parallel@packages.debian.org, debian-release@lists.debian.org
X-Debian-Pr-Message: report 1155997
X-Debian-Pr-Package: release.debian.org
X-Debian-Pr-Keywords: trixie
Content-Type: multipart/mixed; boundary="===============3609832247485775121=="
MIME-Version: 1.0
X-Mailer: reportbug 13.2.0
X-Debian-User: mckinstry
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006233
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 248
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 01 Dec 2026 08:16:14 +0000
X-Original-Message-ID: <179611297426.1854901.9592634730126133257.reportbug@mail.mckinstry.ie>