CVE Database›Document archive›CVE-2025-38061

CVE-2025-38061

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

Loading…

Severity

Moderate

Red Hat Product Security

6.7

CVSS 3.1

Review impact separately from score.

Published · June 18, 2025

Updated · June 30, 2026

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

Statement

This fix bounds the parsed input to the user‑supplied buffer size, preventing out‑of‑range reads in pktgen_thread_write(). Note that only privileged users can write to /proc/net/pktgen/*, so exploitation requires local root access.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 6.7
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

CWE not specified