Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847976 (CVE-2022-1664) - <app-arch/dpkg-1.20.9-r1: directory traversal via crafted orig.tar and debian.tar
Summary: <app-arch/dpkg-1.20.9-r1: directory traversal via crafted orig.tar and debian...
Status: IN_PROGRESS
Alias: CVE-2022-1664
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL: https://lists.debian.org/debian-secur...
Whiteboard: B2 [glsa?]
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-28 21:59 UTC by John Helmert III
Modified: 2023-10-13 13:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-05-28 21:59:12 UTC
CVE-2022-1664:

Dpkg::Source::Archive in dpkg, the Debian package management system, before version 1.21.8, 1.20.10, 1.19.8, 1.18.26 is prone to a directory traversal vulnerability. When extracting untrusted source packages in v2 and v3 source package formats that include a debian.tar, the in-place extraction can lead to directory traversal situations on specially crafted orig.tar and debian.tar tarballs.

1.20.10 patch: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=58814cacee39c4ce9e2cd0e3a3b9b57ad437eff5
1.21.8 patch: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=7a6c03cb34d4a09f35df2f10779cbf1b70a5200b

Please bump.
Comment 1 Larry the Git Cow gentoo-dev 2023-01-04 09:09:58 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=354a6035384dee11b2fb6a43298c1235838b6ae4

commit 354a6035384dee11b2fb6a43298c1235838b6ae4
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2023-01-04 08:48:32 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2023-01-04 08:48:32 +0000

    app-arch/dpkg: stablebump, add CVE-2022-1664 patch
    
    Bug: https://bugs.gentoo.org/847976
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 .../{dpkg-1.20.9.ebuild => dpkg-1.20.9-r1.ebuild}  |   3 +-
 .../dpkg/files/dpkg-1.20.9-CVE-2022-1664.patch     | 324 +++++++++++++++++++++
 2 files changed, 326 insertions(+), 1 deletion(-)
Comment 2 Georgy Yakovlev archtester gentoo-dev 2023-01-04 09:18:39 UTC
bumped current stable,

there are some bugs in current unstables, as soon as it'll be sorted out I'll file new stablereq and remove all other versions right after.
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-01-04 17:41:33 UTC
Thanks!