Headline
CVE-2021-38172: Re: Autopkgtest for perm
perM 0.4.0 has a Buffer Overflow related to strncpy. (Debian initially fixed this in 0.4.0-7.)
- To: [email protected]
- Subject: Re: Autopkgtest for perm
- From: Nilesh Patra <[email protected]>
- Date: Mon, 2 Aug 2021 18:44:55 +0530
- Message-id: <[🔎] [email protected]>
- In-reply-to: <[🔎] [email protected]>
- References: <[🔎] CAJFurRRrERrOccMGHRm2ghj=6fmu5AD3Nm8HXRfeYRpO4bhG5g@mail.gmail.com> <[🔎] [email protected]>
On 8/2/21 6:30 PM, Andreas Tille wrote:
Hi Shruti,
On Mon, Aug 02, 2021 at 04:50:36PM +0530, Shruti Sridhar wrote:
I have written autopkgtests for perm[1]
The package initially failed blhc in the pipeline but when I fixed the error [2]
Congratulations, you found a security issue as it seems. I’m happy that enabling blhc is doing a sensible job
the autopkgtest which was initially working fails [3].
The autopkgtest says:
Info 3: Sortubg buckets using 2 CPUs . *** buffer overflow detected ***: terminated Info 3: Successfully made the index
My guess is that enabling hardening options has uncovered some memory leak. I’d recommend firing up gdb and try finding the issue.
The basic problem is that it has several instances of strcpy and sprintf, which are famously known for causing buffer overflows.
I think the sensible option is to replace these with strlcpy and strcat when needed.
But the problem is that the code needs a lot of refactoring, rewriting and debugging to get these things in properly. So I am tempted to say that we should consider to remove perm from the archive. Upstream is dead, and I do not think it is worth keeping this in anymore
What do you think?
Nilesh
Attachment: OpenPGP_signature
Description: OpenPGP digital signature
Reply to:
Nilesh Patra (on-list)
Nilesh Patra (off-list)
Follow-Ups:
- Re: Autopkgtest for perm
- From: Nilesh Patra [email protected]
- Re: Autopkgtest for perm
References:
- Autopkgtest for perm
- From: Shruti Sridhar [email protected]
- Re: Autopkgtest for perm
- From: Andreas Tille [email protected]
- Autopkgtest for perm
Prev by Date: Re: Autopkgtest for perm
Next by Date: Re: Autopkgtest for perm
Previous by thread: Re: Autopkgtest for perm
Next by thread: Re: Autopkgtest for perm
Index(es):
- Date
- Thread