Skip to content

Commit 9322acd

Browse files
authored
Fix CVE-2024-3154 in package cri-o (#9284)
1 parent 8ff27fc commit 9322acd

2 files changed

Lines changed: 43 additions & 1 deletion

File tree

SPECS/cri-o/CVE-2024-3154.patch

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
From 976ab1f4c916099fc1f2e6569f13e45df2f26b4f Mon Sep 17 00:00:00 2001
2+
From: Peter Hunt <pehunt@redhat.com>
3+
Date: Tue, 26 Mar 2024 12:07:17 -0400
4+
Subject: [PATCH] annotations: add OCI runtime specific annotations to the
5+
AllowedAnnotations
6+
7+
meaning an admin would have to opt-into allowing them to be used
8+
9+
Signed-off-by: Peter Hunt <pehunt@redhat.com>
10+
---
11+
pkg/annotations/annotations.go | 13 +++++++++++++
12+
1 file changed, 13 insertions(+)
13+
14+
diff --git a/pkg/annotations/annotations.go b/pkg/annotations/annotations.go
15+
index 51920eb..e517f18 100644
16+
--- a/pkg/annotations/annotations.go
17+
+++ b/pkg/annotations/annotations.go
18+
@@ -48,4 +48,17 @@ var AllAllowedAnnotations = []string{
19+
OCISeccompBPFHookAnnotation,
20+
rdt.RdtContainerAnnotation,
21+
TrySkipVolumeSELinuxLabelAnnotation,
22+
+ // Keep in sync with
23+
+ // https://github.com/opencontainers/runc/blob/3db0871f1cf25c7025861ba0d51d25794cb21623/features.go#L67
24+
+ // Once runc 1.2 is released, we can use the `runc features` command to get this programatically,
25+
+ // but we should hardcode these for now to prevent misuse.
26+
+ "bundle",
27+
+ "org.systemd.property.",
28+
+ "org.criu.config",
29+
+
30+
+ // Simiarly, keep in sync with
31+
+ // https://github.com/containers/crun/blob/475a3fd0be/src/libcrun/container.c#L362-L366
32+
+ "module.wasm.image/variant",
33+
+ "io.kubernetes.cri.container-type",
34+
+ "run.oci.",
35+
}
36+
--
37+
2.33.8
38+

SPECS/cri-o/cri-o.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Summary: OCI-based implementation of Kubernetes Container Runtime Interfa
2626
# Define macros for further referenced sources
2727
Name: cri-o
2828
Version: 1.22.3
29-
Release: 1%{?dist}
29+
Release: 2%{?dist}
3030
License: ASL 2.0
3131
Vendor: Microsoft Corporation
3232
Distribution: Mariner
@@ -63,6 +63,7 @@ Patch7: CVE-2022-21698.patch
6363
Patch8: CVE-2023-44487.patch
6464
Patch9: CVE-2024-28180.patch
6565
Patch10: CVE-2024-21626.patch
66+
Patch11: CVE-2024-3154.patch
6667
BuildRequires: btrfs-progs-devel
6768
BuildRequires: device-mapper-devel
6869
BuildRequires: fdupes
@@ -215,6 +216,9 @@ mkdir -p /opt/cni/bin
215216
%{_fillupdir}/sysconfig.kubelet
216217

217218
%changelog
219+
* Mon Jun 03 2024 Bala <balakumaran.kannan@microsoft.com> - 1.22.3-2
220+
- Patch CVE-2024-3154
221+
218222
* Thu May 21 2024 Henry Li <lihl@microsoft.com> - 1.22.3-1
219223
- Upgrade to 1.22.3 to resolve regressed CVE-2022-0811
220224
- Updated vendor source tar

0 commit comments

Comments
 (0)