kumquat-buildroot/support/scripts
Thomas Petazzoni 1ff7f003e1 support/scripts/cve.py: properly match CPEs with version '*'
Currently, when the version encoded in a CPE is '-', we assume all
versions are affected, but when it's '*' with no further range
information, we assume no version is affected.

This doesn't make sense, so instead, we handle '*' and '-' in the same
way. If there's no version information available in the CVE CPE ID, we
assume all versions are affected.

This increases quite a bit the number of CVEs and package affected:

-    "total-cves": 302,
-    "pkg-cves": 100,
+    "total-cves": 597,
+    "pkg-cves": 135,

For example, CVE-2007-4476 has a CPE ID of:

    cpe:2.3🅰️gnu:tar:*:*:*:*:*:*:*:*

So it should be taken into account. In this specific case, it is
combined with an AND with CPE ID
cpe:2.3suse:suse_linux:10:*:enterprise_server:*:*:*:*:* but since
we don't support this kind of matching, we'd better be on the safe
side, and report this CVE as affecting tar, do an analysis of the CVE
impact, and document it in TAR_IGNORE_CVES.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-11-26 16:31:37 +01:00
..
apply-patches.sh support/scripts/apply-patches.sh: manage uncompression 2020-10-17 14:44:05 +02:00
boot-qemu-image.py
br2-external system: support br2-external init systems 2020-10-14 22:48:42 +02:00
brpkgutil.py
check-bin-arch
check-dotconfig.py
check-host-rpath
check-kernel-headers.sh
check-merged-usr.sh
cve.py support/scripts/cve.py: properly match CPEs with version '*' 2020-11-26 16:31:37 +01:00
eclipse-register-toolchain
expunge-gconv-modules
fix-configure-powerpc64.sh
fix-rpath
gen-bootlin-toolchains support/scripts/gen-bootlin-toolchains: add support for more PowerPC toolchains 2020-10-14 23:57:54 +02:00
generate-gitlab-ci-yml support/scripts/generate-gitlab-ci-yml: rework generation of pipelines 2020-10-06 15:38:48 +02:00
genimage.sh
graph-build-time
graph-depends
hardlink-or-copy
mkmakefile
mkusers
pkg-stats support/scripts/pkg-stats: support generating stats based on configured packages 2020-11-11 12:03:55 +01:00
pycompile.py
setlocalversion
size-stats