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

analysisd: fix possible null ptr deref in OS_CleanMSG. #1823

Merged
merged 1 commit into from
Jan 16, 2020

Conversation

cpu
Copy link
Contributor

@cpu cpu commented Jan 16, 2020

If the msg provided to OS_CleanMSG has a ( after the ID, but doesn't not contain a -> or : it should be rejected with a FORMAT_ERROR.

Prev. to this commit nesting strstr for -> as the first argument to strchr for : results in a null ptr deref when the message is malformed.

Resolves #1815

If the `msg` provided to `OS_CleanMSG` has a `(` after the ID, but
doesn't not contain a `->` or `:` it should be rejected with
a `FORMAT_ERROR`.

Prev. to this commit nesting `strstr` for `->` as the first argument to
`strchr` for `:` results in a null ptr deref when the message is
malformed.
@ddpbsd ddpbsd merged commit 67bd7be into ossec:master Jan 16, 2020
@cpu cpu deleted the cpu-os_cleanmsg-bad-location-fix branch January 16, 2020 23:01
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.

CVE-2020-8448: analysisd: OS_CleanMSG segfault processing invalid msg location.
2 participants