-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(csaf): add unit tests for csaf model and parser
RHINENG-7697
- Loading branch information
Showing
6 changed files
with
1,199 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,293 @@ | ||
{ | ||
"document": { | ||
"aggregate_severity": { | ||
"namespace": "https://access.redhat.com/security/updates/classification/", | ||
"text": "moderate" | ||
}, | ||
"category": "csaf_vex", | ||
"csaf_version": "2.0", | ||
"distribution": { | ||
"text": "Copyright © Red Hat, Inc. All rights reserved.", | ||
"tlp": { | ||
"label": "WHITE", | ||
"url": "https://www.first.org/tlp/" | ||
} | ||
}, | ||
"lang": "en", | ||
"notes": [ | ||
{ | ||
"category": "legal_disclaimer", | ||
"text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.", | ||
"title": "Terms of Use" | ||
} | ||
], | ||
"publisher": { | ||
"category": "vendor", | ||
"contact_details": "https://access.redhat.com/security/team/contact/", | ||
"issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat offerings.", | ||
"name": "Red Hat Product Security", | ||
"namespace": "https://www.redhat.com" | ||
}, | ||
"references": [ | ||
{ | ||
"category": "self", | ||
"summary": "Canonical URL", | ||
"url": "https://access.redhat.com/security/data/csaf/beta/vex/2023/cve-2023-0030.json" | ||
} | ||
], | ||
"title": "kernel: Use after Free in nvkm_vmm_pfn_map", | ||
"tracking": { | ||
"current_release_date": "2023-12-05T15:28:18+00:00", | ||
"generator": { | ||
"date": "2023-12-05T15:28:18+00:00", | ||
"engine": { | ||
"name": "Red Hat SDEngine", | ||
"version": "3.25.1" | ||
} | ||
}, | ||
"id": "CVE-2023-0030", | ||
"initial_release_date": "2023-01-01T00:00:00+00:00", | ||
"revision_history": [ | ||
{ | ||
"date": "2023-01-01T00:00:00+00:00", | ||
"number": "1", | ||
"summary": "Initial version" | ||
}, | ||
{ | ||
"date": "2023-07-31T08:29:51+00:00", | ||
"number": "2", | ||
"summary": "Current version" | ||
}, | ||
{ | ||
"date": "2023-12-05T15:28:18+00:00", | ||
"number": "3", | ||
"summary": "Last generated version" | ||
} | ||
], | ||
"status": "final", | ||
"version": "3" | ||
} | ||
}, | ||
"product_tree": { | ||
"branches": [ | ||
{ | ||
"branches": [ | ||
{ | ||
"category": "product_name", | ||
"name": "Red Hat Enterprise Linux 6", | ||
"product": { | ||
"name": "Red Hat Enterprise Linux 6", | ||
"product_id": "red_hat_enterprise_linux_6", | ||
"product_identification_helper": { | ||
"cpe": "cpe:/o:redhat:enterprise_linux:6" | ||
} | ||
} | ||
}, | ||
{ | ||
"category": "product_name", | ||
"name": "Red Hat Enterprise Linux 7", | ||
"product": { | ||
"name": "Red Hat Enterprise Linux 7", | ||
"product_id": "red_hat_enterprise_linux_7", | ||
"product_identification_helper": { | ||
"cpe": "cpe:/o:redhat:enterprise_linux:7" | ||
} | ||
} | ||
}, | ||
{ | ||
"category": "product_name", | ||
"name": "Red Hat Enterprise Linux 8", | ||
"product": { | ||
"name": "Red Hat Enterprise Linux 8", | ||
"product_id": "red_hat_enterprise_linux_8", | ||
"product_identification_helper": { | ||
"cpe": "cpe:/o:redhat:enterprise_linux:8" | ||
} | ||
} | ||
}, | ||
{ | ||
"category": "product_name", | ||
"name": "Red Hat Enterprise Linux 9", | ||
"product": { | ||
"name": "Red Hat Enterprise Linux 9", | ||
"product_id": "red_hat_enterprise_linux_9", | ||
"product_identification_helper": { | ||
"cpe": "cpe:/o:redhat:enterprise_linux:9" | ||
} | ||
} | ||
}, | ||
{ | ||
"category": "product_version", | ||
"name": "kernel", | ||
"product": { | ||
"name": "kernel", | ||
"product_id": "kernel" | ||
} | ||
}, | ||
{ | ||
"category": "product_version", | ||
"name": "kernel-rt", | ||
"product": { | ||
"name": "kernel-rt", | ||
"product_id": "kernel-rt" | ||
} | ||
} | ||
], | ||
"category": "vendor", | ||
"name": "Red Hat" | ||
} | ||
], | ||
"relationships": [ | ||
{ | ||
"category": "default_component_of", | ||
"full_product_name": { | ||
"name": "kernel as a component of Red Hat Enterprise Linux 6", | ||
"product_id": "red_hat_enterprise_linux_6:kernel" | ||
}, | ||
"product_reference": "kernel", | ||
"relates_to_product_reference": "red_hat_enterprise_linux_6" | ||
}, | ||
{ | ||
"category": "default_component_of", | ||
"full_product_name": { | ||
"name": "kernel as a component of Red Hat Enterprise Linux 7", | ||
"product_id": "red_hat_enterprise_linux_7:kernel" | ||
}, | ||
"product_reference": "kernel", | ||
"relates_to_product_reference": "red_hat_enterprise_linux_7" | ||
}, | ||
{ | ||
"category": "default_component_of", | ||
"full_product_name": { | ||
"name": "kernel-rt as a component of Red Hat Enterprise Linux 7", | ||
"product_id": "red_hat_enterprise_linux_7:kernel-rt" | ||
}, | ||
"product_reference": "kernel-rt", | ||
"relates_to_product_reference": "red_hat_enterprise_linux_7" | ||
}, | ||
{ | ||
"category": "default_component_of", | ||
"full_product_name": { | ||
"name": "kernel as a component of Red Hat Enterprise Linux 8", | ||
"product_id": "red_hat_enterprise_linux_8:kernel" | ||
}, | ||
"product_reference": "kernel", | ||
"relates_to_product_reference": "red_hat_enterprise_linux_8" | ||
}, | ||
{ | ||
"category": "default_component_of", | ||
"full_product_name": { | ||
"name": "kernel-rt as a component of Red Hat Enterprise Linux 8", | ||
"product_id": "red_hat_enterprise_linux_8:kernel-rt" | ||
}, | ||
"product_reference": "kernel-rt", | ||
"relates_to_product_reference": "red_hat_enterprise_linux_8" | ||
}, | ||
{ | ||
"category": "default_component_of", | ||
"full_product_name": { | ||
"name": "kernel as a component of Red Hat Enterprise Linux 9", | ||
"product_id": "red_hat_enterprise_linux_9:kernel" | ||
}, | ||
"product_reference": "kernel", | ||
"relates_to_product_reference": "red_hat_enterprise_linux_9" | ||
}, | ||
{ | ||
"category": "default_component_of", | ||
"full_product_name": { | ||
"name": "kernel-rt as a component of Red Hat Enterprise Linux 9", | ||
"product_id": "red_hat_enterprise_linux_9:kernel-rt" | ||
}, | ||
"product_reference": "kernel-rt", | ||
"relates_to_product_reference": "red_hat_enterprise_linux_9" | ||
} | ||
] | ||
}, | ||
"vulnerabilities": [ | ||
{ | ||
"cve": "CVE-2023-0030", | ||
"cwe": { | ||
"id": "CWE-416", | ||
"name": "Use After Free" | ||
}, | ||
"discovery_date": "2022-12-30T00:00:00+00:00", | ||
"flags": [ | ||
{ | ||
"label": "vulnerable_code_not_present", | ||
"product_ids": [ | ||
"red_hat_enterprise_linux_6:kernel", | ||
"red_hat_enterprise_linux_7:kernel", | ||
"red_hat_enterprise_linux_7:kernel-rt", | ||
"red_hat_enterprise_linux_8:kernel", | ||
"red_hat_enterprise_linux_8:kernel-rt", | ||
"red_hat_enterprise_linux_9:kernel", | ||
"red_hat_enterprise_linux_9:kernel-rt" | ||
] | ||
} | ||
], | ||
"ids": [ | ||
{ | ||
"system_name": "Red Hat Bugzilla ID", | ||
"text": "2157270" | ||
} | ||
], | ||
"notes": [ | ||
{ | ||
"category": "description", | ||
"text": "A use-after-free flaw was found in the Linux kernel’s nouveau driver in how a user triggers a memory overflow that causes the nvkm_vma_tail function to fail. This flaw allows a local user to crash or potentially escalate their privileges on the system.", | ||
"title": "Vulnerability description" | ||
}, | ||
{ | ||
"category": "summary", | ||
"text": "kernel: Use after Free in nvkm_vmm_pfn_map", | ||
"title": "Vulnerability summary" | ||
}, | ||
{ | ||
"category": "other", | ||
"text": "This issue is rated Moderate due to complexity, and a denial of service is only possible with the known attack scenario.\nThe Red Hat Enterprise Linux not affected, because commit 9211092b378 \"[drm] drm: Main backport to rebase from 4.18 to 5.1\" applied already.", | ||
"title": "Statement" | ||
}, | ||
{ | ||
"category": "general", | ||
"text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.", | ||
"title": "CVSS score applicability" | ||
} | ||
], | ||
"product_status": { | ||
"known_not_affected": [ | ||
"red_hat_enterprise_linux_6:kernel", | ||
"red_hat_enterprise_linux_7:kernel", | ||
"red_hat_enterprise_linux_7:kernel-rt", | ||
"red_hat_enterprise_linux_8:kernel", | ||
"red_hat_enterprise_linux_8:kernel-rt", | ||
"red_hat_enterprise_linux_9:kernel", | ||
"red_hat_enterprise_linux_9:kernel-rt" | ||
] | ||
}, | ||
"references": [ | ||
{ | ||
"category": "self", | ||
"summary": "Canonical URL", | ||
"url": "https://access.redhat.com/security/cve/CVE-2023-0030" | ||
}, | ||
{ | ||
"category": "external", | ||
"summary": "RHBZ#2157270", | ||
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2157270" | ||
}, | ||
{ | ||
"category": "external", | ||
"summary": "https://www.cve.org/CVERecord?id=CVE-2023-0030", | ||
"url": "https://www.cve.org/CVERecord?id=CVE-2023-0030" | ||
}, | ||
{ | ||
"category": "external", | ||
"summary": "https://nvd.nist.gov/vuln/detail/CVE-2023-0030", | ||
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-0030" | ||
} | ||
], | ||
"release_date": "2018-12-11T10:00:00+00:00", | ||
"title": "kernel: Use after Free in nvkm_vmm_pfn_map" | ||
} | ||
] | ||
} |
Oops, something went wrong.