Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 979 Bytes

pdsa-2023-016.md

File metadata and controls

32 lines (19 loc) · 979 Bytes

PDSA-2023-016: Stack overflow in paddle.linalg.lu_unpack

CVE Number

CVE-2023-52307

Impact

Invalid shapes cause 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)

Patches

We have patched the issue in commit 10093636a10f29f73f13729b33570d8cafd58fb6. The fix will be included in PaddlePaddle 2.6.0.

For more information

Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.

Attribution

This vulnerability has been reported by Tong Liu of CAS-IIE.