CVE-2025-0662 Details
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.
A vulnerability in the ktrace facility of FreeBSD 14.2 has been identified, allowing unprivileged userspace programs to leak up to 14 bytes of uninitialized kernel heap memory to userspace. This occurs because ktrace improperly handles variable-sized sockaddr structures, copying the full size even when the actual data is shorter, thereby exposing unused bytes of kernel memory.
Users can upgrade to FreeBSD 14.2-RELEASE-p1 or apply a source code patch available from the FreeBSD Security Advisory FreeBSD-SA-25:04.ktrace.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 30, 2025CISA-ADP
Assessed Jan 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://security.netapp.com/advisory/ntap-20250207-0006/ | CVE | AdvisoryVendor |
| https://security.freebsd.org/advisories/FreeBSD-SA-25:04.ktrace.asc | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| FreeBSD | 14.2 |
CPE
Remediation
| |
| NetApp ONTAP | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 7, 2025 | CVE Modified | CVE |
| Jan 31, 2025 | CVE Modified | CISA-ADP |
| Jan 30, 2025 | New CVE Received | [email protected] |
Volerion