Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROX-23848, ROX-23849, ROX-23853: update alpine and ubuntu support #1465

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions database/namespace_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ var UbuntuReleasesMapping = map[string]string{
"kinetic": "22.10",
"lunar": "23.04",
"mantic": "23.10",
"noble": "24.04",
}
63 changes: 63 additions & 0 deletions e2etests/testcase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4275,4 +4275,67 @@ All OpenShift Container Platform 4.10 users are advised to upgrade to these upda
},
},
},
{
image: "quay.io/rhacs-eng/qa:alpine-3.19.0",
registry: "https://quay.io",
source: "NVD",
username: os.Getenv("QUAY_RHACS_ENG_RO_USERNAME"),
password: os.Getenv("QUAY_RHACS_ENG_RO_PASSWORD"),
onlyCheckSpecifiedVulns: true,
namespace: "alpine:v3.19",
expectedFeatures: []apiV1.Feature{
{
Name: "openssl",
NamespaceName: "alpine:v3.19",
VersionFormat: "apk",
Version: "3.1.4-r2",
Vulnerabilities: []apiV1.Vulnerability{
{
Name: "CVE-2023-6129",
NamespaceName: "alpine:v3.19",
Description: "Issue summary: The POLY1305 MAC (message authentication code) implementation\ncontains a bug that might corrupt the internal state of applications running\non PowerPC CPU based platforms if the CPU provides vector instructions.\n\nImpact summary: If an attacker can influence whether the POLY1305 MAC\nalgorithm is used, the application state might be corrupted with various\napplication dependent consequences.\n\nThe POLY1305 MAC (message authentication code) implementation in OpenSSL for\nPowerPC CPUs restores the contents of vector registers in a different order\nthan they are saved. Thus the contents of some of these vector registers\nare corrupted when returning to the caller. The vulnerable code is used only\non newer PowerPC processors supporting the PowerISA 2.07 instructions.\n\nThe consequences of this kind of internal application state corruption can\nbe various - from no consequences, if the calling application does not\ndepend on the contents of non-volatile XMM registers at all, to the worst\nconsequences, where the attacker could get complete control of the application\nprocess. However unless the compiler uses the vector registers for storing\npointers, the most likely consequence, if any, would be an incorrect result\nof some application dependent calculations or a crash leading to a denial of\nservice.\n\nThe POLY1305 MAC algorithm is most frequently used as part of the\nCHACHA20-POLY1305 AEAD (authenticated encryption with associated data)\nalgorithm. The most common usage of this AEAD cipher is with TLS protocol\nversions 1.2 and 1.3. If this cipher is enabled on the server a malicious\nclient can influence whether this AEAD cipher is used. This implies that\nTLS server applications using OpenSSL can be potentially impacted. However\nwe are currently not aware of any concrete application that would be affected\nby this issue therefore we consider this a Low severity security issue.",
Link: "https://www.cve.org/CVERecord?id=CVE-2023-6129",
Severity: "Moderate",
FixedBy: "3.1.4-r3",
Metadata: map[string]interface{}{
"NVD": map[string]interface{}{
"CVSSv2": map[string]interface{}{
"ExploitabilityScore": 0.0,
"ImpactScore": 0.0,
"Score": 0.0,
"Vectors": "",
},
"CVSSv3": map[string]interface{}{
"ExploitabilityScore": 2.2,
"ImpactScore": 4.2,
"Score": 6.5,
"Vectors": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H",
},
},
},
},
},
AddedBy: "sha256:661ff4d9561e3fd050929ee5097067c34bafc523ee60f5294a37fd08056a73ca",
FixedBy: "3.1.4-r5",
},
},
},
{
image: "quay.io/rhacs-eng/qa:ubuntu-24.04",
registry: "https://quay.io",
source: "NVD",
username: os.Getenv("QUAY_RHACS_ENG_RO_USERNAME"),
password: os.Getenv("QUAY_RHACS_ENG_RO_PASSWORD"),
onlyCheckSpecifiedVulns: true,
namespace: "ubuntu:24.04",
expectedFeatures: []apiV1.Feature{
{
Name: "base-files",
NamespaceName: "ubuntu:24.04",
VersionFormat: "dpkg",
Version: "13ubuntu10",
AddedBy: "sha256:8f5159575f7bbbce11277d1532c12d73076587ebb492562917370449a8c5e7fa",
},
},
},
}
6 changes: 4 additions & 2 deletions pkg/wellknownnamespaces/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ var (
"ubuntu:20.10",
"ubuntu:21.04",
"ubuntu:21.10",
"ubuntu:22.10",
"ubuntu:23.04",
)

// KnownSupportedNamespaces is the set of base namespaces we support.
Expand All @@ -47,6 +49,7 @@ var (
"alpine:v3.16",
"alpine:v3.17",
"alpine:v3.18",
"alpine:v3.19",
"alpine:edge",
"amzn:2018.03",
"amzn:2",
Expand All @@ -66,8 +69,7 @@ var (
"ubuntu:18.04",
"ubuntu:20.04",
"ubuntu:22.04",
"ubuntu:22.10",
"ubuntu:23.04",
"ubuntu:23.10",
"ubuntu:24.04",
)
)
Loading