CVE Catalog

CVE-2025-39816

MediumCVSS 5.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.15%

4th percentile - higher than 4% of all known CVEs

Summary

In the Linux kernel io_uring/kbuf subsystem, ring-provided buffers are mapped from userspace, so their lengths should be read with READ_ONCE() to avoid inconsistent reads. The fix ensures a stable read of the buffer length and stops the incremental commit loop when a zero-sized buffer is encountered.

Risk Assessment

May lead to incorrect kernel behavior or potential memory issues when userspace unpredictably changes buffer lengths.

Recommendation

Update the Linux kernel to a version containing the fix.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS