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, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
Debian Bugs980007

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
tcmu (PTS)bullseye, sid1.5.2-5vulnerable

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
tcmusource(unstable)(unfixed)980007

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