CVE-2026-97618

io_uring/net: don't overconsume buffers when using MSG_TRUNC

State
Published
Severity
Not scored
Published
Sep 25, 2026
Updated
Oct 19, 2026
Reserved
Sep 24, 2026

Read the record on cve.org

Description

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

io_uring/net: don't overconsume buffers when using MSG_TRUNC

When a recv/recvmsg is issued with MSG_TRUNC and the incoming packet is larger than the provided buffer, the net layer returns the full length of the packet rather than the number of bytes actually copied into the buffer. As a result, io_uring advances more of the provided buffer ring than was actually filled. Use the actual filled region size to consume the buffer, but still return the full size to preserve MSG_TRUNC semantics.

Take care with multishot, because that seems to already truncate the consumption based on the available payload size.

This was reported in https://github.com/axboe/liburing/issues/1619.

[axboe: fold in size_t unsigned fix]

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • ae98dbf43d755b4e111fcd086e53939bef3e9a1a to before 41d24d2fb168fa05fcaf9ec4e55478411dbbf8e1Affected
  • ae98dbf43d755b4e111fcd086e53939bef3e9a1a to before 927d96f91c582b319d104ecf50ec935a8dc29193Affected
  • ae98dbf43d755b4e111fcd086e53939bef3e9a1a to before 2e70ea75c7bb38a6dc212975f887310f14f7c043Affected
  • ae98dbf43d755b4e111fcd086e53939bef3e9a1a to before 6028b543884f8735e057ec9eea4908cd61cab230Affected
LinuxLinux
  • 6.12Affected
  • before 6.12Not affected
  • 6.12.112 through 6.12.*Not affected
  • 6.18.53 through 6.18.*Not affected
  • 7.2.7 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.