Cyber Resilience

CVE-2025-21680

Linux Kernel 5.15 – 5.15.177

Published
31 January 2025
Modified
03 November 2025
Patch / advisory
CVSS Score v3.1 7.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0022 13th percentile
Risk Priority 55 floored blend · peak EPSS

Summary

CVE-2025-21680 is a high-severity Improper Validation of Array Index (CWE-129) vulnerability in Linux Linux Kernel. Its CVSS base score is 7.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 13th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2025-21680 is an array index out-of-bounds vulnerability in the Linux kernel's pktgen module, located in the net/core/pktgen.c file. The issue arises in the get_imix_entries function due to an incorrect boundary check, allowing a sufficient number of imix entries to trigger invalid access to the pkt_dev->imix_entries array, which is sized for 20 elements. This was detected via UBSAN during testing on kernel version 6.10.0-rc1, with the flaw reported by the Linux Verification Center using SVACE static analysis.

A local attacker with low privileges can exploit this vulnerability with low complexity and no user interaction required. Successful exploitation leads to high-impact confidentiality, integrity, and availability violations, as rated by the CVSS v3.1 score of 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). The out-of-bounds access could enable memory corruption, potentially resulting in arbitrary code execution, data leakage, or system denial of service.

Kernel patches addressing this issue are available in multiple stable branches via the referenced commits, such as 1a9b65c672ca9dc4ba52ca2fd54329db9580ce29 and others. These fixes allow the imix_entries array to be filled completely while performing minor changelog cleanups, resolving the boundary check flaw. Security practitioners should update affected Linux kernels to incorporate these patches.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

In the Linux kernel, the following vulnerability has been resolved: pktgen: Avoid out-of-bounds access in get_imix_entries Passing a sufficient amount of imix entries leads to invalid access to the pkt_dev->imix_entries array because of the incorrect boundary check. UBSAN: array-index-out-of-bounds in…

more

net/core/pktgen.c:874:24 index 20 is out of range for type 'imix_pkt [20]' CPU: 2 PID: 1210 Comm: bash Not tainted 6.10.0-rc1 #121 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996) Call Trace: <TASK> dump_stack_lvl lib/dump_stack.c:117 __ubsan_handle_out_of_bounds lib/ubsan.c:429 get_imix_entries net/core/pktgen.c:874 pktgen_if_write net/core/pktgen.c:1063 pde_write fs/proc/inode.c:334 proc_reg_write fs/proc/inode.c:346 vfs_write fs/read_write.c:593 ksys_write fs/read_write.c:644 do_syscall_64 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe arch/x86/entry/entry_64.S:130 Found by Linux Verification Center (linuxtesting.org) with SVACE. [ fp: allow to fill the array completely; minor changelog cleanup ]

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1211 Exploitation for Stealth Stealth
Adversaries may exploit vulnerabilities to evade detection by hiding activity, suppressing logging, or operating within trusted or unmonitored components.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-52987Same product: Linux Linux Kernel
CVE-2024-42148Same product: Linux Linux Kernel
CVE-2023-52604Same product: Linux Linux Kernel
CVE-2023-53192Same product: Linux Linux Kernel
CVE-2023-52807Same product: Linux Linux Kernel
CVE-2025-38367Same product: Linux Linux Kernel
CVE-2024-26755Same product: Linux Linux Kernel
CVE-2025-40014Same product: Linux Linux Kernel
CVE-2024-38556Same product: Linux Linux Kernel
CVE-2024-38623Same product: Linux Linux Kernel

Affected Assets

linux
linux kernel
6.13 · 5.15 — 5.15.177 · 5.16 — 6.1.127 · 6.2 — 6.6.74

Mitigating Controls

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require input validation and bounds checking that prevent improper array indexing.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development can detect out-of-bounds array access but does not prevent the weakness by itself.

prevents

Secure development lifecycle mandates input validation and bounds checking that directly prevents improper array indexing.

prevents

Application security requirements include validation of untrusted input used for indexing or addressing memory structures.

prevents

Secure architecture principles encourage defensive coding patterns that reduce index-related vulnerabilities.

prevents

Secure coding standards explicitly require bounds checking and validation of array indices derived from untrusted data.

References