aboutcode-org / vulnerablecode

A free and open vulnerabilities database and the packages they impact. And the tools to aggregate and correlate these vulnerabilities. Sponsored by NLnet https://nlnet.nl/project/vulnerabilitydatabase/ for https://www.aboutcode.org/ Chat at https://gitter.im/aboutcode-org/vulnerablecode Docs at https://vulnerablecode.readthedocs.org/
https://public.vulnerablecode.io
Apache License 2.0
543 stars 201 forks source link

Import data from https://github.com/nluedtke/linux_kernel_cves #564

Open pombredanne opened 3 years ago

pombredanne commented 3 years ago

https://github.com/nluedtke/linux_kernel_cves has a very nice set of correlated data where the upstream Linux kernel versions are handled, likely inferred from distro advisories.

@nluedtke I am curious about how you create the data in the first place? You wrote:

The output was generated automatically through a set of tools that has not been fully tested or made public yet.

It would be awesome to see the code too.

nluedtke commented 3 years ago

Somehow I completely missed this. The data is collected as a set of Breaking Commits and Fixing Commits for each vuln from various sources that provide that information (google, red hat, debian, ubuntu, etc..) Then for each vuln the first vulnerable version is determined and then through a serious of git manipulations the breaking commits are translated for each stream that might be vulnerable, that provides the first vulnerable version for each stream. The same is done for the breaking commits which gives you a range for each stream (ie 4.15.3 up to 4.15.92). There are various nuances that are slightly more complicated, for instance vulnerabilities that cause by improper backporting where the mainline isn't vulnerable or vulnerabilities that different fixes in one stream than other. But in general thats the process.

nluedtke commented 3 years ago

As far as making the code public. That is on my to do list when the day job slows down a bit.

pombredanne commented 3 years ago

@nluedtke This seems awesome! Are you using and abusing any git bisect for this? And is you code in shell and Python?

pombredanne commented 7 months ago

As far as making the code public. That is on my to do list when the day job slows down a bit.

@nluedtke gentle ping .... it has been a few years ;) any update?