VYPR
Unrated severityNVD Advisory· Published Nov 18, 2019· Updated Aug 5, 2024

CVE-2019-19065

CVE-2019-19065

Description

A memory leak in the sdma_init() function in drivers/infiniband/hw/hfi1/sdma.c in the Linux kernel before 5.3.9 allows attackers to cause a denial of service (memory consumption) by triggering rhashtable_init() failures, aka CID-34b3be18a04e. NOTE: This has been disputed as not a vulnerability because "rhashtable_init() can only fail if it is passed invalid values in the second parameter's struct, but when invoked from sdma_init() that is a pointer to a static const struct, so an attacker could only trigger failure if they could corrupt kernel memory (in which case a small memory leak is not a significant problem).

Affected products

116

Patches

1
34b3be18a04e

RDMA/hfi1: Prevent memory leak in sdma_init

https://github.com/torvalds/linuxNavid EmamdoostSep 25, 2019via osv
1 file changed · +4 1
  • drivers/infiniband/hw/hfi1/sdma.c+4 1 modified
    @@ -1526,8 +1526,11 @@ int sdma_init(struct hfi1_devdata *dd, u8 port)
     	}
     
     	ret = rhashtable_init(tmp_sdma_rht, &sdma_rht_params);
    -	if (ret < 0)
    +	if (ret < 0) {
    +		kfree(tmp_sdma_rht);
     		goto bail;
    +	}
    +
     	dd->sdma_rht = tmp_sdma_rht;
     
     	dd_dev_info(dd, "SDMA num_sdma: %u\n", dd->num_sdma);
    

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

7

News mentions

0

No linked articles in our index yet.