CVE-2025-39816
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.12 before 6.12.49, from 6.13 before 6.16.5, 6.17NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: io_uring/kbuf: siempre usar READ_ONCE() para leer las longitudes de búfer proporcionadas por el anillo Dado que los búferes se mapean desde el espacio de usuario, es prudente usar READ_ONCE() para leer el valor en una variable local y usarla para cualquier otra acción realizada. Tener una lectura estable de la longitud del búfer evita preocuparse de que cambie después de la verificación o de que se lea varias veces. De manera similar, el búfer bien podría cambiar entre el momento en que se selecciona y el momento en que se confirma. Asegurar que el bucle para la confirmación incremental del búfer de anillo se detenga si encuentra un búfer de tamaño cero, ya que no se puede avanzar más en ese punto.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-39816 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-39816 changed 2026-10-19Public domain