{"id":"UBUNTU-CVE-2021-45985","details":"In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.","modified":"2026-05-20T16:05:25.285308560Z","published":"2023-04-10T09:15:00Z","upstream":["CVE-2021-45985"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-45985"},{"type":"REPORT","url":"https://github.com/lua/lua/commit/cf613cdc6fa367257fc61c256f63d917350858b5"},{"type":"REPORT","url":"http://lua-users.org/lists/lua-l/2021-12/msg00019.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-45985"}],"affected":[{"package":{"name":"darktable","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/darktable?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.8-1","1.6.9-1","2.0.0-1","2.0.1-1","2.0.3-1"],"ecosystem_specific":{"binaries":[{"binary_name":"darktable","binary_version":"2.0.3-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.8-3","0.7.8-3build1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.7.8-3build1","binary_name":"vifm"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"darktable","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/darktable?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.5-2","2.4.0-1","2.4.1-1","2.4.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"darktable","binary_version":"2.4.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9-1","0.9.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"vifm","binary_version":"0.9.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"darktable","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/darktable?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.0-1","2.6.2-3","2.6.3-1","2.6.3-1build1","2.6.3-1build2","3.0.1-0ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"darktable","binary_version":"3.0.1-0ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"tup","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/tup?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.8-3"],"ecosystem_specific":{"binaries":[{"binary_name":"tup","binary_version":"0.7.8-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.1-2","0.10.1-3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10.1-3","binary_name":"vifm"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"darktable","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/darktable?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.0-0ubuntu1","3.8.0-2","3.8.0-3","3.8.0-3build1","3.8.0-3build2","3.8.1-1","3.8.1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"darktable","binary_version":"3.8.1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"tup","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/tup?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.8-3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.7.8-3","binary_name":"tup"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.1-4","0.12-1"],"ecosystem_specific":{"binaries":[{"binary_name":"vifm","binary_version":"0.12-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"darktable","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/darktable?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.2-1ubuntu1","4.4.2-1ubuntu2","4.4.2-1.1","4.4.2-1.1build1","4.6.1-2","4.6.1-2build3","4.6.1-2build4","4.6.1-2ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"darktable","binary_version":"4.6.1-2ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"tup","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/tup?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.11-3","0.7.11-4"],"ecosystem_specific":{"binaries":[{"binary_name":"tup","binary_version":"0.7.11-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.12-1","0.12-1build1","0.12-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"vifm","binary_version":"0.12-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"darktable","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/darktable?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.1-0ubuntu1","5.0.1-0ubuntu2","5.0.1-1","5.0.1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"5.0.1-2","binary_name":"darktable"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"tup","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/tup?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8-1","0.8-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"tup","binary_version":"0.8-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.12-1build2","0.14-3"],"ecosystem_specific":{"binaries":[{"binary_name":"vifm","binary_version":"0.14-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"darktable","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/darktable?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.1-2","5.2.1-1","5.2.1-1build1","5.2.1-1build2","5.4.0-1","5.4.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.4.1-1","binary_name":"darktable"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"tup","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/tup?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8-1build1","0.8-3","0.8-4","0.8-5"],"ecosystem_specific":{"binaries":[{"binary_name":"tup","binary_version":"0.8-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}},{"package":{"name":"vifm","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/vifm?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.14-3","0.14.3-1"],"ecosystem_specific":{"binaries":[{"binary_name":"vifm","binary_version":"0.14.3-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45985.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}