All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mikko Rapeli <mikko.rapeli@linaro.org>
To: yocto@lists.yoctoproject.org, fabian.hanke@bosch.com
Subject: Re: [yocto] CVE Scanners and Package Version
Date: Tue, 2 Jan 2024 09:24:28 +0200	[thread overview]
Message-ID: <ZZO6LMkb9ECnPFev@nuoska> (raw)
In-Reply-To: <01of.1703328456869824351.98Vs@lists.yoctoproject.org>

Hi,

On Sat, Dec 23, 2023 at 02:47:36AM -0800, fabian.hanke via lists.yoctoproject.org wrote:
> Hello Yocto community,
> 
> we must provide a SBOM for our Yocto based product which will then be used for (internal) CVE scanning by the security department. Generating the base document in cycloneDX format is fairly easy (thanks to the nature of Yocto).

Note that SBOM is mostly used for documenting SW components and their licenses.
Obvious but needs to be made clear.

> But we do not know how to include information about CVE patches for each package in the document. Not providing these, will cause a lot of “false” feedback on CVEs for specific versions which are already patched (but version number did not change). This problem was also mentioned a few days ago in the presentation from David Reyna: https://youtu.be/PegU1G1bA80?t=1127. I like the proposed solution of adding a vendor specific string to the package version. But I'm still wondering: How would the CVE scanner vendor know which CVEs are included in a yocto specific version and which are not?

If the intention is to know CVE paching and analysis status of a product, then I'd use
the yocto upstream tooling for this, cve-check.bbclass. SBOM and SPDX are tempting but not actually
useful for CVE patching and analysis work, except when they show that a lot of old open source
SW components are embedded into various binaries.

The work needed to push CVE data into SPDX and SBOM is not worth it and it's better to put
the saved effort into fixing the actual CVEs. If management wants reports, generate
them from cve-check.bbclass output, but note that CVE database is a moving target too.

AFAIK, and I'd be happy to be proven wrong, SPDX and SBOM don't help matching SW component names
and version strings so that comparison against CVE database information works. Only license names
are standardized.

Cheers,

-Mikko


  parent reply	other threads:[~2024-01-02  7:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-23 10:47 CVE Scanners and Package Version fabian.hanke
2023-12-24  9:24 ` [yocto] " Richard Purdie
2023-12-24  9:42   ` Vincent Prince
2024-01-02  7:24 ` Mikko Rapeli [this message]
2024-01-02 21:46   ` adrian.freihofer
2024-01-03  7:41     ` Mikko Rapeli
2024-01-03 16:54       ` Hanke Fabian (DC/PAR)
2024-01-04 13:49     ` Marta Rybczynska
2024-01-12  8:03       ` adrian.freihofer

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=ZZO6LMkb9ECnPFev@nuoska \
    --to=mikko.rapeli@linaro.org \
    --cc=fabian.hanke@bosch.com \
    --cc=yocto@lists.yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.