Bug 530102 (CVE-2017-7652) - Reloading Mosquitto configuration may fail if no file descriptors are available
Summary: Reloading Mosquitto configuration may fail if no file descriptors are available
Status: RESOLVED FIXED
Alias: CVE-2017-7652
Product: Community
Classification: Eclipse Foundation
Component: Vulnerability Reports (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Security vulnerabilitied reported against Eclipse projects CLA
QA Contact:
URL: https://cve.mitre.org/cgi-bin/cvename...
Whiteboard:
Keywords: security
Depends on:
Blocks:
 
Reported: 2018-01-21 17:29 EST by Roger Light CLA
Modified: 2018-04-25 09:49 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Light CLA 2018-01-21 17:29:50 EST
If a mosquitto instance is set running with a configuration file, then sending a HUP signal to server triggers the configuration to be reloaded from disk.

If there are lots of clients connected so that there are no more file descriptors/sockets available (default limit typically 1024 file descriptors on Linux), then openingthe configuration file will fail.

The process of reloading currently follows the steps:

* Reset configuration to defaults
* Open file
* Load file and apply new settings to configuration struct

That means that if opening the file fails, then the (almost) default configuration is used instead of the file configuration. Security settings such as password_file and acl_file will be at the default of "not used".

The outcome of this is that if an already authenticated client connects enough clients so that the available file descriptors are exhausted then it is possible the security options will be removed and they may be able to access topics that were previously restricted.

CVSS v2: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator?vector=(AV:N/AC:M/Au:M/C:C/I:C/A:N/E:POC/RL:OF/RC:C/CDP:ND/TD:ND/CR:M/IR:M/AR:ND)

CVSS v3: https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N/E:P/RL:O/RC:C/MAV:N/MAC:H/MPR:L/MUI:R/MS:U/MC:H/MI:H/MA:N

I've set "official fix released" on those, I've got the fix but it's obviously not released yet.
Comment 1 Jens Reimann CLA 2018-02-27 04:39:01 EST
Assigned: CVE-2017-7652
Comment 2 Roger Light CLA 2018-04-16 17:03:41 EDT
This was fixed in 1.4.15.
Comment 3 Wayne Beaton CLA 2018-04-24 23:47:49 EDT
I've removed the "Committers only" flag.