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 use-after-free's in IPIP probe module #815

Merged
merged 1 commit into from Mar 8, 2024

Conversation

droe
Copy link
Contributor

@droe droe commented Mar 8, 2024

Fix two UaF's where memory in args was accessed through c pointer after freeing args, silencing the respective compiler warnings on Linux/GCC. The UaFs are on error paths as part of parsing the command line, and as such unreachable from malicious response packets.

While here:

  • Remove dead code after log_fatal()
  • Avoid interpreting percent chars in ipip_usage_error
  • Replace a manual if/exit combo with an assertion
  • Remove extra newlines in log strings

Fix two UaF's where memory in `args` was accessed through `c` pointer
after freeing `args`, silencing the respective compiler warnings on
Linux/GCC.  The UaFs are on error paths as part of parsing the command
line, and as such unreachable from malicious response packets.

While here, remove dead code after `log_fatal()`, avoid interpreting
percent chars in `ipip_usage_error`, replace a manual if/exit combo with
an assertion, and remove extra newlines in log strings.
@zakird zakird merged commit 118538b into zmap:main Mar 8, 2024
11 checks passed
@droe droe deleted the droe/fix-ipip-uaf branch March 11, 2024 08: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.

None yet

2 participants