CIP-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Kernel Vulnerability Triaging and SBOMs for CIP
@ 2026-11-19 13:57 Christoph Steiger
  2026-11-26 10:10 ` [cip-dev] " Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Steiger @ 2026-11-19 13:57 UTC (permalink / raw)
  To: cip-dev
  Cc: Jan Kiszka, Moessbauer, Felix (FT RPD CED OES-DE),
	Quirin Gylstorff, Masoudifar, Negar (FT RPD CED OES-DE)

Hi all,

as we all know too well kernel security has become a huge topic in the 
last years. Triaging vulnerabilities has also become a necessity for 
every user, and CIP already provides a central place for vulnerability 
reports [1] and tooling to triage vulnerabilities [2].

Other ecosystems have also developed solutions, famously yocto provides 
kernel SBOMs and tooling now that help deal with the huge number of CVEs 
[3]. Recently the kernel team has also introduced native SBOM support 
[4], available since v7.2.

The general ecosystem seems to move in the direction of kernel SBOMs, 
both for compliance reasons and for easy triaging. Kernel SBOMs, as 
provided by both yocto and the kernel itself now, together with 
vulnerabilities from vulns.git (with the affected file information) make 
it very easy to triage your CVEs, without requiring much additional 
tooling on the user side. I expect that we will see further focus on 
this SBOM centric approach. This is also pushed by the kernel security team.

I think it would be a good idea for CIP to also follow this approach. 
This would give us kernel SBOMs, easy triaging and access to all tools 
developed for yocto and the mainline kernel.

For this, the following things need to be done:
1. Backport the SBOM series into our SLTS kernels
    This should be pretty easy except for the v4.19 version, as some 
prerequisites are missing there. The series consists of around 15 
patches, but is solely confined to the scripts/sbom directory.
2. Generate kernel SBOMs with isar-cip-core
    This requires some changes in isar itself, as the CIP kernels are 
built with isar infrastructure.
3. Integrate affected file information into cip-kernel-sec
    Currently the vulnerability reporting done in cip-kernel-sec does 
not include the affected file information provided by the CVEs in 
vulns.git. I think this would be a generally good thing to have.

I already have a basic PoC where I backported the SBOM series to the 
v6.12.111-cip32 kernel and did some quick-and-dirty integration into 
isar and isar-cip-core. With that you can build a linux-sboms package 
that contains the kernel SBOMs. Let me know if you would be interested 
to have a look at it, and I will clean it up a little and post it here.

Please let me know what you think of the ideas I outlined here.

[1] https://gitlab.com/cip-project/cip-kernel/cip-kernel-sec
[2] https://gitlab.com/cip-project/cip-kernel/kernel-cve-triage
[3] 
https://docs.yoctoproject.org/security-manual/vulnerabilities.html#linux-kernel-vulnerabilities
[4] https://docs.kernel.org/tools/sbom/sbom.html

Best regards,
Christoph
-- 
Siemens AG, Foundational Technologies
Linux Expert Center


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

* Re: [cip-dev] Kernel Vulnerability Triaging and SBOMs for CIP
  2026-11-19 13:57 Kernel Vulnerability Triaging and SBOMs for CIP Christoph Steiger
@ 2026-11-26 10:10 ` Pavel Machek
  2026-11-26 14:00   ` Christoph Steiger
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2026-11-26 10:10 UTC (permalink / raw)
  To: christoph.steiger
  Cc: cip-dev, Jan Kiszka, Moessbauer, Felix (FT RPD CED OES-DE),
	Quirin Gylstorff, Masoudifar, Negar (FT RPD CED OES-DE)

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

Hi!

> For this, the following things need to be done:
> 1. Backport the SBOM series into our SLTS kernels
>    This should be pretty easy except for the v4.19 version, as some
> prerequisites are missing there. The series consists of around 15 patches,
> but is solely confined to the scripts/sbom directory.

I'm not too familiar with SBOMs. Could you provide example output?

We have kernel development history in git. Some of that is copy pasted
into CVE reports. That's not very useful.

Taking copy of that and presenting it as a SBOM will not be too
useful, either, and I believe will make many people unhappy and ask
wrong questions.

Best regards,
								Pavel

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

* Re: [cip-dev] Kernel Vulnerability Triaging and SBOMs for CIP
  2026-11-26 10:10 ` [cip-dev] " Pavel Machek
@ 2026-11-26 14:00   ` Christoph Steiger
  0 siblings, 0 replies; 3+ messages in thread
From: Christoph Steiger @ 2026-11-26 14:00 UTC (permalink / raw)
  To: Pavel Machek
  Cc: cip-dev, Jan Kiszka, Moessbauer, Felix (FT RPD CED OES-DE),
	Quirin Gylstorff, Masoudifar, Negar (FT RPD CED OES-DE)

Hi Pavel,

I am not sure you noticed, but this is a repost of the earlier posting 
here [1]. For some reason this got stuck for a week and I posted the 
other one in the meantime, which appeared immediately. We have 
discussions on both posts now, but I would suggest we try to keep it in 
the first post.

> Hi!
> 
>> For this, the following things need to be done:
>> 1. Backport the SBOM series into our SLTS kernels
>>     This should be pretty easy except for the v4.19 version, as some
>> prerequisites are missing there. The series consists of around 15 patches,
>> but is solely confined to the scripts/sbom directory.
> 
> I'm not too familiar with SBOMs. Could you provide example output?
> 
 From the docs [2]:
   When invoked, KernelSbom analyzes all files involved in the build and
   generates Software Bill of Materials (SBOM) documents in SPDX 3.0.1
   format. The generated SBOM documents capture:

     * Final output artifacts, typically the kernel image and modules

     * All source files that contributed to the build with metadata and
       licensing information

     * Details of the build process, including intermediate artifacts and
       the build commands linking source files to the final output
       artifacts

What we are probably most interested in is the listing of incldued 
source files of a build, as this is useful for triaging vulnerabilities. 
An entry looks like this:

{
       "type": "software_File",
       "spdxId": "b:1085",
       "creationInfo": "_:creationinfo",
       "name": "fs/efivarfs/file.c",
       "verifiedUsing": [
         {
           "type": "Hash",
           "hashValue": 
"0b043a061086790dba2bcef05c156cf5c56119ae25e4e2bf9665f674a55e10a1",
           "algorithm": "sha256"
         }
       ],
       "software_primaryPurpose": "source",
       "software_contentIdentifier": [
         {
           "type": "software_ContentIdentifier",
           "software_contentIdentifierType": "gitoid",
           "software_contentIdentifierValue": 
"cb1b6d0c34545c701ca36bc881ee922d1ff41bac"
         }
       ]
     }

> We have kernel development history in git. Some of that is copy pasted
> into CVE reports. That's not very useful.
> 
> Taking copy of that and presenting it as a SBOM will not be too
> useful, either, and I believe will make many people unhappy and ask
> wrong questions.
> 
> Best regards,
> 								Pavel

[1] 
https://lore.kernel.org/cip-dev/b62df3a5-fc1a-4fbd-a81b-0ffe38d8d854@siemens.com/T/#t
[2] https://docs.kernel.org/tools/sbom/sbom.html

Kind regards,
Christoph

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

end of thread, other threads:[~2026-11-26 14:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 13:57 Kernel Vulnerability Triaging and SBOMs for CIP Christoph Steiger
2026-11-26 10:10 ` [cip-dev] " Pavel Machek
2026-11-26 14:00   ` Christoph Steiger

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