Skip to contentSkip to conversation

Kernel Vulnerability Triaging and SBOMs for CIP

DISCUSSION Christoph Steiger 3 participants 5 messages Nov 26 – Dec 4

lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
Siemens AG, Foundational Technologies
Linux Expert Center
#1 lore raw

Hi!

Quoted 5 lines

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

#2 lore raw

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.

Quoted 10 lines

Hi!

Quoted 5 lines

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"
        }
      ]
    }
Quoted 9 lines

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/[email protected]/T/#t
[2] https://docs.kernel.org/tools/sbom/sbom.html

Kind regards,
Christoph

#3 lore raw
In reply to Christoph Steiger

Hi Christoph,

I am also interested in this. And I have a question:
How do you envision managing the output from kernelsbom as part of an SBOM for the entire system?

As you know, kernelsbom supports only SPDX 3.x. We are currently in a transitional period where both SPDX 3.x and 2.3 coexist, and it is my understanding that many tools still lack robust support for SPDX 3.x.
Consequently, I thinkit is currently difficult to consolidate the output from kernelsbom with the results from the rootfs (such as those generated by debsbom) into a single, unified SBOM. At this stage, would it be better to manage the SBOMs for the kernel and the rootfs separately?

Best regards,
Nobuhiro

Quoted 68 lines

-----Original Message-----
From: Christoph Steiger via cip-dev <[email protected]>
Sent: Thursday, November 26, 2026 11:27 AM
To: [email protected]
Cc: Jan Kiszka <[email protected]>; Moessbauer, Felix (FT RPD CED OES-DE) <[email protected]>; Quirin Gylstorff <[email protected]>; Masoudifar, Negar (FT RPD CED OES-DE) <[email protected]>
Subject: [cip-dev] Kernel Vulnerability Triaging and SBOMs for CIP

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-ker
nel-vulnerabilities
[4] https://docs.kernel.org/tools/sbom/sbom.html

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

#4 lore raw

Hi Nobuhiro,

Quoted 6 lines

I am also interested in this. And I have a question:
How do you envision managing the output from kernelsbom as part of an SBOM for the entire system?

Quoted 1 line

As you know, kernelsbom supports only SPDX 3.x. We are currently in a transitional period

where both SPDX 3.x and 2.3 coexist, and it is my understanding that many tools still lack robust support for SPDX 3.x.

You are right, most of the tooling does not support SPDX 3.x fully, or at all. But I expect these tools to support it in the not-so-far future. In the transitional period I think it should be enough to convert the SBOMs to the supported standard versions. Depending on which information from the SBOM you actually use this should be enough. If we think about CVE triaging, which needs the built file information, it is in fact very easy to convert it and have all the important information still inside.

Quoted 4 lines

Consequently, I thinkit is currently difficult to consolidate the output from kernelsbom with the results from the rootfs (such as those generated by debsbom) into a single, unified SBOM. At this stage, would it be better to manage the SBOMs for the kernel and the rootfs separately?

Also considering the size of the kernel SBOMs (~50MiB for x86 defconfig builds) I think we want to have separate SBOMs. It is possible to link these SBOMs by specifying an external reference from the kernel package to the kernel SBOM, and vice versa. That way we would have a clear connection between the rootfs and kernel SBOM, but the actual dereferencing of this reference would be left to later tooling.

Quoted 2 lines

Best regards,
Nobuhiro

Best regards,
Christoph