OSV-2021-1122 Heap-double-free in sudoers_gc_run
A heap double-free in sudo's sudoers_gc_run function allows local attackers to potentially escalate privileges or execute arbitrary code.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is OSV-2021-1122?
OSV-2021-1122 is an use after free vulnerability in sudoers, published on 12 Aug 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37056
Crash type: Heap-double-free
Crash state:
sudoers_gc_run
fuzz_policy.c
resolve_editor
Which versions are affected by OSV-2021-1122?
1 open source package ship an affected version, including sudoers.
| Package | Affected | Fixed in |
|---|---|---|
sudoers OSS-Fuzz | All versions | None |
How do I fix OSV-2021-1122?
No fix has been published for OSV-2021-1122 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is OSV-2021-1122 being exploited?
There is no known exploitation of OSV-2021-1122 in the wild and no public exploit code.