CVE-2025-38061

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

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 09:33 AM UTC
Updated: June 17, 2026 at 09:15 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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).

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.4.2942.6.12 ≤ v < 5.10.2382.6.12 ≤ v < 5.15.1852.6.12 ≤ v < 5.4.2942.6.12 ≤ v < 6.1.1412.6.12 ≤ v < 6.12.312.6.12 ≤ v < 6.14.92.6.12 ≤ v < 6.152.6.12 ≤ v < 6.6.935.11 ≤ v < 5.15.1855.16 ≤ v < 6.1.1415.5 ≤ v < 5.10.2386.13 ≤ v < 6.14.96.2 ≤ v < 6.6.936.7 ≤ v < 6.12.311da177e4c3f41524e886b7f1b8a0c1fc7321cac22.6.12
Vendor states this is fixed in 128cdb617a87767c29be43e4431129942fce41df (fixed)
Vendor states this is fixed in 425e64440ad0a2f03bdaf04be0ae53dededbaa77 (fixed)
Vendor states this is fixed in 5bfa81539e22af4c40ae5d43d7212253462383a6 (fixed)
Vendor states this is fixed in 6b1d3e9db82d01a88de1795b879df67c2116b4f4 (fixed)
Vendor states this is fixed in 8fef258b555c75a467a6b4b7e3a3cbc46d5f4102 (fixed)
Vendor states this is fixed in a3d89f1cfe1e6d4bb164db2595511fd33db21900 (fixed)
Vendor states this is fixed in c81c2ee1c3b050ed5c4e92876590cc7a259183f6 (fixed)
Vendor states this is fixed in ef1158a6a650ecee72ab40851b1d52e04d3f9cb5 (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 5.10.238 (unaffected)
Vendor states this is fixed in 5.15.185 (unaffected)
Vendor states this is fixed in 5.4.294 (unaffected)
Vendor states this is fixed in 6.1.141 (unaffected)
Vendor states this is fixed in 6.12.31 (unaffected)
Vendor states this is fixed in 6.14.9 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.93 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/128cdb617a87767c29be43e4431129942fce41df
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/425e64440ad0a2f03bdaf04be0ae53dededbaa77
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5bfa81539e22af4c40ae5d43d7212253462383a6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6b1d3e9db82d01a88de1795b879df67c2116b4f4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8fef258b555c75a467a6b4b7e3a3cbc46d5f4102
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a3d89f1cfe1e6d4bb164db2595511fd33db21900
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c81c2ee1c3b050ed5c4e92876590cc7a259183f6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ef1158a6a650ecee72ab40851b1d52e04d3f9cb5

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card