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

- Severity: Medium 4.9 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2025-01-30T04:49:56.482Z
- Modified: 2026-06-17T08:26:55.293Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: freebsd

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

(As written by CVE List.)

## Affected

- FreeBSD FreeBSD: from 14.2-RELEASE before p1

## References

- <https://security.freebsd.org/advisories/FreeBSD-SA-25:04.ktrace.asc> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20250207-0006/>

## Sources

- CVE List: [CVE-2025-0662](https://www.cve.org/CVERecord?id=CVE-2025-0662), CVE Terms of Use, modified 2025-02-07
- NVD: [CVE-2025-0662](https://nvd.nist.gov/vuln/detail/CVE-2025-0662), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-0662 · Whole record: https://cve.day/CVE-2025-0662.json · Rebuilt by cve.day 2026-11-25T22:58:53.676Z
