In the Linux kernel, the following vulnerability has been resolved: habanalabs/gaudi: Fix a potential use after free in gaudi_memset_device_memory Our code analyzer reported a uaf. In gaudi_memset_device_memory, cb is get via hl_cb_kernel_create() with 2 refcount. If hl_cs_allocate_job() failed, the execution runs into release_cb branch. One ref of cb is dropped by hl_cb_put(cb) and could be freed if other thread also drops one ref. Then cb is used by cb->id later, which is a potential uaf. My patch add a variable 'id' to accept the value of cb->id before the hl_cb_put(cb) is called, to avoid the potential uaf.
History

Mon, 04 Nov 2024 13:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published: 2024-03-01T21:15:16.684Z

Updated: 2024-11-04T11:59:04.126Z

Reserved: 2024-02-29T22:33:44.298Z

Link: CVE-2021-47081

cve-icon Vulnrichment

Updated: 2024-08-04T05:24:39.774Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2024-03-01T22:15:47.483

Modified: 2024-03-01T22:22:25.913

Link: CVE-2021-47081

cve-icon Redhat

Severity : Moderate

Publid Date: 2024-03-01T00:00:00Z

Links: CVE-2021-47081 - Bugzilla