Impact
Motoko's incremental garbage collector is impacted by an uninitialized memory access bug, caused by incorrect use of write barriers in a few locations. This vulnerability could potentially allow unauthorized read or write access to a Canister's memory. However, exploiting this bug requires the Canister to enable the incremental garbage collector or enhanced orthogonal persistence, which are non-default features in Motoko.
Patches
The problem has been fixed in #4677 and users are asked to upgrade to version 0.13.4. This can be done by updating to the latest dfx
version (0.24.3) which includes Motoko version 0.13.4.
dfxvm install 0.24.3
Workarounds
Disable incremental garbage collector and enhanced orthogonal persistence. i.e. do not compile with —incremental-gc
or --enhanced-orthogonal-persistence
options.
References
Impact
Motoko's incremental garbage collector is impacted by an uninitialized memory access bug, caused by incorrect use of write barriers in a few locations. This vulnerability could potentially allow unauthorized read or write access to a Canister's memory. However, exploiting this bug requires the Canister to enable the incremental garbage collector or enhanced orthogonal persistence, which are non-default features in Motoko.
Patches
The problem has been fixed in #4677 and users are asked to upgrade to version 0.13.4. This can be done by updating to the latest
dfx
version (0.24.3) which includes Motoko version 0.13.4.dfxvm install 0.24.3
Workarounds
Disable incremental garbage collector and enhanced orthogonal persistence. i.e. do not compile with
—incremental-gc
or--enhanced-orthogonal-persistence
options.References