CVE-2025-21789: LoongArch: csum: Fix OoB access in IP checksum code for negative lengths
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.
Security readout for executives and security teams
Plain-English summary
A flaw in Linux’s LoongArch IP checksum code can read beyond a valid memory boundary when given a negative length. Successful abuse could expose sensitive kernel data, alter limited data, or disrupt availability. The supplied CVSS score is 7.3, but the issue is specific to affected LoongArch kernels and requires local, low-privileged access.
Executive priority
Treat as a high-priority, architecture-specific patching issue. Promptly identify LoongArch Linux assets, then remediate exposed multi-user and untrusted-workload systems first. Broad emergency action across non-LoongArch infrastructure is not supported by the supplied evidence.
Technical view
The LoongArch 64-bit checksum optimization introduced by commit 69e3a6aa6be2 can perform an undefined shift and out-of-bounds read when processing negative lengths. The issue is classified as CWE-125. Linux stable fixes are referenced for multiple maintained branches.
Likely exposure
Exposure is limited to systems running affected Linux versions on LoongArch architecture with the vulnerable checksum optimization. Other architectures are not identified as affected by this CVE. The supplied version data is ambiguous, so confirm exposure against the relevant distribution’s advisory and fix history.
Exploitation context
The supplied CVSS vector indicates a local attack requiring low privileges, low complexity, and no user interaction. CISA KEV status is false, and the provided sources do not report active exploitation or a public exploit. Practical reachability of the negative-length condition is not established in the bundle.
Researcher notes
The evidence identifies an undefined shift and out-of-bounds read in LoongArch checksum handling for negative lengths. Four stable-tree fixes are supplied, but the flattened version list does not clearly express affected and fixed ranges. No source establishes remote reachability, active exploitation, or exploit availability.
Mitigation direction
Update to a vendor-supported kernel containing the applicable Linux stable fix.
Consult the Linux distribution’s advisory for corrected package versions and backport status.
Prioritize affected multi-user or untrusted-workload LoongArch systems.
Restrict local access where patching cannot occur promptly.
Validation and detection
Inventory LoongArch systems and record their running kernel builds.
Check vendor package changelogs for CVE-2025-21789 or the referenced stable fix.
Confirm the running kernel includes the applicable fix after updating.
Monitor affected systems for unexplained kernel faults or availability disruption.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-125: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-125 · source CWE mapping
Out-of-bounds Read
Out-of-bounds Read represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.