-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux-kernel-cataloger produces thousands of version-less components. #1781
Labels
bug
Something isn't working
Comments
Thanks for the ping back in Slack. I have added repro steps here (this works for me on an M1 mac -- if you're not on an M1, the open a docker container w/ necessary packages for image mounting: Inside that docker container, run the following:
|
This was referenced May 8, 2023
Merged
Closed
This was referenced May 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened:
Scanning a disk image (mounted as a filesystem) before the linux-kernel-cataloger was added returned around 600 components. After the addition of the cataloger, scans returned around 7000 components, many of which have no versions (filesize has gone from 1MB to 37 MB). A subsequent CVE scan has doubled the amount of CVEs identified, and while I have not been able to triage them, I suspect nearly all the new CVEs are false positives.
I am not very conversant on the topic of kernel modules and did not quite follow the intent of the PR which added this functionality; it looks like the examples in the PR thread intended to use these files on disk to tie back to an actual kernel or package at a specific version. That most definitely is not happening in our case. Here is an example snippet from the resulting SBOM (syft-json format):
What you expected to happen:
Output to be limited to versioned packages that are likely to match a distribution CPE.
Steps to reproduce the issue:
Scan an ubuntu filesystem.
Anything else we need to know?:
Environment:
Output of
syft version
:syft 0.79.0
OS (e.g:
cat /etc/os-release
or similar):Ubuntu 22.04.2 LTS
The text was updated successfully, but these errors were encountered: