CVE-2025-38730
JSON

7.8high

io_uring/net: commit partial buffers on retry

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.20% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: io_uring/net: commit partial buffers on retry Ring provided buffers are potentially only valid within the single execution context in which they were acquired. io_uring deals with this and invalidates them on retry. But on the networking side, if MSG_WAITALL is set, or if the socket is of the streaming type and too little was processed, then it will hang on to the buffer rather than recycle or commit it. This is problematic for two reasons: 1) If someone unregisters the provided buffer ring before a later retry, then the req->buf_list will no longer be valid. 2) If multiple sockers are using the same buffer group, then multiple receives can consume the same memory. This can cause data corruption in the application, as either receive could land in the same userspace buffer. Fix this by disallowing partial retries from pinning a provided buffer across multiple executions, if ring provided buffers are used.

Affected

Product or packageVersionsReported by
Linux Linuxfrom c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 before 3b53dc1c641f2884d4750fc25aaf6c36b90db606, from c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 before fe9da1812f8697a38f7e30991d568ec199e16059, from c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 before 21a4ddb0f5e933f372808c10b9ac704505751bb1, from c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 before 2eb7937b5fc7fcd90eab7bebb0181214b61b9283, from c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 before 41b70df5b38bc80967d2e0ed55cc3c3896bba781, 6.4
Not affected: before 6.4, from 6.6.103 up to 6.6.*, from 6.12.44 up to 6.12.*, from 6.15.11 up to 6.15.*, from 6.16.2 up to 6.16.*, from 6.17 up to *
CVE List
linux linux_kernelfrom 6.4 before 6.6.103, from 6.7 before 6.12.44, from 6.13 before 6.15.11, from 6.16 before 6.16.2, 6.17NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-787

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

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: io_uring/net: commit partial buffers on retry Ring provided buffers are potentially only valid within the single execution context in which they were acquired. io_uring deals with this and invalidates them on retry. But on the networking side, if MSG_WAITALL is set, or if the socket is of the streaming type and too little was processed, then it will hang on to the buffer rather than recycle or commit it. This is problematic for two reasons: 1) If someone unregisters the provided buffer ring before a later retry, then the req->buf_list will no longer be valid. 2) If multiple sockers are using the same buffer group, then multiple receives can consume the same memory. This can cause data corruption in the application, as either receive could land in the same userspace buffer. Fix this by disallowing partial retries from pinning a provided buffer across multiple executions, if ring provided buffers are used.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: io_uring/net: confirmar búferes parciales al reintentar Los búferes proporcionados por el anillo son potencialmente válidos solo dentro del único contexto de ejecución en el que fueron adquiridos. io_uring maneja esto y los invalida al reintentar. Pero en el lado de la red, si MSG_WAITALL está configurado, o si el socket es de tipo streaming y se procesó muy poco, entonces se aferrará al búfer en lugar de reciclarlo o confirmarlo. Esto es problemático por dos razones: 1) Si alguien anula el registro del anillo de búferes proporcionado antes de un reintento posterior, entonces req->buf_list ya no será válido. 2) Si múltiples sockets están usando el mismo grupo de búferes, entonces múltiples recepciones pueden consumir la misma memoria. Esto puede causar corrupción de datos en la aplicación, ya que cualquiera de las recepciones podría terminar en el mismo búfer de espacio de usuario. Solucione esto impidiendo que los reintentos parciales fijen un búfer proporcionado a través de múltiples ejecuciones, si se utilizan búferes proporcionados por el anillo.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38730 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-38730 changed 2026-10-19Public domain