# net: pktgen: fix access outside of user given buffer in pktgen_thread_write()

CVE record · `CVE-2025-38061`

- **Identifiers:** `CVE-2025-38061`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 18 Jun 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 18 Jun 2025, 09:33 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before a3d89f1cfe1e6d4bb164db2595511fd33db21900` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 5bfa81539e22af4c40ae5d43d7212253462383a6` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 128cdb617a87767c29be43e4431129942fce41df` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before ef1158a6a650ecee72ab40851b1d52e04d3f9cb5` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c81c2ee1c3b050ed5c4e92876590cc7a259183f6` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 6b1d3e9db82d01a88de1795b879df67c2116b4f4` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8fef258b555c75a467a6b4b7e3a3cbc46d5f4102` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 425e64440ad0a2f03bdaf04be0ae53dededbaa77` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.12`
  - unaffected: `before 2.6.12` (semver)
  - unaffected: `5.4.294 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.238 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.185 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.141 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.93 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.31 to 6.12.*, inclusive` (semver)
  - unaffected: `6.14.9 to 6.14.*, inclusive` (semver)
  - unaffected: `6.15 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel's pktgen module reads memory outside a user-supplied buffer in pktgen_thread_write(), because string length calls ignore the buffer size. Affected code dates from 2.6.12. The source gives few details on what an attacker needs or what they can gain. Upgrade to kernel 5.4.294, 5.10.238, 5.15.185, 6.1.141, or a later release in those series.

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0023, the 14th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 18 Jun 2025, 09:33 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-38061)
- 18 Jun 2025, 10:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-38061)

## Sources

- [CVE List: CVE-2025-38061](https://www.cve.org/CVERecord?id=CVE-2025-38061)
- [NVD: CVE-2025-38061](https://nvd.nist.gov/vuln/detail/CVE-2025-38061)

### References from the CNA

- <https://git.kernel.org/stable/c/a3d89f1cfe1e6d4bb164db2595511fd33db21900>
- <https://git.kernel.org/stable/c/5bfa81539e22af4c40ae5d43d7212253462383a6>
- <https://git.kernel.org/stable/c/128cdb617a87767c29be43e4431129942fce41df>
- <https://git.kernel.org/stable/c/ef1158a6a650ecee72ab40851b1d52e04d3f9cb5>
- <https://git.kernel.org/stable/c/c81c2ee1c3b050ed5c4e92876590cc7a259183f6>
- <https://git.kernel.org/stable/c/6b1d3e9db82d01a88de1795b879df67c2116b4f4>
- <https://git.kernel.org/stable/c/8fef258b555c75a467a6b4b7e3a3cbc46d5f4102>
- <https://git.kernel.org/stable/c/425e64440ad0a2f03bdaf04be0ae53dededbaa77>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-38061>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-38061/>. Everything for agents: <https://agentprime.io/llms.txt>.
