Skip to content

Commit 6c259b0

Browse files
GeorgeAndrouGeorgios Androutsopoulos
andauthored
Buffer Overflow in toodee DrainCol destructor (#2325)
Co-authored-by: Georgios Androutsopoulos <[email protected]>
1 parent 990d594 commit 6c259b0

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

crates/toodee/RUSTSEC-0000-0000.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-0000-0000"
4+
package = "toodee"
5+
date = "2025-05-22"
6+
7+
url = "https://github.com/antonmarsden/toodee/issues/26"
8+
categories = ["memory-corruption", "memory-exposure"]
9+
keywords = ["memory-safety", "buffer-overflow"]
10+
11+
[versions]
12+
patched = [">= 0.6.0"]
13+
unaffected = ["< 0.2.0"]
14+
15+
[affected.functions]
16+
"toodee::DrainCol::drop" = [">= 0.2.0, <= 0.5.0"]
17+
```
18+
19+
# Heap Buffer Overflow in the DrainCol Destructor
20+
21+
An off-by-one error in the `DrainCol::drop` destructor could cause an unsafe memory copy
22+
operation to exceed the bounds of the associated vector.
23+
24+
The error was related to the size of the data being copied in one of the `ptr::copy`
25+
invocations inside the destructor.
26+
27+
When removing the first column from a TooDee object, the DrainCol return object could cause
28+
a heap buffer overflow vulnerability when it is dropped.
29+
30+
The issue was fixed in commit `e6e16d5` by reducing the copied size by one.

0 commit comments

Comments
 (0)