CVE-2021-3139

NameCVE-2021-3139
DescriptionIn Open-iSCSI tcmu-runner 1.3.x, 1.4.x, and 1.5.x through 1.5.2, xcopy_locate_udev in tcmur_cmd_handler.c lacks a check for transport-layer restrictions, allowing remote attackers to read or write files via directory traversal in an XCOPY request. For example, an attack can occur over a network if the attacker has access to one iSCSI LUN. NOTE: relative to CVE-2020-28374, this is a similar mistake in a different algorithm.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs980007

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
tcmu (PTS)bullseye1.5.2-6fixed
bookworm1.5.4-4.1fixed
sid, trixie1.5.4-9fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
tcmusource(unstable)1.5.2-6980007

Notes

https://www.openwall.com/lists/oss-security/2021/01/12/12
https://www.openwall.com/lists/oss-security/2021/01/13/5
https://github.com/open-iscsi/tcmu-runner/issues/645
https://github.com/open-iscsi/tcmu-runner/pull/644
Fixed by: https://github.com/open-iscsi/tcmu-runner/commit/2b16e96e6b63d0419d857f53e4cc67f0adb383fd
Some followup fixes: https://github.com/open-iscsi/tcmu-runner/pull/646
https://github.com/open-iscsi/tcmu-runner/commit/b202dc06ef391c6ab9a7561856238a258de04663
https://github.com/open-iscsi/tcmu-runner/commit/170bfa63288a399b38c35eb646b2835d4ba7c08a
https://github.com/open-iscsi/tcmu-runner/commit/01685b2ab8c430c0fb9ce397e7e76b60fe6cbde5

Search for package or bug name: Reporting problems