# CVE-2026-42627: In Arm ArmNN through 2026-03-27, an integer overflow in TensorShape::GetNumElements() in armnn/Tensor.cpp allows a crafted TFLite model fil…

- Severity: Medium 6.2 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-22T00:00:00.000Z
- Modified: 2026-07-23T16:10:00.137Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

In Arm ArmNN through 2026-03-27, an integer overflow in TensorShape::GetNumElements() in armnn/Tensor.cpp allows a crafted TFLite model file to bypass buffer size validation and trigger a heap-based buffer over-read during model optimization. The overflow occurs when multiplying tensor dimensions using 32-bit unsigned arithmetic without overflow detection, causing GetNumBytes() to return an understated allocation size. During Optimize()->InferOutputShapes(), the BatchToSpaceNdLayer reads beyond the allocated buffer.

(As written by CVE List.)

## Affected

- Unspecified product: n/a

## References

- <https://github.com/ARM-software/armnn/blob/main/src/armnn/Tensor.cpp>
- <https://github.com/ARM-software/armnn/blob/main/src/armnnTfLiteParser/TfLiteParser.cpp>

## Sources

- CVE List: [CVE-2026-42627](https://www.cve.org/CVERecord?id=CVE-2026-42627), CVE Terms of Use, modified 2026-05-26
- NVD: [CVE-2026-42627](https://nvd.nist.gov/vuln/detail/CVE-2026-42627), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-42627 · Whole record: https://cve.day/CVE-2026-42627.json · Rebuilt by cve.day 2026-11-25T22:59:22.199Z
