# CVE-2025-38061: net: pktgen: fix access outside of user given buffer in pktgen_thread_write()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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 15% of CVEs (2026-12-01)
- Published: 2025-06-18T09:33:40.241Z
- Modified: 2026-11-05T21:18:07.673Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

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

Honour the user given buffer size for the strn_len() calls (otherwise
strn_len() will access memory outside of the user given buffer).

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a3d89f1cfe1e6d4bb164db2595511fd33db21900; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5bfa81539e22af4c40ae5d43d7212253462383a6; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 128cdb617a87767c29be43e4431129942fce41df; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ef1158a6a650ecee72ab40851b1d52e04d3f9cb5; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c81c2ee1c3b050ed5c4e92876590cc7a259183f6; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 6b1d3e9db82d01a88de1795b879df67c2116b4f4; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 8fef258b555c75a467a6b4b7e3a3cbc46d5f4102; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 425e64440ad0a2f03bdaf04be0ae53dededbaa77; 2.6.12 (not affected: before 2.6.12; from 5.4.294 up to 5.4.*; from 5.10.238 up to 5.10.*; from 5.15.185 up to 5.15.*; from 6.1.141 up to 6.1.*; from 6.6.93 up to 6.6.*; from 6.12.31 up to 6.12.*; from 6.14.9 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: before 5.4.294; from 5.5 before 5.10.238; from 5.11 before 5.15.185; from 5.16 before 6.1.141; from 6.2 before 6.6.93; from 6.7 before 6.12.31; from 6.13 before 6.14.9
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/a3d89f1cfe1e6d4bb164db2595511fd33db21900> (patch)
- <https://git.kernel.org/stable/c/5bfa81539e22af4c40ae5d43d7212253462383a6> (patch)
- <https://git.kernel.org/stable/c/128cdb617a87767c29be43e4431129942fce41df> (patch)
- <https://git.kernel.org/stable/c/ef1158a6a650ecee72ab40851b1d52e04d3f9cb5> (patch)
- <https://git.kernel.org/stable/c/c81c2ee1c3b050ed5c4e92876590cc7a259183f6> (patch)
- <https://git.kernel.org/stable/c/6b1d3e9db82d01a88de1795b879df67c2116b4f4> (patch)
- <https://git.kernel.org/stable/c/8fef258b555c75a467a6b4b7e3a3cbc46d5f4102> (patch)
- <https://git.kernel.org/stable/c/425e64440ad0a2f03bdaf04be0ae53dededbaa77> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

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

---

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