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

Medium 5.5 Published Updated

A local attacker can trigger an out-of-bounds memory access in the Linux kernel's pktgen module, potentially leading to code execution or privilege escalation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-38061?

CVE-2025-38061 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 18 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Which versions are affected by CVE-2025-38061?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-38061?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-38061 being exploited?

There is no known exploitation of CVE-2025-38061 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-63995, BELL-CVE-2025-38061, DEBIAN-CVE-2025-38061, GHSA-h8hg-357g-gr7f, ROOT-OS-DEBIAN-11-CVE-2025-38061, ROOT-OS-DEBIAN-12-CVE-2025-38061 and 3 more.

Is CVE-2025-38061 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free