CVE CHECK scorev3
All,
In the poky layer (yocto-4.2.3 branch) I am using the built in cve-checker and running into an issue where it is unable to produce the scorev3 metric. All CVEs have a scorev3 equivalent to 0.0. When looking at poky (yocto-4.0.9 branch) I noticed that the cve-checker uses the 1.1 version of the NVD database and can successfully produce scorev3 when running a test build. The yocto-4.2.3 branch uses version 2 of the database. There have also been several patches that affect the way these scores are produced. I am just wondering if anyone might have any insight to this issue or maybe have a solution.
Thanks
Quoted 1 line · On 12 Oct 2023, at 01:19, Grant.Smith3 via lists.yoctoproject.org…
In the poky layer (yocto-4.2.3 branch) I am using the built in cve-checker and running into an issue where it is unable to produce the scorev3 metric. All CVEs have a scorev3 equivalent to 0.0. When looking at poky (yocto-4.0.9 branch) I noticed that the cve-checker uses the 1.1 version of the NVD database and can successfully produce scorev3 when running a test build. The yocto-4.2.3 branch uses version 2 of the database. There have also been several patches that affect the way these scores are produced. I am just wondering if anyone might have any insight to this issue or maybe have a solution.
I’ve not tested anything but this sounds like it might be the fix you’re missing:
https://git.openembedded.org/openembedded-core/commit/?id=61a5857efdcc0f49c69c0deb24fce99007aeef19
If you can confirm that then we can backport as needed.
Cheers,
Ross
Ross,
That fix seems to be already be implemented within 4.2.3. I thought it would be the solution but still running into the issue.
Regards,
Grant
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ross Burton
Sent: Friday, October 13, 2023 8:20 AM
To: Smith, Grant [US] (MS) <[email protected]>
Cc: [email protected]
Subject: EXT :Re: [poky] CVE CHECK scorev3
Quoted 1 line · On 12 Oct 2023, at 01:19, Grant.Smith3 via lists.yoctoproject.org…
In the poky layer (yocto-4.2.3 branch) I am using the built in cve-checker and running into an issue where it is unable to produce the scorev3 metric. All CVEs have a scorev3 equivalent to 0.0. When looking at poky (yocto-4.0.9 branch) I noticed that the cve-checker uses the 1.1 version of the NVD database and can successfully produce scorev3 when running a test build. The yocto-4.2.3 branch uses version 2 of the database. There have also been several patches that affect the way these scores are produced. I am just wondering if anyone might have any insight to this issue or maybe have a solution.
I’ve not tested anything but this sounds like it might be the fix you’re missing:
https://git.openembedded.org/openembedded-core/commit/?id=61a5857efdcc0f49c69c0deb24fce99007aeef19
If you can confirm that then we can backport as needed.
Cheers,
Ross
Quoted 6 lines · On Wed, Oct 11, 2023 at 2:19 PM <[email protected]> wrote:
All,
In the poky layer (yocto-4.2.3 branch) I am using the built in cve-checker and running into an issue where it is unable to produce the scorev3 metric. All CVEs have a scorev3 equivalent to 0.0. When looking at poky (yocto-4.0.9 branch) I noticed that the cve-checker uses the 1.1 version of the NVD database and can successfully produce scorev3 when running a test build.
You are using an old version of kirkstone (4.0.9), the current version is 4.0.13. The current version now uses the new version of the cve-checker. I just checked and the code is identical in kirkstone and mickledore, with the exception of this commit which is required for some older distros which are supported by kirkstone but not mickledore:
https://git.yoctoproject.org/poky/commit/?h=kirkstone&id=cd1d34d5106c4484372552bb3cf93198f7b25d76
So kirkstone and mickledore should be producing identical results (assuming the same recipe versions of course)
Looking at a random sampling of json files though, I also see "scorev3": "0.0" in all of them.
So I suspect that there is a bug, and it is present in all branches (master, mickledore, kirkstone, dunfell)
Steve
Quoted 21 lines · Steve Sakoman
Quoted 6 lines · On Wed, Oct 11, 2023 at 2:19 PM <[email protected]> wrote:
All,
In the poky layer (yocto-4.2.3 branch) I am using the built in cve-checker and running into an issue where it is unable to produce the scorev3 metric. All CVEs have a scorev3 equivalent to 0.0. When looking at poky (yocto-4.0.9 branch) I noticed that the cve-checker uses the 1.1 version of the NVD database and can successfully produce scorev3 when running a test build.
You are using an old version of kirkstone (4.0.9), the current version is 4.0.13. The current version now uses the new version of the cve-checker. I just checked and the code is identical in kirkstone and mickledore, with the exception of this commit which is required for some older distros which are supported by kirkstone but not mickledore:
https://git.yoctoproject.org/poky/commit/?h=kirkstone&id=cd1d34d5106c4484372552bb3cf93198f7b25d76
So kirkstone and mickledore should be producing identical results (assuming the same recipe versions of course)
Quoted 7 lines
Looking at a random sampling of json files though, I also see "scorev3": "0.0" in all of them.
So I suspect that there is a bug, and it is present in all branches (master, mickledore, kirkstone, dunfell)
Steve
Hello,
I've looked into the current results of master and kirkstone and nothing unusual.
There are quite many entries with cvss3 at 0.0, but that's normal.
Steve, Grant, if you have situations with all cvss3 at 0.0, I will need your results file and the exact hash of the poky versions you use.
Kind regards,
Marta
RE: EXT :Re: [poky] CVE CHECK scorev3
Marta,
I have attached the resulting cve-summary.json file. The exact poky version I am using is the tag: yocto-4.2.3 (Commit SHA: aa63b25cbe25d89ab07ca11ee72c17cab68df8de).
Cheers,
Grant
-----Original Message-----
From: Marta Rybczynska <[email protected]>
Sent: Saturday, October 14, 2023 3:34 AM
To: Steve Sakoman <[email protected]>
Cc: Smith, Grant [US] (MS) <[email protected]>; [email protected]; Ross Burton <[email protected]>
Subject: EXT :Re: [poky] CVE CHECK scorev3
Quoted 22 lines · Steve Sakoman
Quoted 6 lines · On Wed, Oct 11, 2023 at 2:19 PM <[email protected]> wrote:
All,
In the poky layer (yocto-4.2.3 branch) I am using the built in cve-checker and running into an issue where it is unable to produce the scorev3 metric. All CVEs have a scorev3 equivalent to 0.0. When looking at poky (yocto-4.0.9 branch) I noticed that the cve-checker uses the 1.1 version of the NVD database and can successfully produce scorev3 when running a test build.
You are using an old version of kirkstone (4.0.9), the current version is 4.0.13. The current version now uses the new version of the cve-checker. I just checked and the code is identical in kirkstone and mickledore, with the exception of this commit which is required for some older distros which are supported by kirkstone but not mickledore:
https://git.yoctoproject.org/poky/commit/?h=kirkstone&id=cd1d34d5106c4
484372552bb3cf93198f7b25d76So kirkstone and mickledore should be producing identical results (assuming the same recipe versions of course)
Quoted 7 lines
Looking at a random sampling of json files though, I also see "scorev3": "0.0" in all of them.
So I suspect that there is a bug, and it is present in all branches (master, mickledore, kirkstone, dunfell)
Steve
Hello,
I've looked into the current results of master and kirkstone and nothing unusual. There are quite many entries with cvss3 at 0.0, but that's normal.
Steve, Grant, if you have situations with all cvss3 at 0.0, I will need your results file and the exact hash of the poky versions you use.
Kind regards,
Marta
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 32 lines · Marta Rybczynska via lists.yoctoproject.org
Quoted 21 lines · Steve Sakoman
Quoted 6 lines · On Wed, Oct 11, 2023 at 2:19 PM <[email protected]> wrote:
All,
In the poky layer (yocto-4.2.3 branch) I am using the built in cve-checker and running into an issue where it is unable to produce the scorev3 metric. All CVEs have a scorev3 equivalent to 0.0. When looking at poky (yocto-4.0.9 branch) I noticed that the cve-checker uses the 1.1 version of the NVD database and can successfully produce scorev3 when running a test build.
You are using an old version of kirkstone (4.0.9), the current version is 4.0.13. The current version now uses the new version of the cve-checker. I just checked and the code is identical in kirkstone and mickledore, with the exception of this commit which is required for some older distros which are supported by kirkstone but not mickledore:
https://git.yoctoproject.org/poky/commit/?h=kirkstone&id=cd1d34d5106c4484372552bb3cf93198f7b25d76
So kirkstone and mickledore should be producing identical results (assuming the same recipe versions of course)
Quoted 7 lines
Looking at a random sampling of json files though, I also see "scorev3": "0.0" in all of them.
So I suspect that there is a bug, and it is present in all branches (master, mickledore, kirkstone, dunfell)
Steve
Quoted 8 lines
Hello,
I've looked into the current results of master and kirkstone and nothing unusual.
There are quite many entries with cvss3 at 0.0, but that's normal.Steve, Grant, if you have situations with all cvss3 at 0.0, I will need your results file and the exact hash of the poky versions you use.
A complete re-download of the database worked for Grant, but I'm creating an issue https://bugzilla.yoctoproject.org/show_bug.cgi?id=15239 because it seems that more people are affected. I'll be working on this.
Regards,
Marta