# CVE-2021-47329: scsi: megaraid_sas: Fix resource leak in case of probe failure

- Severity: Medium 6.2 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2024-05-21T14:35:41.138Z
- Modified: 2026-06-17T04:17:12.577Z
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: megaraid_sas: Fix resource leak in case of probe failure

The driver doesn't clean up all the allocated resources properly when
scsi_add_host(), megasas_start_aen() function fails during the PCI device
probe.

Clean up all those resources.

(As written by CVE List.)

## Affected

- Linux Linux: from 541f90b7c6dffe4cf4a3e8142ac8bd047da94733 before 0c6226601c3e191a44a57d8f9f814b7e5c308959; from 541f90b7c6dffe4cf4a3e8142ac8bd047da94733 before 0680db6f41920b2c91c7df3cc9cd5968701a6f74; from 541f90b7c6dffe4cf4a3e8142ac8bd047da94733 before 04b6b9ea80906e3b41ff120b45db31768947cf72; from 541f90b7c6dffe4cf4a3e8142ac8bd047da94733 before e623f79691c5104317669ab36ec316a90c05062f; from 541f90b7c6dffe4cf4a3e8142ac8bd047da94733 before b5438f48fdd8e1c3f130d32637511efd32038152; 3.0 (not affected: before 3.0; from 5.4.134 up to 5.4.*; from 5.10.52 up to 5.10.*; from 5.12.19 up to 5.12.*; from 5.13.4 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: from 1da177e4c3f4 before 0c6226601c3e; from 1da177e4c3f4 before 0680db6f4192; from 1da177e4c3f4 before 04b6b9ea8090; from 1da177e4c3f4 before e623f79691c5; from 1da177e4c3f4 before b5438f48fdd8; before 5.4.134; from 5.5 before 5.10.52; from 5.11 before 5.12.19; from 5.13 before 5.13.4 (not affected: from 5.4.134 up to 5.5; from 5.10.52 up to 5.11; from 5.12.19 up to 5.13; from 5.13.4 up to 5.14; 5.14)

## References

- <https://git.kernel.org/stable/c/0c6226601c3e191a44a57d8f9f814b7e5c308959> (patch)
- <https://git.kernel.org/stable/c/0680db6f41920b2c91c7df3cc9cd5968701a6f74> (patch)
- <https://git.kernel.org/stable/c/04b6b9ea80906e3b41ff120b45db31768947cf72> (patch)
- <https://git.kernel.org/stable/c/e623f79691c5104317669ab36ec316a90c05062f> (patch)
- <https://git.kernel.org/stable/c/b5438f48fdd8e1c3f130d32637511efd32038152> (patch)

## Sources

- CVE List: [CVE-2021-47329](https://www.cve.org/CVERecord?id=CVE-2021-47329), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47329](https://nvd.nist.gov/vuln/detail/CVE-2021-47329), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47329 · Whole record: https://cve.day/CVE-2021-47329.json · Rebuilt by cve.day 2026-11-25T22:58:08.799Z
