# CVE-2025-39816: io_uring/kbuf: always use READ_ONCE() to read ring provided buffer lengths

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-09-16T13:00:17.026Z
- Modified: 2026-10-19T21:10:00.160Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

io_uring/kbuf: always use READ_ONCE() to read ring provided buffer lengths

Since the buffers are mapped from userspace, it is prudent to use
READ_ONCE() to read the value into a local variable, and use that for
any other actions taken. Having a stable read of the buffer length
avoids worrying about it changing after checking, or being read multiple
times.

Similarly, the buffer may well change in between it being picked and
being committed. Ensure the looping for incremental ring buffer commit
stops if it hits a zero sized buffer, as no further progress can be made
at that point.

(As written by CVE List.)

## Affected

- Linux Linux: from ae98dbf43d755b4e111fcd086e53939bef3e9a1a before 695673eb5711ee5eb1769481cf1503714716a7d1; from ae98dbf43d755b4e111fcd086e53939bef3e9a1a before 91f262ea2a76a02d9e37dba6637cfe6feebb20a8; from ae98dbf43d755b4e111fcd086e53939bef3e9a1a before 390a61d284e1ced088d43928dfcf6f86fffdd780; from ae98dbf43d755b4e111fcd086e53939bef3e9a1a before 98b6fa62c84f2e129161e976a5b9b3cb4ccd117b; 6.12 (not affected: before 6.12; from 6.12.49 up to 6.12.*; from 6.12.81 up to 6.12.*; from 6.16.5 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.12 before 6.12.49; from 6.13 before 6.16.5; 6.17

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/695673eb5711ee5eb1769481cf1503714716a7d1> (patch)
- <https://git.kernel.org/stable/c/91f262ea2a76a02d9e37dba6637cfe6feebb20a8>
- <https://git.kernel.org/stable/c/390a61d284e1ced088d43928dfcf6f86fffdd780> (patch)
- <https://git.kernel.org/stable/c/98b6fa62c84f2e129161e976a5b9b3cb4ccd117b> (patch)

## Sources

- CVE List: [CVE-2025-39816](https://www.cve.org/CVERecord?id=CVE-2025-39816), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-39816](https://nvd.nist.gov/vuln/detail/CVE-2025-39816), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39816 · Whole record: https://cve.day/CVE-2025-39816.json · Rebuilt by cve.day 2026-11-25T22:59:04.725Z
