# CVE-2025-21789: LoongArch: csum: Fix OoB access in IP checksum code for negative lengths

- Severity: High 7.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-02-27T02:18:27.817Z
- Modified: 2026-08-05T11:54:27.092Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

LoongArch: csum: Fix OoB access in IP checksum code for negative lengths

Commit 69e3a6aa6be2 ("LoongArch: Add checksum optimization for 64-bit
system") would cause an undefined shift and an out-of-bounds read.

Commit 8bd795fedb84 ("arm64: csum: Fix OoB access in IP checksum code
for negative lengths") fixes the same issue on ARM64.

(As written by CVE List.)

## Affected

- Linux Linux: from 69e3a6aa6be21de6aaf38130fad97ecde34a193c before 964a8895704a22efc06a2a3276b624a5ae985a06; from 69e3a6aa6be21de6aaf38130fad97ecde34a193c before 9f15a8df542c0f08732a67d1a14ee7c22948fb97; from 69e3a6aa6be21de6aaf38130fad97ecde34a193c before d6508ffff32b44b6d0de06704034e4eef1c307a7; from 69e3a6aa6be21de6aaf38130fad97ecde34a193c before 6287f1a8c16138c2ec750953e35039634018c84a; 6.4 (not affected: before 6.4; from 6.6.79 up to 6.6.*; from 6.12.16 up to 6.12.*; from 6.13.4 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.4 before 6.6.79; from 6.7 before 6.12.16; from 6.13 before 6.13.4; 6.14

## Every score

- Linux: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- CISA-ADP: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/964a8895704a22efc06a2a3276b624a5ae985a06> (mailing-list, patch)
- <https://git.kernel.org/stable/c/9f15a8df542c0f08732a67d1a14ee7c22948fb97> (mailing-list, patch)
- <https://git.kernel.org/stable/c/d6508ffff32b44b6d0de06704034e4eef1c307a7> (mailing-list, patch)
- <https://git.kernel.org/stable/c/6287f1a8c16138c2ec750953e35039634018c84a> (mailing-list, patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-21789 · Whole record: https://cve.day/CVE-2025-21789.json · Rebuilt by cve.day 2026-11-25T22:58:54.567Z
