# CVE-2021-45985: Mitre: CVE-2021-45985 Erroneous finalizer call in Lua leads to a heap-based buffer over-read

CVE-2021-45985 is fixed in 25 products on 2 platforms, first by DEBIAN-CVE-2021-45985, released April 10, 2023. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-45985
- Priority: High
- CVSS: 7.5 (Important)
- EPSS: 0.0142
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Vendor exploitability assessment: Exploitation Less Likely
- Published: Apr 10, 2023
- Weakness: Dependency on Vulnerable Third-Party Component
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-45985

## Description

<p>This CVE was assigned by Mitre.  Some Microsoft products consume <a href="https://lua.org/about.html">Lau open-source software</a>.  The purpose of this document is to attest to the fact that the products listed in the Security Updates table have been updated to protect against this vulnerability.</p>

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Microsoft | Windows 10 Version 21H2 for 32-bit Systems |  | [KB5044273](https://patchblox.com/security/data/fix/microsoft/kb5044273.md) | Oct 8, 2024 |
| Microsoft | Windows 10 Version 21H2 for ARM64-based Systems |  | [KB5044273](https://patchblox.com/security/data/fix/microsoft/kb5044273.md) | Oct 8, 2024 |
| Microsoft | Windows 10 Version 21H2 for x64-based Systems |  | [KB5044273](https://patchblox.com/security/data/fix/microsoft/kb5044273.md) | Oct 8, 2024 |
| Microsoft | Windows 10 Version 22H2 for 32-bit Systems |  | [KB5044273](https://patchblox.com/security/data/fix/microsoft/kb5044273.md) | Oct 8, 2024 |
| Microsoft | Windows 10 Version 22H2 for ARM64-based Systems |  | [KB5044273](https://patchblox.com/security/data/fix/microsoft/kb5044273.md) | Oct 8, 2024 |
| Microsoft | Windows 10 Version 22H2 for x64-based Systems |  | [KB5044273](https://patchblox.com/security/data/fix/microsoft/kb5044273.md) | Oct 8, 2024 |
| Microsoft | Windows 11 Version 22H2 for ARM64-based Systems |  | [KB5044285](https://patchblox.com/security/data/fix/microsoft/kb5044285.md) | Oct 8, 2024 |
| Microsoft | Windows 11 Version 22H2 for x64-based Systems |  | [KB5044285](https://patchblox.com/security/data/fix/microsoft/kb5044285.md) | Oct 8, 2024 |
| Microsoft | Windows 11 Version 23H2 for ARM64-based Systems |  | [KB5044285](https://patchblox.com/security/data/fix/microsoft/kb5044285.md) | Oct 8, 2024 |
| Microsoft | Windows 11 Version 23H2 for x64-based Systems |  | [KB5044285](https://patchblox.com/security/data/fix/microsoft/kb5044285.md) | Oct 8, 2024 |
| Microsoft | Windows 11 Version 24H2 for ARM64-based Systems | 26100.2894 | [KB5050009](https://patchblox.com/security/data/fix/microsoft/kb5050009.md) | Jan 14, 2025 |
| Microsoft | Windows 11 Version 24H2 for x64-based Systems | 26100.2894 | [KB5050009](https://patchblox.com/security/data/fix/microsoft/kb5050009.md) | Jan 14, 2025 |
| Microsoft | Windows Server 2022 | 20348.2762 | [KB5044281](https://patchblox.com/security/data/fix/microsoft/kb5044281.md) | Oct 8, 2024 |
| Microsoft | Windows Server 2022 (Server Core installation) | 20348.2762 | [KB5044281](https://patchblox.com/security/data/fix/microsoft/kb5044281.md) | Oct 8, 2024 |
| Microsoft | Windows Server 2022, 23H2 Edition (Server Core installation) | 25398.1189 | [KB5044288](https://patchblox.com/security/data/fix/microsoft/kb5044288.md) | Oct 8, 2024 |
| Microsoft | Windows Server 2025 | 26100.2894 | [KB5050009](https://patchblox.com/security/data/fix/microsoft/kb5050009.md) | Jan 14, 2025 |
| Microsoft | Windows Server 2025 (Server Core installation) | 26100.2894 | [KB5050009](https://patchblox.com/security/data/fix/microsoft/kb5050009.md) | Jan 14, 2025 |
| Linux | lua amzn 2023 | 5.4.4-3.amzn2023.0.2 | [ALAS2023-2024-533](https://patchblox.com/security/data/fix/linux/alas2023-2024-533.md) | Feb 15, 2024 |
| Linux | lua-debuginfo amzn 2023 | 5.4.4-3.amzn2023.0.2 | [ALAS2023-2024-533](https://patchblox.com/security/data/fix/linux/alas2023-2024-533.md) | Feb 15, 2024 |
| Linux | lua-debugsource amzn 2023 | 5.4.4-3.amzn2023.0.2 | [ALAS2023-2024-533](https://patchblox.com/security/data/fix/linux/alas2023-2024-533.md) | Feb 15, 2024 |
| Linux | lua-devel amzn 2023 | 5.4.4-3.amzn2023.0.2 | [ALAS2023-2024-533](https://patchblox.com/security/data/fix/linux/alas2023-2024-533.md) | Feb 15, 2024 |
| Linux | lua-libs amzn 2023 | 5.4.4-3.amzn2023.0.2 | [ALAS2023-2024-533](https://patchblox.com/security/data/fix/linux/alas2023-2024-533.md) | Feb 15, 2024 |
| Linux | lua-libs-debuginfo amzn 2023 | 5.4.4-3.amzn2023.0.2 | [ALAS2023-2024-533](https://patchblox.com/security/data/fix/linux/alas2023-2024-533.md) | Feb 15, 2024 |
| Linux | lua-static amzn 2023 | 5.4.4-3.amzn2023.0.2 | [ALAS2023-2024-533](https://patchblox.com/security/data/fix/linux/alas2023-2024-533.md) | Feb 15, 2024 |
| Linux | lua5.4 Debian 12.15 (bookworm) | 5.4.4-1 | [DEBIAN-CVE-2021-45985](https://patchblox.com/security/data/fix/linux/debian-cve-2021-45985.md) | Apr 10, 2023 |
| Linux | lua5.4 Debian 13.5 (trixie) | 5.4.4-1 | [DEBIAN-CVE-2021-45985](https://patchblox.com/security/data/fix/linux/debian-cve-2021-45985.md) | Apr 10, 2023 |
| Linux | lua5.4 Debian 14 | 5.4.4-1 | [DEBIAN-CVE-2021-45985](https://patchblox.com/security/data/fix/linux/debian-cve-2021-45985.md) | Apr 10, 2023 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
