---
id: CVE-2025-38730
title: 'io_uring/net: commit partial buffers on retry'
summary: |-
  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_urin…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 <
    3b53dc1c641f2884d4750fc25aaf6c36b90db606
  - >-
    Linux >= c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 <
    fe9da1812f8697a38f7e30991d568ec199e16059
  - >-
    Linux >= c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 <
    21a4ddb0f5e933f372808c10b9ac704505751bb1
  - >-
    Linux >= c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 <
    2eb7937b5fc7fcd90eab7bebb0181214b61b9283
  - >-
    Linux >= c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 <
    41b70df5b38bc80967d2e0ed55cc3c3896bba781
  - Linux 6.4
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-15T21:52:58.598362Z'
published: '2025-09-04'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T22:02:28.527Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-38730'
references:
  - url: 'https://git.kernel.org/stable/c/3b53dc1c641f2884d4750fc25aaf6c36b90db606'
  - url: 'https://git.kernel.org/stable/c/fe9da1812f8697a38f7e30991d568ec199e16059'
  - url: 'https://git.kernel.org/stable/c/21a4ddb0f5e933f372808c10b9ac704505751bb1'
  - url: 'https://git.kernel.org/stable/c/2eb7937b5fc7fcd90eab7bebb0181214b61b9283'
  - url: 'https://git.kernel.org/stable/c/41b70df5b38bc80967d2e0ed55cc3c3896bba781'
tags:
  - cve.org
epss: 0.00166
epssPercentile: 0.05771
ingestedAt: '2026-10-15T22:48:25.518Z'
---

## Overview

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

- `Linux >= c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 < 3b53dc1c641f2884d4750fc25aaf6c36b90db606`
- `Linux >= c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 < fe9da1812f8697a38f7e30991d568ec199e16059`
- `Linux >= c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 < 21a4ddb0f5e933f372808c10b9ac704505751bb1`
- `Linux >= c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 < 2eb7937b5fc7fcd90eab7bebb0181214b61b9283`
- `Linux >= c56e022c0a27142b7b59ae6bdf45f86bf4b298a1 < 41b70df5b38bc80967d2e0ed55cc3c3896bba781`
- `Linux 6.4`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
