Bug 1320956 - parallel: Race condition when recreating temporary files
Summary: parallel: Race condition when recreating temporary files
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1320958
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-24 11:08 UTC by Adam Mariš
Modified: 2021-02-17 04:08 UTC (History)
2 users (show)

Fixed In Version: parallel 20150522
Clone Of:
Environment:
Last Closed: 2019-06-08 02:50:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Mariš 2016-03-24 11:08:34 UTC
Race condition vulnerability lies in GNU Parallel's way of creating temporary files while at the same time trying to remove these ASAP, so if GNU Parallel is stopped, there will be no temporary files to clean up. A local attacker can exploit this issue to overwrite a file with one byte file.

If an attacker sees the temporary file being created, and then removed, he has 15 ms to create a symlink with the same name to a file owned by the user. And if the file is then being recreated this will overwrite the user's file.

GNU Parallel is vulnerable when using --pipe, --tmux, --cat, --fifo, or --compress.

This issue was partly fixed in 20150422 and fully fixed in 20150522.

External Reference:

https://lists.gnu.org/archive/html/parallel/2015-04/msg00045.html

Comment 1 Adam Mariš 2016-03-24 11:09:01 UTC
Created parallel tracking bugs for this issue:

Affects: fedora-all [bug 1320958]

Comment 2 Fedora Update System 2016-04-24 20:49:30 UTC
parallel-20160222-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 3 Fedora Update System 2016-04-24 20:53:08 UTC
parallel-20160222-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2016-05-07 12:11:57 UTC
parallel-20160222-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Product Security DevOps Team 2019-06-08 02:50:05 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.