CVE-2023-5369 copy_file_range insufficient capability rights check
Sandboxed processes can bypass seek restrictions to read or write arbitrary file locations via the copy_file_range system call.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-5369?
CVE-2023-5369 is a high-severity vulnerability in Freebsd Freebsd, published on 4 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Before correction, the copy_file_range system call checked only for the CAP_READ and CAP_WRITE capabilities on the input and output file descriptors, respectively. Using an offset is logically equivalent to seeking, and the system call must additionally require the CAP_SEEK capability.
This incorrect privilege check enabled sandboxed processes with only read or write but no seek capability on a file descriptor to read data from or write data to an arbitrary location within the file corresponding to that file descriptor.
Weakness: CWE-273
Which versions are affected by CVE-2023-5369?
It affects 1 product.
Products include Freebsd Freebsd.
How do I fix CVE-2023-5369?
No fix has been published for CVE-2023-5369 yet. Limit exposure of the affected software until one is available.
Is CVE-2023-5369 being exploited?
There is no known exploitation of CVE-2023-5369 in the wild and no public exploit code.
Other vulnerabilities in Freebsd Freebsd
Sources
Also known as GHSA-4hwj-mwvm-vc26.