File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments