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

Published Sep 16, 2025
·
Updated

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

iouring/kbuf: always use READONCE() to read ring provided buffer lengths

Since the buffers are mapped from userspace, it is prudent to use READONCE() 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.

Affected Software

6 affected components
Linux Linux kernel
Linux Linux kernel>=6.12<6.12.49
Linux Linux kernel>=6.13<6.16.5
Linux Linux kernel=6.17-rc1
Linux Linux kernel=6.17-rc2
Linux Linux kernel=6.17-rc3

Event History

Sep 16, 2025
CVE Published
via MITRE·01:00 PM
Data Sourced
via MITRE·01:00 PM
Description
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-39816?

CVE-2025-39816 is classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-39816?

To fix CVE-2025-39816, update your Linux kernel to the latest version where this vulnerability has been patched.

3

What systems are affected by CVE-2025-39816?

CVE-2025-39816 affects the Linux kernel, particularly instances utilizing io_uring APIs.

4

What are the potential exploits of CVE-2025-39816?

Exploitation of CVE-2025-39816 could lead to unpredictable behavior or system crashes due to improper handling of user-provided buffer lengths.

5

Is CVE-2025-39816 critical for all versions of the Linux kernel?

CVE-2025-39816 is not critical for all versions but should be assessed on a case-by-case basis for environments using affected kernel versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203