AFLplusplus / AFLplusplus/LibAFL

Potential Undefined Behavior in Frida ASan

Open
#1,862 1 comment 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
Rust
Stars
2.6k
Forks
481
Avg merge
2d 30m
Merged PRs (30d)
16

Description

In asan_rt.rs, we're getting mutable references to `self` at various places, hereby creating aliases for mutable references.
This is not permitted in Rust and may break in the future, see here:
https://github.com/AFLplusplus/LibAFL/blob/97a83aba3bc6376786984efde3e4a968fe553068/libafl_frida/src/asan/asan_rt.rs#L1945C42-L1945C46
Instead, we probably need to store the runtime on the heap and keep a pointer to it (Rc, UnsafeCell, Pin, or something like that?)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.