Bug 1601642 (CVE-2018-10907) - CVE-2018-10907 glusterfs: Stack-based buffer overflow in server-rpc-fops.c allows remote attackers to execute arbitrary code
Summary: CVE-2018-10907 glusterfs: Stack-based buffer overflow in server-rpc-fops.c al...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2018-10907
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: Red Hat1605227 Engineering1607211 Engineering1616829 1625080 Engineering1625083 1625097 1625654
Blocks: Embargoed1601660
TreeView+ depends on / blocked
 
Reported: 2018-07-17 00:21 UTC by Sam Fowler
Modified: 2021-02-16 23:58 UTC (History)
30 users (show)

Fixed In Version: glusterfs-3.12.14, glusterfs-4.1.4
Doc Type: If docs needed, set a value
Doc Text:
It was found that glusterfs server is vulnerable to mulitple stack based buffer overflows due to functions in server-rpc-fopc.c allocating fixed size buffers using 'alloca(3)'. An authenticated attacker could exploit this by mounting a gluster volume and sending a string longer that the fixed buffer size to cause crash or potential code execution.
Clone Of:
Environment:
Last Closed: 2019-06-10 10:32:39 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2607 0 None None None 2018-09-04 06:24:37 UTC
Red Hat Product Errata RHSA-2018:2608 0 None None None 2018-09-04 06:26:01 UTC
Red Hat Product Errata RHSA-2018:3470 0 None None None 2018-11-05 14:56:42 UTC

Description Sam Fowler 2018-07-17 00:21:05 UTC
GlusterFS is vulnerable to multiple stack-based buffer overflows due to functions in server-rpc-fops.c allocating fixed-size buffers using 'alloca(3)'. A remote attacker could expliot this by mounting a Gluster volume and sending a string longer than the fixed buffer to cause a crash or potential code execution.

Comment 1 Sam Fowler 2018-07-17 00:21:15 UTC
Acknowledgments:

Name: Michael Hanselmann (hansmi.ch)

Comment 6 Doran Moppert 2018-07-23 02:55:31 UTC
Statement:

This issue did not affect Red Hat Enterprise Linux 6 and 7 as the flaw is present in glusterfs-server, which is not shipped there.

This flaw affects glusterfs versions included in Red Hat Virtualization 4 Hypervisor. However, in recommended configurations, the vulnerability is only exposed to hypervisor administrators and can not be exploited from virtual machines or other hosts on the network. For Red Hat Virtualization, Product Security has rated this flaw as Moderate. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

Comment 9 Siddharth Sharma 2018-09-04 05:44:03 UTC
Created glusterfs tracking bugs for this issue:

Affects: fedora-all [bug 1625080]

Comment 11 errata-xmlrpc 2018-09-04 06:24:24 UTC
This issue has been addressed in the following products:

  Red Hat Gluster Storage 3.4 for RHEL 7
  Native Client for RHEL 7 for Red Hat Storage

Via RHSA-2018:2607 https://access.redhat.com/errata/RHSA-2018:2607

Comment 12 errata-xmlrpc 2018-09-04 06:25:52 UTC
This issue has been addressed in the following products:

  Red Hat Gluster Storage 3.4 for RHEL 6
  Native Client for RHEL 6 for Red Hat Storage

Via RHSA-2018:2608 https://access.redhat.com/errata/RHSA-2018:2608

Comment 13 Siddharth Sharma 2018-09-04 07:54:38 UTC
upstream fix:

https://review.gluster.org/21070

Comment 16 Siddharth Sharma 2018-09-04 14:42:32 UTC
Mitigation:

To limit exposure of gluster server nodes :  

1. gluster server should be on LAN and not reachable from public networks.  
2. Use gluster auth.allow and auth.reject.  
3. Use TLS certificates to authenticate gluster clients.

caveat: This does not protect from attacks by authenticated gluster clients.

Comment 17 errata-xmlrpc 2018-11-05 14:56:30 UTC
This issue has been addressed in the following products:

  Red Hat Virtualization 4 for Red Hat Enterprise Linux 7

Via RHSA-2018:3470 https://access.redhat.com/errata/RHSA-2018:3470


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