Skip to content

vex: allowlist runtime kernel packages for ingestion - #1967

Open
crozzy wants to merge 2 commits into
quay:mainfrom
crozzy:add-ignore-kernel-flag
Open

vex: allowlist runtime kernel packages for ingestion#1967
crozzy wants to merge 2 commits into
quay:mainfrom
crozzy:add-ignore-kernel-flag

Conversation

@crozzy

@crozzy crozzy commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@crozzy
crozzy force-pushed the add-ignore-kernel-flag branch from 33a44c2 to c1fba0f Compare July 23, 2026 18:36
@crozzy

crozzy commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

This is how things looks from a DB perpective.

Feed: Old /vex/
Total vulns: 3,418,397
New kernel vulns: 329,541

Feed: New /vex-feed/
Total vulns: 4,639,723
New kernel vulns: 843,421

Some container images (kubevirt, bootc, driver-toolkit) ship real
kernel RPMs. Replace the blanket kernel-* reject with an allowlist of
runtime packages so those advisories can match, while still filtering
headers/docs/debuginfo that commonly appear in userspace images.

Signed-off-by: crozzy <joseph.crosland@gmail.com>
@crozzy
crozzy force-pushed the add-ignore-kernel-flag branch from c1fba0f to 3a7d31d Compare July 30, 2026 17:58
@crozzy
crozzy marked this pull request as ready for review July 30, 2026 18:18
@crozzy
crozzy requested review from a team as code owners July 30, 2026 18:18
@crozzy
crozzy requested a review from hdonnay July 30, 2026 18:18
@crozzy crozzy changed the title Add ignore kernel flag vex: allowlist runtime kernel packages for ingestion Jul 30, 2026
@BradLugo
BradLugo self-requested a review August 5, 2026 18:26

@BradLugo BradLugo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation looks pretty good to me. Have some notes on the allow list.

minor nit:

vex: Add config flag to ignore kernel vulnerabilities

I don't think we usually capitalize the first word in a scope git summary.


I ran an experiment last Friday comparing data from main with the changes from this PR. I found similar findings as Crozzy; there were 319,352 kernel vulns (from the old VEX feed), and I spot-checked some results from an image that included the kernel-core package. It all seemed good to me.

Comment thread rhel/vex/parser.go
Comment on lines +1240 to +1245
"kernel",
"kernel-core",
"kernel-modules",
"kernel-modules-core",
"kernel-modules-extra",
"kernel-devel",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we'd want kernel-devel. I think we'd want some additions too. Here's what I propose:

Suggested change
"kernel",
"kernel-core",
"kernel-modules",
"kernel-modules-core",
"kernel-modules-extra",
"kernel-devel",
"kernel",
"kernel-core",
"kernel-modules",
"kernel-modules-core",
"kernel-modules-extra",
// unified kernel image
"kernel-uki-virt",
"kernel-uki-virt-addons",
// realtime
"kernel-rt",
"kernel-rt-core",
"kernel-rt-kvm",
"kernel-rt-modules",
"kernel-rt-modules-core",
"kernel-rt-modules-extra",
// aarch64
"kernel-64k",
"kernel-64k-core",
"kernel-64k-modules",
"kernel-64k-modules-core"
"kernel-64k-modules-extra"
// realtime aarch64
"kernel-rt-64k",
"kernel-rt-64k-core",
"kernel-rt-64k-kvm",
"kernel-rt-64k-modules",
"kernel-rt-64k-modules-core",
"kernel-rt-64k-modules-extra",

Might also want to add the kernel-debug-related packages.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vojtapolasek do you have some view on this?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @BradLugo. Just for the context, I am collaborating on a project which is a wrapper around clair and scans running systems, not only containers. And kernel is obviously present on these systems.
I also agree that kernel-devel and kernel-headers are not needed in this filter, at least for now.
Extending the list and merging the PR as noted in @BradLugo comment would drastically decrease number of false negatives we currently get, because kernel packages are just ignored now.

Comment thread docs/implementation/rhcos_versioning.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to add this? I suspect it was meant to be part of some other rhcos work, but not sure.

Comment thread rhcos-labels.json Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question here; did you mean to add this?

This patch gives the operator the ability to restore previous behaviour
of the RHEL VEX parser to ignore kernel vulnerabilities. setting the
ingore_kernel_packages flag to true will also change the updater
fingerprint and force a full update (as will subsequently removing
it/setting it to false).

Signed-off-by: crozzy <joseph.crosland@gmail.com>
@crozzy
crozzy force-pushed the add-ignore-kernel-flag branch from 3a7d31d to c643efc Compare August 6, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants