CVE-2025-0662

published 30 Jan 2025 · updated 7 Feb 2025

Uninitialized kernel memory disclosure via ktrace(2)

4.9MediumCVSS 4.9EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in p1.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
FreeBSD>=14.2-RELEASE <p1p1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-0662 severity on Zeptric[![CVE-2025-0662](https://zeptric.io/badge/cve/CVE-2025-0662.svg)](https://zeptric.io/cve/CVE-2025-0662)