CVE-2021-45985

NameCVE-2021-45985
DescriptionIn Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
lua5.1 (PTS)jessie5.1.5-7.1fixed
buster, bullseye, stretch5.1.5-8.1fixed
sid, trixie, bookworm5.1.5-9fixed
lua5.2 (PTS)jessie5.2.3-1.1fixed
buster, bullseye, stretch5.2.4-1.1fixed
sid, trixie, bookworm5.2.4-3fixed
lua5.3 (PTS)stretch (security)5.3.3-1+deb9u1fixed
stretch (lts), stretch5.3.3-1+deb9u2fixed
buster (security), buster, buster (lts)5.3.3-1.1+deb10u1fixed
bullseye5.3.3-1.1+deb11u1fixed
sid, trixie, bookworm5.3.6-2fixed
lua5.4 (PTS)bullseye5.4.2-2vulnerable
bookworm5.4.4-3+deb12u1fixed
trixie5.4.6-3fixed
sid5.4.7-1fixed
lua50 (PTS)jessie5.0.3-7fixed
buster, stretch5.0.3-8fixed
bullseye5.0.3-8.1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
lua5.1source(unstable)(not affected)
lua5.2source(unstable)(not affected)
lua5.3source(unstable)(not affected)
lua5.4source(unstable)5.4.4-1
lua50source(unstable)(not affected)

Notes

[bullseye] - lua5.4 <no-dsa> (Minor issue)
- lua5.3 <not-affected> (Specific to 5.4)
- lua5.2 <not-affected> (Specific to 5.4)
- lua5.1 <not-affected> (Specific to 5.4)
- lua50 <not-affected> (Specific to 5.4)
https://www.lua.org/bugs.html#5.4.3-11
https://github.com/lua/lua/commit/cf613cdc6fa367257fc61c256f63d917350858b5 (v5.4.4)
http://lua-users.org/lists/lua-l/2021-12/msg00019.html

Search for package or bug name: Reporting problems