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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-02-28T08:13:13.454Z
- **Modified:** 2026-06-17T04:16:04.857Z

## Who should check

- Anyone running Linux \>= e5cdbe419004e172f642e876a671a9ff1c52f8bb, \< 6901a4f795e0e8d65ae779cb37fc22e0bf294712; \>= 717d9d88fbd956ab03fad97266f6ce63a036e7f8, \< 5ab9857dde7c3ea3faef6b128d718cf8ba98721b; \>= 7385e438e1f31af5b86f72fd19b0dcd2738502c9, \< 69cc821e89ce572884548ac54c4f80eec7a837a5; \>= bc0b1a2036dd8072106ec81a8685ecb901f72ed6, \< dafd4c0b5e835db020cff11c74b4af9493a58e72; \>= 4a5891992c680d69d7e490e4d0428d17779d8e85, \< e2381174daeae0ca35eddffef02dcc8de8c1ef8a; \>= 321dbe6c0b551f9f8030becc6900f77cf9bbb9ad, \< c5c8f6ffc942cf42f990f22e35bcf4cbe9d8c2fb; \>= eb50aaf960e3bedfef79063411ffd670da94b84b, \< a7e17a8d421ae23c920240625b4413c7b94d94a4; \>= eb50aaf960e3bedfef79063411ffd670da94b84b, \< 0c8bd174f0fc131bc9dfab35cd8784f59045da87; \>= 4.9.264, \< 4.9.269; \>= 4.14.228, \< 4.14.233; …
- Anyone running Linux 5.12

## 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.

## Affected and fixed versions

- Linux: \>= e5cdbe419004e172f642e876a671a9ff1c52f8bb, \< 6901a4f795e0e8d65ae779cb37fc22e0bf294712; \>= 717d9d88fbd956ab03fad97266f6ce63a036e7f8, \< 5ab9857dde7c3ea3faef6b128d718cf8ba98721b; \>= 7385e438e1f31af5b86f72fd19b0dcd2738502c9, \< 69cc821e89ce572884548ac54c4f80eec7a837a5; \>= bc0b1a2036dd8072106ec81a8685ecb901f72ed6, \< dafd4c0b5e835db020cff11c74b4af9493a58e72; \>= 4a5891992c680d69d7e490e4d0428d17779d8e85, \< e2381174daeae0ca35eddffef02dcc8de8c1ef8a; \>= 321dbe6c0b551f9f8030becc6900f77cf9bbb9ad, \< c5c8f6ffc942cf42f990f22e35bcf4cbe9d8c2fb; \>= eb50aaf960e3bedfef79063411ffd670da94b84b, \< a7e17a8d421ae23c920240625b4413c7b94d94a4; \>= eb50aaf960e3bedfef79063411ffd670da94b84b, \< 0c8bd174f0fc131bc9dfab35cd8784f59045da87; \>= 4.9.264, \< 4.9.269; \>= 4.14.228, \< 4.14.233; … (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-46985. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-46985.md
Affected: Linux >= e5cdbe419004e172f642e876a671a9ff1c52f8bb, < 6901a4f795e0e8d65ae779cb37fc22e0bf294712; >= 717d9d88fbd956ab03fad97266f6ce63a036e7f8, < 5ab9857dde7c3ea3faef6b128d718cf8ba98721b; >= 7385e438e1f31af5b86f72fd19b0dcd2738502c9, < 69cc821e89ce572884548ac54c4f80eec7a837a5; >= bc0b1a2036dd8072106ec81…
Fixed in: Linux 6901a4f795e0e8d65ae779cb37fc22e0bf294712, Linux 5ab9857dde7c3ea3faef6b128d718cf8ba98721b, Linux 69cc821e89ce572884548ac54c4f80eec7a837a5, Linux 0c8bd174f0fc131bc9dfab35cd8784f59045da87, Linux 4.9.269, Linux 4.14.233

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-46985 being exploited?

There is no confirmed exploitation: CVE-2021-46985 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-46985?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-46985?

Linux \>= e5cdbe419004e172f642e876a671a9ff1c52f8bb, \< 6901a4f795e0e8d65ae779cb37fc22e0bf294712; \>= 717d9d88fbd956ab03fad97266f6ce63a036e7f8, \< 5ab9857dde7c3ea3faef6b128d718cf8ba98721b; \>= 7385e438e1f31af5b86f72fd19b0dcd2738502c9, \< 69cc821e89ce572884548ac54c4f80eec7a837a5; \>= bc0b1a2036dd8072106ec81a8685ecb901f72ed6, \< dafd4c0b5e835db020cff11c74b4af9493a58e72; \>= 4a5891992c680d69d7e490e4d0428d17779d8e85, \< e2381174daeae0ca35eddffef02dcc8de8c1ef8a; \>= 321dbe6c0b551f9f8030becc6900f77cf9bbb9ad, \< c5c8f6ffc942cf42f990f22e35bcf4cbe9d8c2fb; \>= eb50aaf960e3bedfef79063411ffd670da94b84b, \< a7e17a8d421ae23c920240625b4413c7b94d94a4; \>= eb50aaf960e3bedfef79063411ffd670da94b84b, \< 0c8bd174f0fc131bc9dfab35cd8784f59045da87; \>= 4.9.264, \< 4.9.269; \>= 4.14.228, \< 4.14.233; …; Linux 5.12.

### Is there a fix for CVE-2021-46985?

Yes. Fixed in Linux 6901a4f795e0e8d65ae779cb37fc22e0bf294712, Linux 5ab9857dde7c3ea3faef6b128d718cf8ba98721b, Linux 69cc821e89ce572884548ac54c4f80eec7a837a5, Linux 0c8bd174f0fc131bc9dfab35cd8784f59045da87, Linux 4.9.269, Linux 4.14.233. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-46985?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-46985>

HTML: <https://flawdb.com/CVE-2021-46985> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-46985>
