Lucene search

K
osvGoogleOSV:GHSA-HR3C-6MMP-6M39
HistoryAug 25, 2021 - 8:42 p.m.

Memory corruption slice-deque

2021-08-2520:42:57
Google
osv.dev
2
memory corruption
slice-deque
element insertion
removal
deque
corrupted state
uninitialized memory
program execution
software restriction

EPSS

0.002

Percentile

60.7%

Affected versions of this crate did not properly update the head and tail of the deque when inserting and removing elements from the front if, before insertion or removal, the tail of the deque was in the mirrored memory region, and if, after insertion or removal, the head of the deque is exactly at the beginning of the mirrored memory region.

An attacker that controls both element insertion and removal into the deque could put it in a corrupted state. Once the deque enters such an state, its head and tail are corrupted, but in bounds of the allocated memory. This can result in partial reads and writes, reads of uninitialized memory, reads of memory containing previously dropped objects, etc. An attacker could exploit this to alter program execution.

The flaw was corrected by properly updating the head and tail of the deque in this case.

EPSS

0.002

Percentile

60.7%

Related for OSV:GHSA-HR3C-6MMP-6M39