FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

FreeBSD -- NFS client accepts file names containing path separators

Affected packages
14.1 <= FreeBSD-kernel < 14.1_3
14.0 <= FreeBSD-kernel < 14.0_9
13.3 <= FreeBSD-kernel < 13.3_5

Details

VuXML ID c02b8db5-771b-11ef-9a62-002590c1f29c
Discovery 2024-08-07
Entry 2024-09-20

Problem Description:

When mounting a remote filesystem using NFS, the kernel did not sanitize remotely provided filenames for the path separator character, "/". This allows readdir(3) and related functions to return filesystem entries with names containing additional path components.

Impact:

The lack of validation described above gives rise to a confused deputy problem. For example, a program copying files from an NFS mount could be tricked into copying from outside the intended source directory, and/or to a location outside the intended destination directory.

References

CVE Name CVE-2024-6759
FreeBSD Advisory SA-24:07.nfsclient