# CVE-2025-21680: pktgen: Avoid out-of-bounds access in get\_imix\_entries

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-129
- **Published:** 2025-01-31T11:25:40.831Z
- **Modified:** 2026-08-05T11:53:35.511Z

## Who should check

- Anyone running Linux \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< 3450092cc2d1c311c5ea92a2486daa2a33520ea5; \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< e5d24a7074dcd0c7e76b7e7e4efbbe7418d62486; \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< 7cde21f52042aa2e29a654458166b873d2ae66b3; \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< 1a9b65c672ca9dc4ba52ca2fd54329db9580ce29; \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< 76201b5979768500bca362871db66d77cb4c225e
- Anyone running Linux 5.15

## Description

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 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 \]

## Affected and fixed versions

- Linux: \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< 3450092cc2d1c311c5ea92a2486daa2a33520ea5; \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< e5d24a7074dcd0c7e76b7e7e4efbbe7418d62486; \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< 7cde21f52042aa2e29a654458166b873d2ae66b3; \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< 1a9b65c672ca9dc4ba52ca2fd54329db9580ce29; \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< 76201b5979768500bca362871db66d77cb4c225e (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 76201b5979768500bca362871db66d77cb4c225e or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21680. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21680.md
Affected: Linux >= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, < 3450092cc2d1c311c5ea92a2486daa2a33520ea5; >= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, < e5d24a7074dcd0c7e76b7e7e4efbbe7418d62486; >= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, < 7cde21f52042aa2e29a654458166b873d2ae66b3; >= 52a62f8603f97e720882c8f…
Fixed in: Linux 3450092cc2d1c311c5ea92a2486daa2a33520ea5, Linux 7cde21f52042aa2e29a654458166b873d2ae66b3, Linux 1a9b65c672ca9dc4ba52ca2fd54329db9580ce29, Linux 76201b5979768500bca362871db66d77cb4c225e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21680 being exploited?

There is no confirmed exploitation: CVE-2025-21680 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21680?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21680?

Linux \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< 3450092cc2d1c311c5ea92a2486daa2a33520ea5; \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< e5d24a7074dcd0c7e76b7e7e4efbbe7418d62486; \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< 7cde21f52042aa2e29a654458166b873d2ae66b3; \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< 1a9b65c672ca9dc4ba52ca2fd54329db9580ce29; \>= 52a62f8603f97e720882c8f5aff2767ac6a11d5f, \< 76201b5979768500bca362871db66d77cb4c225e; Linux 5.15.

### Is there a fix for CVE-2025-21680?

Yes. Fixed in Linux 3450092cc2d1c311c5ea92a2486daa2a33520ea5, Linux 7cde21f52042aa2e29a654458166b873d2ae66b3, Linux 1a9b65c672ca9dc4ba52ca2fd54329db9580ce29, Linux 76201b5979768500bca362871db66d77cb4c225e. Upgrade Linux to 76201b5979768500bca362871db66d77cb4c225e or later.

### How do I check if I'm affected by CVE-2025-21680?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3450092cc2d1c311c5ea92a2486daa2a33520ea5>
- patch: <https://git.kernel.org/stable/c/e5d24a7074dcd0c7e76b7e7e4efbbe7418d62486>
- patch: <https://git.kernel.org/stable/c/7cde21f52042aa2e29a654458166b873d2ae66b3>
- patch: <https://git.kernel.org/stable/c/1a9b65c672ca9dc4ba52ca2fd54329db9580ce29>
- patch: <https://git.kernel.org/stable/c/76201b5979768500bca362871db66d77cb4c225e>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21680>

HTML: <https://flawdb.com/CVE-2025-21680> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21680>
