From 99189e9919fbdcce7f66694937ef55c23ec00322 Mon Sep 17 00:00:00 2001 From: xinian <1549580042@qq.com> Date: Mon, 1 Sep 2025 17:28:16 +0800 Subject: [PATCH] =?UTF-8?q?cve-2024-56698=E6=BC=8F=E6=B4=9E=E6=A3=80?= =?UTF-8?q?=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xinian <1549580042@qq.com> --- .../03/CVE-2024-56698/CVE-2024-56698.json | 129 ++++++++++++++++++ .../03/CVE-2024-56698/CVE-2024-56698.yara | 33 +++++ 2 files changed, 162 insertions(+) create mode 100644 vulntest/SSTSTestcases/2025/03/CVE-2024-56698/CVE-2024-56698.json create mode 100644 vulntest/SSTSTestcases/2025/03/CVE-2024-56698/CVE-2024-56698.yara diff --git a/vulntest/SSTSTestcases/2025/03/CVE-2024-56698/CVE-2024-56698.json b/vulntest/SSTSTestcases/2025/03/CVE-2024-56698/CVE-2024-56698.json new file mode 100644 index 0000000..5083247 --- /dev/null +++ b/vulntest/SSTSTestcases/2025/03/CVE-2024-56698/CVE-2024-56698.json @@ -0,0 +1,129 @@ +{ + "month": "2025-03", + "vulnerabilities": [ + { + "month": "2025-03", + "vul_id": { + "cve": "CVE-2024-56698", + "openharmony-sa": "" + }, + "severity": "medium", + "vul_description": { + "zh": "dwc3_request->num_queued_sgs 会在完成时递减。如果处理了部分完成的请求,则 dwc3_request->num_queued_sgs 不再反映 num_queued_sgs 的总数(它将被清除)。", + "en": "dwc3_request->num_queued_sgs is decremented upon completion. If a partially completed request is processed, dwc3_request->num_queued_sgs no longer reflects the total number of num_queued_sgs (it is cleared)." + }, + "vul_impact": { + "zh": "访问不存在的 SG 条目时可能会导致空指针取消引用", + "en": "Accessing a non-existent SG entry may result in a NULL pointer dereference" + }, + "disclosure": { + "zh": "https://gitee.com/openharmony/security/blob/master/zh/security-disclosure/2025/2025-03.md", + "en": "https://gitee.com/openharmony/security/blob/master/en/security-disclosure/2025/2025-03.md" + }, + "patch_info": { + "5.0.2.x": { + "patch_url": [ + "https://gitee.com/openharmony/kernel_linux_5.10/commit/081a995b14952be440dbdeb70dceb6092a4ea2e0" + ], + "patch_file": [ + "https://gitee.com/openharmony/kernel_linux_5.10/commit/081a995b14952be440dbdeb70dceb6092a4ea2e0.patch" + ], + "diff_file": [ + "https://gitee.com/openharmony/kernel_linux_5.10/commit/081a995b14952be440dbdeb70dceb6092a4ea2e0.diff" + ] + }, + "4.1.x": { + "patch_url": [ + "https://gitee.com/openharmony/kernel_linux_5.10/commit/634839c4bafd00342dd3cea4e9d620f2e7ecff58" + ], + "patch_file": [ + "https://gitee.com/openharmony/kernel_linux_5.10/commit/634839c4bafd00342dd3cea4e9d620f2e7ecff58.patch" + ], + "diff_file": [ + "https://gitee.com/openharmony/kernel_linux_5.10/commit/634839c4bafd00342dd3cea4e9d620f2e7ecff58.diff" + ] + } + }, + "affected_projects": "kernel_linux_5.10", + "object_type": "kernel_linux", + "affected_versions": [ + "5.0.0-5.0.2", + "4.1.0-4.1.2" + ], + "affected_device": { + "mini": { + "liteos": { + "rics-v": { + "scan_strategy": { + "ssts": { + "enable": false + }, + "ists": { + "enable": false + } + } + } + } + }, + "small": { + "liteos": { + "rics-v": { + "scan_strategy": { + "ssts": { + "enable": false + }, + "ists": { + "enable": false + } + } + } + }, + "linux": { + "arm": { + "scan_strategy": { + "ssts": { + "enable": false + }, + "ists": { + "enable": false + } + } + } + } + }, + "standard": { + "linux": { + "arm": { + "scan_strategy": { + "ssts": { + "enable": false + }, + "ists": { + "enable": true, + "yara": { + "affected_files": [ + "/dev/block/platform/fe310000.sdhci/by-name/boot_linux" + ], + "yara_rules": [ + "CVE-2024-56698.yara" + ] + } + } + } + }, + "arm64": { + "scan_strategy": { + "ssts": { + "enable": false + }, + "ists": { + "enable": false + } + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/vulntest/SSTSTestcases/2025/03/CVE-2024-56698/CVE-2024-56698.yara b/vulntest/SSTSTestcases/2025/03/CVE-2024-56698/CVE-2024-56698.yara new file mode 100644 index 0000000..7acd562 --- /dev/null +++ b/vulntest/SSTSTestcases/2025/03/CVE-2024-56698/CVE-2024-56698.yara @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import "console" +import "elf" + + +rule CVE_2024_56698 +{ + meta: + date = "20250603" + file = "/dev/block/platform/fe310000.sdhci/by-name/boot_linux" + strings: + $fix = {36 88 40 B9 37 24 40 B9 3A B0 40 B9} + $unfix = {36 24 40 B9 38 8C 40 B9 3A B0 40 B9} + + condition: + $fix and not $unfix and console.log("CVE-2024-56698 testcase pass") + +} \ No newline at end of file -- Gitee