[Bugs] [Bug 1625660] New: CVE-2018-10904 glusterfs: Unsanitized file names in debug/ io-stats translator can allow remote attackers to execute arbitrary code

bugzilla at redhat.com bugzilla at redhat.com
Wed Sep 5 13:13:42 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1625660

            Bug ID: 1625660
           Summary: CVE-2018-10904 glusterfs: Unsanitized file names in
                    debug/io-stats translator can allow remote attackers
                    to execute arbitrary code
           Product: GlusterFS
           Version: 3.12
         Component: io-stats
          Keywords: Security, SecurityTracking
          Severity: high
          Priority: high
          Assignee: bugs at gluster.org
          Reporter: atumball at redhat.com
                CC: anoopcs at redhat.com, bugs at gluster.org,
                    extras-qa at fedoraproject.org, humble.devassy at gmail.com,
                    jonathansteffan at gmail.com, kkeithle at redhat.com,
                    matthias at saou.eu, ndevos at redhat.com,
                    ramkrsna at gmail.com, sisharma at redhat.com
        Depends On: 1625103, 1625106
            Blocks: 1601298 (CVE-2018-10904)



+++ This bug was initially created as a clone of Bug #1625106 +++

+++ This bug was initially created as a clone of Bug #1625103 +++


This is an automatically created tracking bug!  It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.

For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.

For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs

When submitting as an update, use the fedpkg template provided in the next
comment(s).  This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.

Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.

NOTE: this issue affects multiple supported versions of Fedora. While only
one tracking bug has been filed, please correct all affected versions at
the same time.  If you need to fix the versions independent of each other,
you may clone this bug as appropriate.

--- Additional comment from Siddharth Sharma on 2018-09-04 02:33:29 EDT ---

Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug.  This will ensure that all associated bugs get updated
when new packages are pushed to stable.

=====

# bugfix, security, enhancement, newpackage (required)
type=security

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=1601298,1625103

# Description of your update
notes=Security fix for [PUT CVEs HERE]

# Enable request automation based on the stable/unstable karma thresholds
autokarma=True
stable_karma=3
unstable_karma=-3

# Automatically close bugs when this marked as stable
close_bugs=True

# Suggest that users restart after update
suggest_reboot=False

======

Additionally, you may opt to use the bodhi web interface to submit updates:

https://bodhi.fedoraproject.org/updates/new

--- Additional comment from Worker Ant on 2018-09-04 02:45:05 EDT ---

REVIEW: https://review.gluster.org/21072 (io-stats: allow only relative path
for dumping io-stats info) posted (#1) for review on master by Amar Tumballi

--- Additional comment from Worker Ant on 2018-09-05 05:25:31 EDT ---

COMMIT: https://review.gluster.org/21072 committed in master by "Amar Tumballi"
<amarts at redhat.com> with a commit message- io-stats: dump io-stats info in
/var/run/gluster

It wouldn't make sense to allow iostats file to be written in
*any* directory. While the formating makes sure we try to append
io-stats-name for the file, so overwriting existing file is slim,
but in any case it makes sense to restrict dumping to one directory.

Below are the sample commands, and files created for the corresponding
values:

 $ setfattr -n trusted.io-stats-dump -v file-for-dump $M0

In this case, the file would be in /var/run/gluster/file-for-dump

 $ setfattr -n trusted.io-stats-dump -v /dir1/dir2/file-for-dump $M0

In this case, then the dump file is in /var/run/gluster/dir1-dir2-file-for-dump

Note that the value passed for this virtual xattr would be treated as a
file, and even if the value has '/' in it, it would be changed to '-'
for sanity.

Fixes: bz#1625106

Change-Id: Id9ae6a40a190b8937c51662e6e1c2a0f6c86a0e0
Signed-off-by: Amar Tumballi <amarts at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1601298
[Bug 1601298] CVE-2018-10904 glusterfs: Unsanitized file names in
debug/io-stats translator can allow remote attackers to execute arbitrary
code
https://bugzilla.redhat.com/show_bug.cgi?id=1625103
[Bug 1625103] CVE-2018-10904 glusterfs: Unsanitized file names in
debug/io-stats translator can allow remote attackers to execute arbitrary
code [fedora-all]
https://bugzilla.redhat.com/show_bug.cgi?id=1625106
[Bug 1625106] CVE-2018-10904 glusterfs: Unsanitized file names in
debug/io-stats translator can allow remote attackers to execute arbitrary
code
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list