NetBSD Problem Report #60589

From zakinko@techne.fml.org  Fri Aug 14 20:56:05 2026
Return-Path: <zakinko@techne.fml.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.netbsd.org", Issuer "YR2" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BBC8C1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 14 Aug 2026 20:56:05 +0000 (UTC)
Message-Id: <20260814204944.C8057494764@techne.fml.org>
Date: Sat, 15 Aug 2026 05:49:44 +0900 (JST)
From: zakinko@snowrabbit.org
Reply-To: zakinko@snowrabbit.org
To: gnats-bugs@NetBSD.org
Subject: pkg-vulnerabilities: ncurses CVE-2025-69720 is fixed in 6.6
X-Send-Pr-Version: 3.95
X-From4GNATS: "zakinko@snowrabbit.org via gnats" <gnats-admin@NetBSD.org>

>Number:         60589
>Category:       pkg
>Synopsis:       pkg-vulnerabilities: ncurses CVE-2025-69720 is fixed in 6.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    leot
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 14 21:00:00 +0000 2026
>Closed-Date:    Fri Aug 14 21:40:17 +0000 2026
>Last-Modified:  Fri Aug 14 21:50:01 +0000 2026
>Originator:     Showta Ishizaki
>Release:        NetBSD 11.0, pkgsrc CVS as of 2026-08-14
>Organization:
>Environment:
System: NetBSD 11.0 i386
Architecture: i386
Machine: i386
>Description:
	pkg-vulnerabilities (rev 1.776) has

	  ncurses-[0-9]*	buffer-overflow	https://nvd.nist.gov/vuln/detail/CVE-2025-69720

	written as "every version", but the release pkgsrc ships already
	carries the fix.

	CVE-2025-69720 is the stack buffer overflow in analyze_string() in
	progs/infocmp.c.  Upstream fixed it in the ncurses 6.5 20251213 patch;
	NEWS records it as

	  20251213
	          + add a limit-check in infocmp -i option (report/example by
	            Yixuan Cao).

	and 6.6 was cut seventeen days later:

	  20251230 6.6 release for upload to ftp.gnu.org

	so the release includes it.

	In the 6.6 tarball, progs/infocmp.c is rev 1.177 (2025-12-27) and
	analyze_string() now clamps the length:

	    if ((len = strlen(cp)) > MAX_TERMINFO_LENGTH)
	        len = MAX_TERMINFO_LENGTH;

	along with (len < sizeof(buf3)) guards on the CSI parameter paths.

	devel/ncurses in pkgsrc is at 6.6 (Makefile rev 1.124), so no package
	change is needed; only the entry is stale.

>How-To-Repeat:
	pkg_admin fetch-pkg-vulnerabilities && pkg_admin audit

	on a system with ncurses 6.6 installed reports

	  Package ncurses-6.6 has a buffer-overflow vulnerability,
	  see https://nvd.nist.gov/vuln/detail/CVE-2025-69720

>Fix:
	ncurses-[0-9]*	->	ncurses<6.6

	Nothing to change in devel/ncurses itself; it is already at 6.6.

	Index: doc/pkg-vulnerabilities
	===================================================================
	RCS file: /cvsroot/pkgsrc/doc/pkg-vulnerabilities,v
	retrieving revision 1.776
	diff -u -r1.776 pkg-vulnerabilities
	--- doc/pkg-vulnerabilities	14 Aug 2026 14:49:56 -0000	1.776
	+++ doc/pkg-vulnerabilities	14 Aug 2026 20:15:32 -0000
	@@ -30254,7 +30254,7 @@
	 mongodb<7.0.31	use-after-free	https://nvd.nist.gov/vuln/detail/CVE-2026-4148
	 mongodb<7.0.31	double-free	https://nvd.nist.gov/vuln/detail/CVE-2026-4358
	 mumble<1.6.870	out-of-bounds-read	https://nvd.nist.gov/vuln/detail/CVE-2025-71264
	-ncurses-[0-9]*	buffer-overflow	https://nvd.nist.gov/vuln/detail/CVE-2025-69720
	+ncurses<6.6	buffer-overflow	https://nvd.nist.gov/vuln/detail/CVE-2025-69720
	 nghttp2<1.68.1	denial-of-service	https://nvd.nist.gov/vuln/detail/CVE-2026-27135
	 p5-XML-Parser<2.48	heap-overflow	https://nvd.nist.gov/vuln/detail/CVE-2006-10002
	 p5-XML-Parser<2.48	heap-overflow	https://nvd.nist.gov/vuln/detail/CVE-2006-10003

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Fri, 14 Aug 2026 21:34:23 +0000
Responsible-Changed-Why:
Take


State-Changed-From-To: open->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Fri, 14 Aug 2026 21:40:17 +0000
State-Changed-Why:
I have just committed it and signed and updated new pkg-vulnerabilities.

Thanks Showta!


From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60589 CVS commit: pkgsrc/doc
Date: Fri, 14 Aug 2026 21:38:07 +0000

 Module Name:	pkgsrc
 Committed By:	leot
 Date:		Fri Aug 14 21:38:07 UTC 2026

 Modified Files:
 	pkgsrc/doc: pkg-vulnerabilities

 Log Message:
 pkg-vulnerabilities: CVE-2025-69720 was fixed in ncurses-6.6

 According upstream NEWS it was fixed in 20251213 and 6.6 was released
 on 20251230.

 Reported via PR pkg/60589 from Showta Ishizaki, thanks!


 To generate a diff of this commit:
 cvs rdiff -u -r1.776 -r1.777 pkgsrc/doc/pkg-vulnerabilities

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.