summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorGeoffrey GIRY <geoffrey.giry@smile.fr>2023-03-28 11:47:25 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-04-04 17:46:24 +0100
commit9cb390c458a04164697de1d632fb6dd20ac7c116 (patch)
tree67b1ba9524a4882e2cc70103943bdd734d601e76 /meta/recipes-kernel
parentcbe5fda5a780b50ecf9e797d3e5e591f03047e49 (diff)
downloadpoky-9cb390c458a04164697de1d632fb6dd20ac7c116.tar.gz
cve-extra-exclusions: ignore inapplicable linux-yocto CVEs
Multiple CVE are patched in kernel but appears as active because the NVD database is not up to date In common file cve-extra-exclusion.inc, CVE are ignored if and only if all versions of kernel used by langdale are patched Also ignore CVEs with wrong CPE (applied to kernel but actually are for another package) In cve-exclusion_5.15.inc, only ignore CVE that are patched in v5.15, and not patched in v5.19 Recipes of version 5.15 include this file Reviewed-by: Yoann CONGAL <yoann.congal@smile.fr> (From OE-Core rev: 58d99257bc5b417c518049c6a79144aecc4e9224) Signed-off-by: Geoffrey GIRY <geoffrey.giry@smile.fr> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/linux/cve-exclusion_5.15.inc90
-rw-r--r--meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb3
-rw-r--r--meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb3
-rw-r--r--meta/recipes-kernel/linux/linux-yocto_5.15.bb3
4 files changed, 99 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/cve-exclusion_5.15.inc b/meta/recipes-kernel/linux/cve-exclusion_5.15.inc
new file mode 100644
index 0000000000..53d5379046
--- /dev/null
+++ b/meta/recipes-kernel/linux/cve-exclusion_5.15.inc
@@ -0,0 +1,90 @@
1# CVE exclusions specific to version 5.15 of the kernel.
2
3# 2021
4# https://nvd.nist.gov/vuln/detail/CVE-2022-3435
5# Introduced in version v5.18 6bf92d70e690b7ff12b24f4bfff5e5434d019b82
6# Breaking commit backported in v5.4.189 f5064531c23ad646da7be8b938292b00a7e61438
7# Breaking commit backported in v5.10.111 63ea57478aaa3e06a597081a0f537318fc04e49f
8# Breaking commit backported in v5.15.34 907c97986d6fa77318d17659dd76c94b65dd27c5
9# Patched in kernel since v6.1 61b91eb33a69c3be11b259c5ea484505cd79f883
10# Backported in version v5.4.226 cc3cd130ecfb8b0ae52e235e487bae3f16a24a32
11# Backported in version v5.10.158 0b5394229ebae09afc07aabccb5ffd705ffd250e
12# Backported in version v5.15.82 25174d91e4a32a24204060d283bd5fa6d0ddf133
13CVE_CHECK_IGNORE += "CVE-2022-3435"
14
15# https://nvd.nist.gov/vuln/detail/CVE-2022-3534
16# Introduced in version v5.10 919d2b1dbb074d438027135ba644411931179a59
17# Patched in kernel since v6.2 93c660ca40b5d2f7c1b1626e955a8e9fa30e0749
18# Backported in version v5.10.163 c61650b869e0b6fb0c0a28ed42d928eea969afc8
19# Backported in version v5.15.86 a733bf10198eb5bb927890940de8ab457491ed3b
20# Backported in version v6.1.2 fbe08093fb2334549859829ef81d42570812597d
21CVE_CHECK_IGNORE += "CVE-2022-3534"
22
23# https://nvd.nist.gov/vuln/detail/CVE-2022-3564
24# Introduced in version v3.6 4b51dae96731c9d82f5634e75ac7ffd3b9c1b060
25# Patched in kernel since v6.1 3aff8aaca4e36dc8b17eaa011684881a80238966
26# Backported in version v5.10.154 cb1c012099ef5904cd468bdb8d6fcdfdd9bcb569
27# Backported in version v5.15.78 8278a87bb1eeea94350d675ef961ee5a03341fde
28CVE_CHECK_IGNORE += "CVE-2022-3564"
29
30# https://nvd.nist.gov/vuln/detail/CVE-2022-3619
31# Introduced in version v5.12 4d7ea8ee90e42fc75995f6fb24032d3233314528
32# Patched in kernel since v6.1 7c9524d929648935bac2bbb4c20437df8f9c3f42
33# Backported in version v5.15.78 aa16cac06b752e5f609c106735bd7838f444784c
34CVE_CHECK_IGNORE += "CVE-2022-3619"
35
36# https://nvd.nist.gov/vuln/detail/CVE-2022-3640
37# Introduced in version v5.19 d0be8347c623e0ac4202a1d4e0373882821f56b0
38# Breaking commit backported in v5.4.209 098e07ef0059296e710a801cdbd74b59016e6624
39# Breaking commit backported in v5.10.135 de5d4654ac6c22b1be756fdf7db18471e7df01ea
40# Breaking commit backported in v5.15.59 f32d5615a78a1256c4f557ccc6543866e75d03f4
41# Patched in kernel since v6.1 0d0e2d032811280b927650ff3c15fe5020e82533
42# Backported in version v5.4.224 c1f594dddd9ffd747c39f49cc5b67a9b7677d2ab
43# Backported in version v5.10.154 d9ec6e2fbd4a565b2345d4852f586b7ae3ab41fd
44# Backported in version v5.15.78 a3a7b2ac64de232edb67279e804932cb42f0b52a
45CVE_CHECK_IGNORE += "CVE-2022-3640"
46
47# https://nvd.nist.gov/vuln/detail/CVE-2022-4382
48# Introduced in version v5.3 e5d82a7360d124ae1a38c2a5eac92ba49b125191
49# Patched in kernel since v6.2-rc5 d18dcfe9860e842f394e37ba01ca9440ab2178f4
50# Backported in version v5.4.230 9a39f4626b361ee7aa10fd990401c37ec3b466ae
51# Backported in version v5.10.165 856e4b5e53f21edbd15d275dde62228dd94fb2b4
52# Backported in version v5.15.90 a2e075f40122d8daf587db126c562a67abd69cf9
53# Backported in version v6.1.8 616fd34d017000ecf9097368b13d8a266f4920b3
54CVE_CHECK_IGNORE += "CVE-2022-4382"
55
56# https://nvd.nist.gov/vuln/detail/CVE-2022-42895
57# Introduced in version v2.6.12 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
58# Patched in kernel since v6.1 b1a2cd50c0357f243b7435a732b4e62ba3157a2e
59# Backported in version v5.15.78 3e4697ffdfbb38a2755012c4e571546c89ab6422
60# Backported in version v5.10.154 26ca2ac091b49281d73df86111d16e5a76e43bd7
61# Backported in version v5.4.224 6949400ec9feca7f88c0f6ca5cb5fdbcef419c89
62CVE_CHECK_IGNORE += "CVE-2022-42895"
63
64# https://nvd.nist.gov/vuln/detail/CVE-2022-42896
65# Introduced in version v2.6.12 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
66# Patched in kernel since v6.1 711f8c3fb3db61897080468586b970c87c61d9e4
67# Backported in version v5.4.226 0d87bb6070361e5d1d9cb391ba7ee73413bc109b
68# Backported in version v5.10.154 6b6f94fb9a74dd2891f11de4e638c6202bc89476
69# Backported in version v5.15.78 81035e1201e26d57d9733ac59140a3e29befbc5a
70CVE_CHECK_IGNORE += "CVE-2022-42896"
71
72
73# 2023
74# https://nvd.nist.gov/vuln/detail/CVE-2023-0266
75# Introduced in version v2.6.12 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
76# Patched in kernel since v6.2 56b88b50565cd8b946a2d00b0c83927b7ebb055e
77# Backported in version v5.15.88 26350c21bc5e97a805af878e092eb8125843fe2c
78# Backported in version v6.1.6 d6ad4bd1d896ae1daffd7628cd50f124280fb8b1
79CVE_CHECK_IGNORE += "CVE-2023-0266"
80
81# https://nvd.nist.gov/vuln/detail/CVE-2023-0394
82# Introduced in version 2.6.12 357b40a18b04c699da1d45608436e9b76b50e251
83# Patched in kernel since v6.2 cb3e9864cdbe35ff6378966660edbcbac955fe17
84# Backported in version v5.4.229 3998dba0f78a59922b0ef333ccfeb58d9410cd3d
85# Backported in version v5.10.164 6c9e2c11c33c35563d34d12b343d43b5c12200b5
86# Backported in version v5.15.89 456e3794e08a0b59b259da666e31d0884b376bcf
87# Backported in version v6.1.7 0afa5f0736584411771299074bbeca8c1f9706d4
88CVE_CHECK_IGNORE += "CVE-2023-0394"
89
90
diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb b/meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb
index 0f557ba2c5..db32522e63 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb
@@ -2,6 +2,9 @@ KBRANCH ?= "v5.15/standard/preempt-rt/base"
2 2
3require recipes-kernel/linux/linux-yocto.inc 3require recipes-kernel/linux/linux-yocto.inc
4 4
5# CVE exclusions
6include recipes-kernel/linux/cve-exclusion_5.15.inc
7
5# Skip processing of this recipe if it is not explicitly specified as the 8# Skip processing of this recipe if it is not explicitly specified as the
6# PREFERRED_PROVIDER for virtual/kernel. This avoids errors when trying 9# PREFERRED_PROVIDER for virtual/kernel. This avoids errors when trying
7# to build multiple virtual/kernel providers, e.g. as dependency of 10# to build multiple virtual/kernel providers, e.g. as dependency of
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb
index 34ffaa5132..322c07e097 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb
@@ -5,6 +5,9 @@ KCONFIG_MODE = "--allnoconfig"
5 5
6require recipes-kernel/linux/linux-yocto.inc 6require recipes-kernel/linux/linux-yocto.inc
7 7
8# CVE exclusions
9include recipes-kernel/linux/cve-exclusion_5.15.inc
10
8LINUX_VERSION ?= "5.15.96" 11LINUX_VERSION ?= "5.15.96"
9LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" 12LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
10 13
diff --git a/meta/recipes-kernel/linux/linux-yocto_5.15.bb b/meta/recipes-kernel/linux/linux-yocto_5.15.bb
index 55580357d2..85fdbf4bec 100644
--- a/meta/recipes-kernel/linux/linux-yocto_5.15.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_5.15.bb
@@ -2,6 +2,9 @@ KBRANCH ?= "v5.15/standard/base"
2 2
3require recipes-kernel/linux/linux-yocto.inc 3require recipes-kernel/linux/linux-yocto.inc
4 4
5# CVE exclusions
6include recipes-kernel/linux/cve-exclusion_5.15.inc
7
5# board specific branches 8# board specific branches
6KBRANCH:qemuarm ?= "v5.15/standard/arm-versatile-926ejs" 9KBRANCH:qemuarm ?= "v5.15/standard/arm-versatile-926ejs"
7KBRANCH:qemuarm64 ?= "v5.15/standard/qemuarm64" 10KBRANCH:qemuarm64 ?= "v5.15/standard/qemuarm64"