On Mon, 2022-04-18 at 09:04 -1000, Steve Sakoman wrote:
> singlevar in lparser.c in Lua through 5.4.4 lacks a certain luaK_exp2anyregup
> call, leading to a heap-based buffer over-read that might affect a system that
> compiles untrusted Lua code.
> 
> https://nvd.nist.gov/vuln/detail/CVE-2022-28805
> 
> Signed-off-by: Steve Sakoman <st...@sakoman.com>
> ---
>  .../lua/lua/CVE-2022-28805.patch              | 26 +++++++++++++++++++
>  meta/recipes-devtools/lua/lua_5.4.4.bb        |  1 +
>  2 files changed, 27 insertions(+)
>  create mode 100644 meta/recipes-devtools/lua/lua/CVE-2022-28805.patch
> 
> diff --git a/meta/recipes-devtools/lua/lua/CVE-2022-28805.patch 
> b/meta/recipes-devtools/lua/lua/CVE-2022-28805.patch
> new file mode 100644
> index 0000000000..8a1a69d60e
> --- /dev/null
> +++ b/meta/recipes-devtools/lua/lua/CVE-2022-28805.patch
> @@ -0,0 +1,26 @@
> +From 1f3c6f4534c6411313361697d98d1145a1f030fa Mon Sep 17 00:00:00 2001
> +From: Roberto Ierusalimschy <robe...@inf.puc-rio.br>
> +Date: Tue, 15 Feb 2022 12:28:46 -0300
> +Subject: [PATCH] Bug: Lua can generate wrong code when _ENV is <const>
> +
> +CVE: CVE-2022-28805
> +
> +Upstream-Status: Backport from upstream: 
> https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa

For consistency this should be:

Upstream-Status: Backport
[https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa]

:)

I tweaked the patch.

Cheers,

Richard



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#164629): 
https://lists.openembedded.org/g/openembedded-core/message/164629
Mute This Topic: https://lists.openembedded.org/mt/90546402/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to