From: Thomas Perale via buildroot <buildroot@buildroot.org>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Thomas Perale <thomas.perale@mind.be>,
buildroot@buildroot.org,
Dario Binacchi <dario.binacchi@amarulasolutions.com>
Subject: Re: [Buildroot] [PATCH] package/drogon: add CPE information
Date: Tue, 27 Oct 2026 20:47:08 +0100 [thread overview]
Message-ID: <20261027194708.322272-1-thomas.perale@mind.be> (raw)
In-Reply-To: <auD6AVoh10Byfa_E@windsurf>
In reply of:
> On Tue, Oct 27, 2026 at 06:38:53PM +0100, Thomas Perale wrote:
>
> > Also need to include the following
> >
> > DROGON_CPE_ID_VERSION = $(subst v,,$(DROGON_VERSION))
>
> Makes sense, but...
>
> >
> > To strip out the 'v' prefix. As seen in [1], the prefix isn't used.
> >
> > After applying those changes I ran
> >
> > ```
> > make drogon-show-info | utils/generate-cyclonedx | support/scripts/cve-check --include-resolved
> > ```
> >
> > Which correctly output:
>
> ... I'm already getting the two CVEs with just my patch, i.e with
> tweaking DROGON_CPE_ID_VERSION. Any reason for that?
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
Ha yes, I remember this issue from the time I worked on fixing the cve.py logic
in [1]. There are some weird things happening with the `--include-resolved`
option and `distutils.version.LooseVersion` throwing error. iirc with
`--include-resolved` currenlty they are correctly marked as resolved but in an
hypothetical case where the vulnerability would be exploitable the comparison
between "vX.Y.Z" and "X.Y.Z" would be marked as resolved as well.
I can further go into the detail of where this logic error happen but I don't
think it's necessary.
The fixed version present in [1] doesn't include this logic error. If you give
it a try it won't work with the "v" prefix.
I still need to send those changes to the list but there was some minor things
I wanted to refactor before sending.
The fixed `cve-check` in [1] is the version I use to generate the report for
`security.buildroot.org`.
Best regards,
PERALE Thomas
[1] https://gitlab.com/essensium-mind/buildroot/-/commits/fix-cve-check
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2026-10-27 19:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 17:06 [Buildroot] [PATCH] package/drogon: add CPE information Thomas Petazzoni via buildroot
2026-10-27 17:38 ` Thomas Perale via buildroot
2026-10-27 19:23 ` Thomas Petazzoni via buildroot
2026-10-27 19:47 ` Thomas Perale via buildroot [this message]
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=20261027194708.322272-1-thomas.perale@mind.be \
--to=buildroot@buildroot.org \
--cc=dario.binacchi@amarulasolutions.com \
--cc=thomas.perale@mind.be \
--cc=thomas.petazzoni@bootlin.com \
/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