{"id":"DEBIAN-CVE-2021-47523","details":"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():  \tif (reinit) \t\tret = init_after_reset(dd); \telse \t\tret = loadtime_init(dd); \tif (ret) \t\tgoto done;  \t/* allocate dummy tail memory for all receive contexts */ \tdd-\u003ercvhdrtail_dummy_kvaddr = dma_alloc_coherent(&dd-\u003epcidev-\u003edev, \t\t\t\t\t\t\t sizeof(u64), \t\t\t\t\t\t\t &dd-\u003ercvhdrtail_dummy_dma, \t\t\t\t\t\t\t GFP_KERNEL);  \tif (!dd-\u003ercvhdrtail_dummy_kvaddr) { \t\tdd_dev_err(dd, \"cannot allocate dummy tail memory\\n\"); \t\tret = -ENOMEM; \t\tgoto done; \t}  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().","modified":"2026-09-15T09:02:36.013613084Z","published":"2024-05-24T15:15:14.743Z","upstream":["CVE-2021-47523"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-47523"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.15.15-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2021-47523.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.15.15-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2021-47523.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.15.15-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2021-47523.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}