Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 0/2] Add CVE reporting to pkg-stats
@ 2020-02-15 12:44 Titouan Christophe
  2020-02-15 12:44 ` [Buildroot] [PATCH v3 1/2] support/scripts/pkg-stats: add support for CVE reporting Titouan Christophe
  2020-02-15 12:44 ` [Buildroot] [PATCH v3 2/2] docs/manual: describe the new <pkg>_IGNORE_CVES variable Titouan Christophe
  0 siblings, 2 replies; 12+ messages in thread
From: Titouan Christophe @ 2020-02-15 12:44 UTC (permalink / raw)
  To: buildroot

Hello,

This set of commit extends the pkg-stats tool to use the NVD database
(https://nvd.nist.gov/vuln/data-feeds) to see if the current version
of each Buildroot package is affected by a CVE.

An example result can be seen here:

 - Human readable HTML:       https://mypi.cz/pkg-stat.html
 - Machine parseable JSON:    https://mypi.cz/pkg-stat.json

Thanks to this, we can see that 84 of our packages are apparently
affected by a total of 252 CVEs.

A new per-package variable, <pkg>_IGNORE_CVES, is introduced, and
allows to tell the tool to ignore some CVEs, for example because it is
fixed by a local patch in Buildroot, or because the CVE does not apply
to the Buildroot package (the CVE only affects a non-Linux operating
system, or affect a functionality of the package that isn't built in
Buildroot).

Of course, the results are not perfect:

 - The NVD database product names certainly don't 100% match the
   Buildroot package names. We might have to add some extra metadata
   information in each package (CPE ID ?) to map to the correct NVD
   database product name.

   -> See for instance subversion, where all CVEs actually refer to
      a Jenkins plugin

 - Language-specific packages (for example: python-paho-mqtt and paho-mqtt-c)
   are probably not correctly handled.

 - Buildroot packages that have a version selection are not correctly
   handled.

But overall, it already provide useful results. The plan is of course
to implement e-mail notification to Buildroot developers in charge of
packages with unfixed CVEs, in a second step.

Thanks to Thomas Petazzoni, Thomas DS and all the reviewers for this effort !


Best regards,

Titouan

---
Thomas Petazzoni (2):
  support/scripts/pkg-stats: add support for CVE reporting
  docs/manual: describe the new <pkg>_IGNORE_CVES variable

 docs/manual/adding-packages-generic.txt |  14 +++
 support/scripts/pkg-stats               | 159 +++++++++++++++++++++++-
 2 files changed, 172 insertions(+), 1 deletion(-)

-- 
2.24.1

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-02-20 11:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-15 12:44 [Buildroot] [PATCH v3 0/2] Add CVE reporting to pkg-stats Titouan Christophe
2020-02-15 12:44 ` [Buildroot] [PATCH v3 1/2] support/scripts/pkg-stats: add support for CVE reporting Titouan Christophe
2020-02-15 15:49   ` Peter Korsgaard
2020-02-19 18:48   ` Thomas Petazzoni
2020-02-19 20:33     ` Thomas De Schampheleire
2020-02-19 21:34       ` Peter Korsgaard
2020-02-20  6:31         ` Thomas De Schampheleire
2020-02-20  7:03           ` Peter Korsgaard
2020-02-20 10:26       ` Titouan Christophe
2020-02-20 11:42         ` Peter Korsgaard
2020-02-15 12:44 ` [Buildroot] [PATCH v3 2/2] docs/manual: describe the new <pkg>_IGNORE_CVES variable Titouan Christophe
2020-02-15 15:50   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox