Skip to content

Commit

Permalink
Fix for #2283.
Browse files Browse the repository at this point in the history
Closes #2283. Thanks to Heath Raftery.
  • Loading branch information
ralight committed Aug 21, 2021
1 parent c01ae67 commit 526b843
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Security:
These clients are now rejected if their keepalive value exceeds
max_keepalive. This option allows CVE-2020-13849, which is for the MQTT
v3.1.1 protocol itself rather than an implementation, to be addressed.
- Using certain listener related configuration options e.g. `cafile`, that
apply to the default listener without defining any listener would cause a
remotely accessible listener to be opened that was not confined to the local
machine but did have anonymous access enabled, contrary to the
documentation. This has been fixed. Closes #2283.

Broker:
- Fix possible out of bounds memory reads when reading a corrupt/crafted
Expand Down
2 changes: 1 addition & 1 deletion src/mosquitto.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ static int listeners__start(void)

listensock_count = 0;

if(db.config->listener_count == 0){
if(db.config->local_only){
if(listeners__start_local_only()){
db__close();
if(db.config->pid_file){
Expand Down

0 comments on commit 526b843

Please sign in to comment.