CVE-2021-47081

High

Description

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.

SeverityHigh
CVSS7.8
Exploit probability—
ProductLinux Kernel
PublishedMar 1, 2024
First seenMar 1, 2024

How to fix

Update
  • linux linux_kernel5.12.7 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel5.12 ≤ v < 5.12.7, 5.135.12.7

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2021-47081 · Linux Kernel · Dark Radar