Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SIGSEGV in the "CONFIG" command over syslog-ng-ctl #3900

Merged
merged 3 commits into from Jan 31, 2022

Conversation

bazsi
Copy link
Collaborator

@bazsi bazsi commented Jan 31, 2022

Fix a SIGSEGV triggered by an incorrectly formatted "CONFIG"
command, received on the syslog-ng control socket. The only known
implementation of the control protocol is syslog-ng-ctl itself, which always
sends a correct command, but anyone with access to the UNIX domain socket
syslog-ng.ctl (root only by default) can trigger a crash.

MrAnno
MrAnno previously approved these changes Jan 31, 2022
Copy link
Collaborator

@MrAnno MrAnno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

Kokan
Kokan previously approved these changes Jan 31, 2022
@Kokan
Copy link
Collaborator

Kokan commented Jan 31, 2022

Hmm, it seems that some UT assert on the error message that was changed.

syslog-ng crashed if the subcommand was missing.

Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
@bazsi bazsi dismissed stale reviews from Kokan and MrAnno via 75132ec January 31, 2022 14:05
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
@kira-syslogng
Copy link
Contributor

Build SUCCESS

@MrAnno MrAnno merged commit 88b0387 into syslog-ng:master Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants