Your message dated Thu, 12 Nov 2026 08:24:00 +0000
with message-id <[email protected]>
and subject line Bug#1150954: fixed in pftools 3.2.14-1
has caused the Debian Bug report #1150954,
regarding pftools: Fix heap buffer overflow in PrintTSV
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1150954: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1150954
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: pftools
Version: 3.2.12-3ubuntu1
Severity: normal
Tags: patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: origin-ubuntu stonking ubuntu-patch
Hi,
pfsearchV3 has a one-byte heap overflow in PrintTSV() (src/C/utils/output.c):
char * ac = calloc(strlen(prf->AC_Number),sizeof(char));
strcpy(ac,prf->AC_Number);
The buffer has no room for the ending NUL (the other output functions
in the same file use 1+strlen()). It's visible with -D_FORTIFY_SOURCE=3,
which Ubuntu uses by default: the TSV output test aborts with
"*** buffer overflow detected ***" and the build fails.
The attached patch fixes it; with it all 6 tests pass. It's still present
in upstream master (v3.2.13).
Ubuntu bug: https://bugs.launchpad.net/bugs/2170856
Thanks,
Sebastien Bacher
-- System Information:
Debian Release: forky/sid
APT prefers resolute-updates
APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500,
'resolute'), (100, 'resolute-backports')
Architecture: amd64 (x86_64)
Kernel: Linux 7.0.0-38-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Description: Fix heap buffer overflow in PrintTSV
The buffer for the accession number is allocated without room for the
ending NUL, so the following strcpy() writes one byte past the end.
With _FORTIFY_SOURCE=3 this aborts pfsearchV3 -o 7 (TSV output).
The other output functions already allocate 1+strlen().
Author: Sebastien Bacher <[email protected]>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2170856
Forwarded: https://github.com/sib-swiss/pftools3/pull/33
Last-Update: 2026-10-15
Index: pftools-3.2.12/src/C/utils/output.c
===================================================================
--- pftools-3.2.12.orig/src/C/utils/output.c
+++ pftools-3.2.12/src/C/utils/output.c
@@ -64,7 +64,7 @@ void PrintTSV(const struct Profile * con
while ( *cptr != ';' && *cptr != '\0') ++cptr;
*cptr = '\0';
- char * ac = calloc(strlen(prf->AC_Number),sizeof(char));
+ char * ac = calloc(1+strlen(prf->AC_Number),sizeof(char));
strcpy(ac,prf->AC_Number);
cptr = ac;
while ( *cptr != ';' && *cptr != '\0' ) ++cptr;
--- End Message ---
--- Begin Message ---
Source: pftools
Source-Version: 3.2.14-1
Done: Andreas Tille <[email protected]>
We believe that the bug you reported is fixed in the latest version of
pftools, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Tille <[email protected]> (supplier of updated pftools package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 11 Nov 2026 21:58:57 +0100
Source: pftools
Architecture: source
Version: 3.2.14-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team
<[email protected]>
Changed-By: Andreas Tille <[email protected]>
Closes: 1150954
Changes:
pftools (3.2.14-1) unstable; urgency=medium
.
* New upstream version
Closes: #1150954
* d/watch: version=5
* Standards-Version: 4.7.4 (routine-update)
* Reflow Uploaders field (cme)
* Reformat the Last-Update date as ISO YYYY-MM-DD.
* Build-Depends: dh-sequence-single-binary
* Fix build with debhelper compat 14
Checksums-Sha1:
7b37262cdfd5e24e5684c4487b1e27ddda57e730 2095 pftools_3.2.14-1.dsc
eaee8848e17132d16b58abd546a4045025a456aa 44068024 pftools_3.2.14.orig.tar.gz
4ed3811ff902c68161fc99aa089c5499779d2628 7588 pftools_3.2.14-1.debian.tar.xz
8794252957e21e462bb07877191d51935d33762e 7511 pftools_3.2.14-1_amd64.buildinfo
Checksums-Sha256:
f966aa13a925567074ae0951196253ce2adf12b91f4aa258934397d350c3cfde 2095
pftools_3.2.14-1.dsc
2500b25fe53e31f00f59c21fe5b77109f7f90620d9ba9c4c5f033227e9e5c90a 44068024
pftools_3.2.14.orig.tar.gz
49569c961a8338f01f3b4cd1cb90a4fbc7859c5035425db9bbbb6a55c039269c 7588
pftools_3.2.14-1.debian.tar.xz
faa25ac590e5a39c660236b24b0eac08fd3b5c788b456a92c037945822c05634 7511
pftools_3.2.14-1_amd64.buildinfo
Files:
878b972178e84cbe4f54de4cbd4219b9 2095 science optional pftools_3.2.14-1.dsc
9100980187f9c60fcb051b8e170c1ce9 44068024 science optional
pftools_3.2.14.orig.tar.gz
6f35e4175de72de40310fa50f458b979 7588 science optional
pftools_3.2.14-1.debian.tar.xz
22fb0a3d0ea4b19317623c2c9e9ec419 7511 science optional
pftools_3.2.14-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmr1bcwRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtGduQ//ZkegcozB8hYiKPmQKfk6RIDlzBqFtcjD
ZNHpRMoAftAydbo3ZjLS4TbM9fnyhl+cynaUejgqHVrm4E65rUTLf3rtNgWAqgWQ
WPHF4fm1d8dWgFC8yj/8nQwmoUv/zCQ+REc3h3zv/Q/gDJlgz3SduPFNQNOqGViJ
Ef1ise2xIUYgPNWwdLOaVgv0DWdfueyHp/tV+pF3Se1fz2NeLi9yD1J4TrMsz0Do
gZ4AO+hNxVtteiti2rz58V/L96Cm6mTJL0kkdxr8nyjiI2rEol1KdIJ2LL77pO5C
S+409aPhKNos0bZkxi2g4W6PjyPK9UNnTUbLJ/DY0iMqosPFdEXrwyk7JsbSVpzn
eaOGovXtnYc2IkMvWnIyWVWcKeBbCijU/dnbT+NbU28SbrP5wKWpLEEsgzZP83CT
+nzSu8L5pbO8wvOMPI0vxjoF+LMQU5hJ6C2FjUe0q/SvmNLR0UHuRXiFHSrspTNU
c6rlT4g56LkT+8PiqmkO6/3c3JCypcsVbaXflt+OixTePUZmCeROIIgib2+rlT8N
MmD2OUqnqC90MbXfWw9xHUrKbokxolvAPTQg5WS8jGKVdlNYLPZhVbHUOV4GsnrW
631N4eUgefqEo6xNvPaWtgfBi4TFta4oQdEPTRXojTV+v9Tam2snwotCU15TyIDg
WFT5HGrNHdk=
=m8bo
-----END PGP SIGNATURE-----
pgp7BGD6Fso_G.pgp
Description: PGP signature
--- End Message ---