CVE-2025-0373 Buffer overflow in some filesystems via NFS

Medium 6.0 Published Updated

A stack buffer overflow in FreeBSD filesystems allows remote attackers to cause a kernel panic or potentially execute code via NFS.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-0373?

CVE-2025-0373 is a medium-severity memory corruption vulnerability in FreeBSD, published on 30 Jan 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

On 64-bit systems, the implementation of VOP_VPTOFH() in the cd9660, tarfs and ext2fs filesystems overflows the destination FID buffer by 4 bytes, a stack buffer overflow.

A NFS server that exports a cd9660, tarfs, or ext2fs file system can be made to panic by mounting and accessing the export with an NFS client. Further exploitation (e.g., bypassing file permission checking or remote kernel code execution) is potentially possible, though this has not been demonstrated. In particular, release kernels are compiled with stack protection enabled, and some instances of the overflow are caught by this mechanism, causing a panic.

Weakness: CWE-121

Which versions are affected by CVE-2025-0373?

How do I fix CVE-2025-0373?

No fix has been published for CVE-2025-0373 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-0373 being exploited?

There is no known exploitation of CVE-2025-0373 in the wild and no public exploit code.

Sources

Also known as GHSA-4j4g-v3h3-8mqg.

Is CVE-2025-0373 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free