CVE-2025-0662
JSON

4.9medium

Uninitialized kernel memory disclosure via ktrace(2)

Severity
4.9medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.37% (higher than 32% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
FreeBSD FreeBSDfrom 14.2-RELEASE before p1CVE List

Classification

CWE-122

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En algunos casos, la función ktrace registra el contenido de las estructuras del núcleo en el espacio de usuario. En uno de esos casos, ktrace envía una dirección sockaddr de tamaño variable al espacio de usuario. Allí, se copia la dirección sockaddr completa, incluso cuando es más corta que el tamaño completo. Esto puede provocar que se copien al espacio de usuario hasta 14 bytes no inicializados de memoria del núcleo. Es posible que un programa de espacio de usuario sin privilegios filtre 14 bytes de una asignación de montón del núcleo al espacio de usuario.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-0662 changed 2025-02-07CVE Terms of Use
NVDCVE-2025-0662 changed 2026-06-17Public domain