Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Titouan Christophe <titouan.christophe@mind.be>
Cc: buildroot@buildroot.org, Bernd Kuhls <bernd@kuhls.net>,
	 Chris Packham <judge.packham@gmail.com>,
	Giulio Benetti <giulio.benetti@benettiengineering.com>,
	 Ricardo Martincoski <ricardo.martincoski@datacom.com.br>,
	Romain Naour <romain.naour@gmail.com>,
	 "Yann E . MORIN" <yann.morin@orange.com>,
	thomas.perale@mind.be
Subject: Re: [Buildroot] [PATCH v2 1/2] utils/checkpackagelib: add new check MissingCVEPatch
Date: Thu, 10 Sep 2026 21:41:20 +0200	[thread overview]
Message-ID: <aqMHaMO8m4LZa-4Z@windsurf> (raw)
In-Reply-To: <20260703083137.155274-1-titouan.christophe@mind.be>

Hello Titouan,

On Fri, Jul 03, 2026 at 10:31:36AM +0200, Titouan Christophe via buildroot wrote:
> To indicate that a patch fixes a vulnerability in Buildroot, the convention is:
> 1. In the patch file, add a tag 'CVE: <cve id>'
> 2. In <pkg>.mk, and an entry to <PKG>_IGNORE_CVES, and add a comment above
>    that new entry to reference the patch file(s)
> 
> However, as packages get bumped and their patches are added, removed or
> rebased; it happens that IGNORE_CVES get outdated. One important issue is
> marking a CVE as ignored, while the corresponding patch is not in Buildroot.
> 
> To detect such cases, add a new checker to checkpackagelib that finds
> occurences of:
> 
>     # 000x-some-patch.patch
>     PKG_IGNORE_CVES += CVE-XXXX-YYYY
> 
> For each one of them, ensure that the mentioned patch files actually exist
> and contain the `CVE: ...` tag.
> 
> Assisted-by: Claude:claude-opus-4.8
> Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>

Thanks, series applied!

I have applied PATCH 2/2 as the first patch, because it fixes the
issues, before introducing the check that was your PATCH 1/2.

In your PATCH 2/2, I have adjust the binutils fixup: the
BINUTILS_IGNORE_CVES entry was no longer relevant, as only binutils up
to 2.44 was vulnerable, but we only support 2.45+ now (and so the
patch referenced by this IGNORE_CVES annotation was no longer there).

One additional thing that could be done is verify that the CVE: tag in
the patch references a CVE number that actually matches the one in the
<pkg>_IGNORE_CVES entry. But oh well, you proposal is already
improving the situation a lot!

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2026-09-10 19:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-03  8:31 [Buildroot] [PATCH v2 1/2] utils/checkpackagelib: add new check MissingCVEPatch Titouan Christophe via buildroot
2026-07-03  8:31 ` [Buildroot] [PATCH v2 2/2] package/{binutils, gpsd, micropython, net-tools, util-linux, x11vnc}: fix newly implemented MissingCVEPatch Titouan Christophe via buildroot
2026-09-10 19:41 ` Thomas Petazzoni 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=aqMHaMO8m4LZa-4Z@windsurf \
    --to=buildroot@buildroot.org \
    --cc=bernd@kuhls.net \
    --cc=giulio.benetti@benettiengineering.com \
    --cc=judge.packham@gmail.com \
    --cc=ricardo.martincoski@datacom.com.br \
    --cc=romain.naour@gmail.com \
    --cc=thomas.perale@mind.be \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=titouan.christophe@mind.be \
    --cc=yann.morin@orange.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