Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

CVE list: Show only the currently running kernel meta-package #750

Closed
a-martynovich opened this issue Mar 4, 2020 · 3 comments · Fixed by #791
Closed

CVE list: Show only the currently running kernel meta-package #750

a-martynovich opened this issue Mar 4, 2020 · 3 comments · Fixed by #791
Labels
story-points-unknown Unknown Story Points

Comments

@a-martynovich
Copy link
Contributor

a-martynovich commented Mar 4, 2020

Hide all packages named as linux-* except for kernel_deb_metapackage and kernel_headers_deb_metapacakage received from agent.
Requires WoTTsecurity/agent#268

@vpetersson
Copy link
Contributor

Related to #715

@a-martynovich
Copy link
Contributor Author

@rptrchv If you have a chance to take this task, here's what needs to be done.

  1. Make a list of all kernel meta-packages. Ubuntu CVE tracker has a somewhat full list, but we can go further and look at Ubuntu source packages (look for linux-meta*), then for every linux-meta* find a kernel meta-package. Examples: linux, linux-aws, linux-gcp, linux-oracle. I don't know if the same is true for Debian, need to look further.
  2. Among the device's packages find a package whose name is in the list of kernel meta-packages and whose version matches Device.kernel_deb_package.
  3. In CVE view: for all Ubuntu and Debian hide all packages whose names match the regex linux-* except for the package found above.

@rptrchv rptrchv self-assigned this Mar 6, 2020
@a-martynovich
Copy link
Contributor Author

For Debian it's different. Packages like linux-image-<version>-<platform> will be considered vulnerable, but the meta-package which should be shown is linux-image-<platform> (because it can be upgraded). Their versions don't match. The list of kernel meta-packages is also different.

So... let's limit this task to Ubuntu for now. I don't know how to write the logic for Debian yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
story-points-unknown Unknown Story Points
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants