]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
tar: CVE-2022-48303
authorRodolfo Quesada Zumbado <rodolfo.zumbado@windriver.com>
Mon, 6 Mar 2023 11:04:38 +0000 (16:34 +0530)
committerSteve Sakoman <steve@sakoman.com>
Mon, 6 Mar 2023 14:54:35 +0000 (04:54 -1000)
commitaf77a413db59863a898c32dc7536b680473ae9c5
tree912fba0727dd7be7285e6d7bc78a373b22c1741e
parentd7c7e9acd5b5699e4a0c2c7f2664cce7a5a08641
tar: CVE-2022-48303

Fixes CVE-2022-48303 by checking Base-256 encoding is at least
2 bytes long. GNU Tar through 1.34 has a one-byte out-of-bounds
read that results in use of uninitialized memory for a conditional
jump. Exploitation to change the flow of control has not been
demonstrated. The issue occurs in from_header in list.c via a
V7 archive in which mtime has approximately 11 whitespace characters.

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2022-48303

Upstream patch:
https://savannah.gnu.org/bugs/?62387
https://git.savannah.gnu.org/cgit/tar.git/patch/src/list.c?id=3da78400eafcccb97e2f2fd4b227ea40d794ede8

(From OE-Core rev: 231360a55bf1b96d6bb1cf94820b08788677c58b)

Signed-off-by: Rodolfo Quesada Zumbado <rodolfo.zumbado@windriver.com>
Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2a00f15354084cee6b2183fcdbfdfc7826c365da)

Signed-off-by: Riyaz Khan <Riyaz.Khan@kpit.com>
Signed-off-by: Riyaz Khan <rak3033@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-extended/tar/tar/CVE-2022-48303.patch [new file with mode: 0644]
meta/recipes-extended/tar/tar_1.32.bb