Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-47081

published high CVSS 3.1 · 7.8

habanalabs/gaudi: Fix a potential use after free in gaudi_memset_device_memory

Published
01 Mar 2024, 21:15:16 UTC
Updated
05 Aug 2026, 08:45:52 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux423815bf02e257091d5337be5c63b57fc29e4254 to < b49f5af30b0e4064fbd91e83823a4bfcb2c7a3e7 · 423815bf02e257091d5337be5c63b57fc29e4254 to < 115726c5d312b462c9d9931ea42becdfa838a076 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.12 (affected) · 0 to < 5.12 (unaffected · semver) · 5.12.7 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable path is reached by opening and closing the local HabanaLabs char device (/dev/hl*), which triggers context release, memory scrubbing, and gaudi_memset_device_memory; it is not reachable via network packets. AC:L - An attacker who can open the device reliably drives the put-then-use-id cleanup on every scrub/memset invocation, and use-after-free races of this kind are treated as attacker-influencible rather than requiring uncontrollable conditions. PR:L - hl_device_open performs no capability check, and Gaudi device nodes are routinely granted to unprivileged users via udev group/world permissions in real deployments, matching other scored habanalabs CVEs. UI:N - The attacker triggers the bug solely by opening and closing the device themselves; no separate victim action is required. S:U - Impact is confined to the host kernel authority (local privilege escalation / memory corruption); there is no VM, IOMMU, or other security-authority boundary crossed. C:H - This is a use-after-free on a kernel command-buffer object; UAF enables heap reuse and disclosure of freed object contents, so confidentiality impact is High. I:H - Use-after-free of the CB object can be turned into heap spray and arbitrary write / control-flow hijacking primitives, so integrity impact is High. A:H - Use-after-free of kernel memory can cause kernel oops/panic or device-driver failure, yielding High availability impact.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 423815bf02e257091d5337be5c63b57fc29e4254 to < b49f5af30b0e4064fbd91e83823a4bfcb2c7a3e7 (affected · git)423815bf02e257091d5337be5c63b57fc29e4254 to < 115726c5d312b462c9d9931ea42becdfa838a076 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.12 (affected)0 to < 5.12 (unaffected · semver)5.12.7 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

3

Linux · cna

habanalabs/gaudi: Fix a potential use after free in gaudi_memset_device_memory

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
705a9fcd9f9cb29efa9c61ba4b01b693816373099f239365cf32ab40d00b907f
Ingested
23 Sep 2026, 07:57:04 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected