CVE-2021-47523

IB/hfi1: Fix leak of rcvhdrtail_dummy_kvaddr

MEDIUM
5.5
CVSS Score
Published: May 24, 2024 at 03:09 PM UTC
Updated: June 17, 2026 at 04:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: IB/hfi1: Fix leak of rcvhdrtail_dummy_kvaddr This buffer is currently allocated in hfi1_init(): if (reinit) ret = init_after_reset(dd); else ret = loadtime_init(dd); if (ret) goto done; /* allocate dummy tail memory for all receive contexts */ dd->rcvhdrtail_dummy_kvaddr = dma_alloc_coherent(&dd->pcidev->dev, sizeof(u64), &dd->rcvhdrtail_dummy_dma, GFP_KERNEL); if (!dd->rcvhdrtail_dummy_kvaddr) { dd_dev_err(dd, "cannot allocate dummy tail memory\n"); ret = -ENOMEM; goto done; } The reinit triggered path will overwrite the old allocation and leak it. Fix by moving the allocation to hfi1_alloc_devdata() and the deallocation to hfi1_free_devdata().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.5 ≤ v < 5.10.854.5 ≤ v < 5.15.84.5 ≤ v < 5.165.11 ≤ v < 5.15.84.546b010d3eeb8eb29c740c4ef09c666485f5c07e65.16 rc15.16 rc25.16 rc35.16 rc4
Vendor states this is fixed in 2c08271f4ed0e24633b3f81ceff61052b9d45efc (fixed)
Vendor states this is fixed in 60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1 (fixed)
Vendor states this is fixed in 834d0fb978643eaf09da425de197cc16a7c2761b (fixed)
Vendor states this is fixed in 4.5 (unaffected)
Vendor states this is fixed in 5.10.85 (unaffected)
Vendor states this is fixed in 5.15.8 (unaffected)
Vendor states this is fixed in 5.16 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2c08271f4ed0e24633b3f81ceff61052b9d45efc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/834d0fb978643eaf09da425de197cc16a7c2761b

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card