From: Tom Rini <trini@konsulko.com>
To: Jincheng Wang <jc.w4ng@gmail.com>
Cc: u-boot@lists.denx.de
Subject: Re: Double free vulnerability in sqfs commands ("sqfsls" and "sqfsload")
Date: Thu, 14 Oct 2021 13:46:47 -0400 [thread overview]
Message-ID: <20211014174647.GH7964@bill-the-cat> (raw)
In-Reply-To: <CALO=DHHD-xyH6qtKPANnWeTGoKrhCOhHVkVv-82RbkW2PKCEug@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 711 bytes --]
On Tue, Oct 12, 2021 at 04:07:43PM +0800, Jincheng Wang wrote:
> Hello U-Boot lists!
> I had been doing a fuzz testing in U-Boot .
> There is a double free bug in U-Boot, in /fs/squashfs/sqfs.c in the
> function sqfs_tokenize( ).
> On the line 307, tokens[i] is being freed and the ret is being set -ENOMEM,
> it will go to the out: label and free tokens[i] again (just like
> CVE-2020-8432, double free in do_rename_gpt_parts() ).
> Here is a sample command cause to crash in sandbox environment:
> host bind 0 test.sqsh
> sqfsls host 0 1//3
Thanks! Can you please submit a fix for this as a patch, as well as
updating the existing sqfs tests to have this as an example?
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2021-10-14 17:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-12 8:07 Double free vulnerability in sqfs commands ("sqfsls" and "sqfsload") Jincheng Wang
2021-10-14 17:46 ` Tom Rini [this message]
2021-10-15 9:05 ` Jincheng Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211014174647.GH7964@bill-the-cat \
--to=trini@konsulko.com \
--cc=jc.w4ng@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox