Buffer overflow in Freebsd
CVE-2025-0662
In some cases, the ktrace facility will log the contents of kernel structures to userspace. In one such case, ktrace dumps a variable-sized sockaddr to userspace. There, the full sockaddr is copied, even when it is shorter than the full size. This can result in up to 14 uninitialized bytes of kernel memory being copied out to userspace. It is possible for an unprivileged userspace program to leak 14 bytes of a kernel heap allocation to userspace.
Vulnerability class: Buffer Overflow
EPSS: 0.003 (27.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 4.9 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N.
Affected products
- Freebsd — versions 14.2-RELEASE
Weakness classification (CWE)
References
- secteam@freebsd.org (vendor-advisory)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2025-0662?
- CVE-2025-0662 is a medium-severity vulnerability in Freebsd, classified under Heap-based Buffer Overflow. CVSS score: 4.9/10. Published 2025-01-30.
- How severe is CVE-2025-0662?
- Medium severity. CVSS v3 base score is 4.9 out of 10.