# CVE-2021-46985: ACPI: scan: Fix a memory leak in an error handling path

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-02-28T08:13:13.454Z
- Modified: 2026-06-17T04:16:04.857Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

ACPI: scan: Fix a memory leak in an error handling path

If 'acpi_device_set_name()' fails, we must free
'acpi_device_bus_id->bus_id' or there is a (potential) memory leak.

(As written by CVE List.)

## Affected

- Linux Linux: from e5cdbe419004e172f642e876a671a9ff1c52f8bb before 6901a4f795e0e8d65ae779cb37fc22e0bf294712; from 717d9d88fbd956ab03fad97266f6ce63a036e7f8 before 5ab9857dde7c3ea3faef6b128d718cf8ba98721b; from 7385e438e1f31af5b86f72fd19b0dcd2738502c9 before 69cc821e89ce572884548ac54c4f80eec7a837a5; from bc0b1a2036dd8072106ec81a8685ecb901f72ed6 before dafd4c0b5e835db020cff11c74b4af9493a58e72; from 4a5891992c680d69d7e490e4d0428d17779d8e85 before e2381174daeae0ca35eddffef02dcc8de8c1ef8a; from 321dbe6c0b551f9f8030becc6900f77cf9bbb9ad before c5c8f6ffc942cf42f990f22e35bcf4cbe9d8c2fb; from eb50aaf960e3bedfef79063411ffd670da94b84b before a7e17a8d421ae23c920240625b4413c7b94d94a4; from eb50aaf960e3bedfef79063411ffd670da94b84b before 0c8bd174f0fc131bc9dfab35cd8784f59045da87; from 4.9.264 before 4.9.269; from 4.14.228 before 4.14.233; from 4.19.184 before 4.19.191; from 5.4.109 before 5.4.120; and 3 more (not affected: before 5.12; from 4.9.269 up to 4.9.*; from 4.14.233 up to 4.14.*; from 4.19.191 up to 4.19.*; from 5.4.120 up to 5.4.*; from 5.10.38 up to 5.10.*; from 5.11.22 up to 5.11.*; from 5.12.5 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 4.9.264 before 4.9.269; from 4.14.228 before 4.14.233; from 4.19.184 before 4.19.191; from 5.4.109 before 5.4.120; from 5.10.27 before 5.10.38; from 5.11.11 before 5.11.22; from 5.12 before 5.12.5; 5.13

## References

- <https://git.kernel.org/stable/c/6901a4f795e0e8d65ae779cb37fc22e0bf294712> (patch)
- <https://git.kernel.org/stable/c/5ab9857dde7c3ea3faef6b128d718cf8ba98721b> (patch)
- <https://git.kernel.org/stable/c/69cc821e89ce572884548ac54c4f80eec7a837a5> (patch)
- <https://git.kernel.org/stable/c/dafd4c0b5e835db020cff11c74b4af9493a58e72> (patch)
- <https://git.kernel.org/stable/c/e2381174daeae0ca35eddffef02dcc8de8c1ef8a> (patch)
- <https://git.kernel.org/stable/c/c5c8f6ffc942cf42f990f22e35bcf4cbe9d8c2fb> (patch)
- <https://git.kernel.org/stable/c/a7e17a8d421ae23c920240625b4413c7b94d94a4> (patch)
- <https://git.kernel.org/stable/c/0c8bd174f0fc131bc9dfab35cd8784f59045da87> (patch)

## Sources

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

---

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