Coder Social home page Coder Social logo

Grype returns indirect vulnerability matches on 'kernel' source rpms for the 'kernel-headers' rpm for container images that don't have the kernel about grype HOT 5 CLOSED

zhill avatar zhill commented on June 14, 2024
Grype returns indirect vulnerability matches on 'kernel' source rpms for the 'kernel-headers' rpm for container images that don't have the kernel

from grype.

Comments (5)

zhill avatar zhill commented on June 14, 2024 1

If possible, I'd prefer to filter to ignored matches rather than opaquely dropping, since the matches are valid based on the data. The issue is the semantics of those specific packages and their known relationships.

from grype.

zhill avatar zhill commented on June 14, 2024 1

I've started working on something here to add a new built-in set of ignore rules that would apply by default but able to be skipped via a config option.

from grype.

zhill avatar zhill commented on June 14, 2024 1

I've looked into the debian-based case and it looks like the kernel headers packages are less stably-named there so I'll focus my efforts initially on RPM/redhat-based solution and then we can discuss things like if we want to support ignore rules that do a package-name wildcard match (e.g. "linux-headers-*" since debian uses "linux-headers-amd64" and "linux-headers-arm64") so the issue manifests a little bit differently in those distros.

from grype.

wagoodman avatar wagoodman commented on June 14, 2024

Summarizing some offline conversations... a path forward here could be to:

  • For RHEL environments only: drop or filter matches that are against kernel-headers and are an indirect match.
  • For Debian environments only: drop or filter matches that are against linux-headers and are an indirect match.

The distinction between dropping and filtering (showing up in the ignored matches section) should be considered carefully.

from grype.

zhill avatar zhill commented on June 14, 2024

note: this still needs an update for the non-rpm cases.

from grype.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.