# CVE-2023-5369: copy_file_range insufficient capability rights check

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 11% of CVEs (2026-11-30)
- Published: 2023-10-04T03:48:53.559Z
- Modified: 2026-06-17T06:48:26.670Z
- Weaknesses: CWE-273
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: freebsd

## 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.

(As written by CVE List.)

## Affected

- FreeBSD FreeBSD: from 13.2-RELEASE before p4; 13.2

## References

- <https://security.FreeBSD.org/advisories/FreeBSD-SA-23:13.capsicum.asc> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20231124-0009/>

## Sources

- CVE List: [CVE-2023-5369](https://www.cve.org/CVERecord?id=CVE-2023-5369), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-5369](https://nvd.nist.gov/vuln/detail/CVE-2023-5369), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-5369 · Whole record: https://cve.day/CVE-2023-5369.json · Rebuilt by cve.day 2026-11-25T22:58:28.440Z
