summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-04-11 15:21:42 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-04-11 15:29:44 +0300
commitca598e2a51fd80ed789e5fb4aa48816ccd84e374 (patch)
treefddb8b64cc54a059e22b9ee6e5fd5b74450ac6d2 /.gitlab-ci.yml
parent3c339a74d1b9dba23d60d6c769d99227d75cc6dc (diff)
downloadapk-tools-ca598e2a51fd80ed789e5fb4aa48816ccd84e374.tar.gz
apk-tools-ca598e2a51fd80ed789e5fb4aa48816ccd84e374.tar.bz2
apk-tools-ca598e2a51fd80ed789e5fb4aa48816ccd84e374.tar.xz
apk-tools-ca598e2a51fd80ed789e5fb4aa48816ccd84e374.zip
io_archive: add bounds limit for uname and gname tar header fields
Modify apk_resolve_[ug]id to take the user/groupname as a blob, so proper length checking is done and honored. ==31584== Conditional jump or move depends on uninitialised value(s) ==31584== at 0x5C8CA5: strlen (strlen.c:17) ==31584== by 0x432575: APK_BLOB_STR (apk_blob.h:79) ==31584== by 0x4350EB: apk_resolve_uid (io.c:1112) ==31584== by 0x43696C: apk_tar_parse (io_archive.c:152) ==31584== by 0x4271BC: apk_pkg_read (package.c:929) ==31584== by 0x402D75: add_main (app_add.c:163) ==31584== by 0x40D5FF: main (apk-static.c:516) Fixes a potential crash (DoS) on a crafted TAR file. CVE-2021-30139. Reported-by: Sören Tempel <soeren+git@soeren-tempel.net> Reviewed-by: Ariadne Conill <ariadne@dereferenced.org>
Diffstat (limited to '.gitlab-ci.yml')
0 files changed, 0 insertions, 0 deletions