CVE-2026-23069

vsock/virtio: fix potential underflow in virtio_transport_get_credit()

State
Published
Severity
Not scored
Published
Feb 4, 2026
Updated
Oct 19, 2026
Reserved
Jan 13, 2026

Read the record on cve.org

Description

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

vsock/virtio: fix potential underflow in virtio_transport_get_credit()

The credit calculation in virtio_transport_get_credit() uses unsigned arithmetic:

ret = vvs->peer_buf_alloc - (vvs->tx_cnt - vvs->peer_fwd_cnt);

If the peer shrinks its advertised buffer (peer_buf_alloc) while bytes are in flight, the subtraction can underflow and produce a large positive value, potentially allowing more data to be queued than the peer can handle.

Reuse virtio_transport_has_space() which already handles this case and add a comment to make it clear why we are doing that.

[Stefano: use virtio_transport_has_space() instead of duplicating the code] [Stefano: tweak the commit message]

Scores

The record has no CVSS score.

Weaknesses

  • CWE-190 Integer Overflow or Wraparound

Affected Products

ProductVersions
LinuxLinux
  • 06a8fc78367d070720af960dcecec917d3ae5f3b to before d96de882d6b99955604669d962ae14e94b66a551Affected
  • 06a8fc78367d070720af960dcecec917d3ae5f3b to before 02f9af192b98d15883c70dd41ac76d1b0217c899Affected
  • 06a8fc78367d070720af960dcecec917d3ae5f3b to before d05bc313788f0684b27f0f5b60c52a844669b542Affected
  • 06a8fc78367d070720af960dcecec917d3ae5f3b to before ec0f1b3da8061be3173d1c39faaf9504f91942c3Affected
  • 06a8fc78367d070720af960dcecec917d3ae5f3b to before 3ef3d52a1a9860d094395c7a3e593f3aa26ff012Affected
LinuxLinux
  • 4.8Affected
  • before 4.8Not affected
  • 6.1.162 through 6.1.*Not affected
  • 6.6.122 through 6.6.*Not affected
  • 6.12.68 through 6.12.*Not affected
  • 6.18.8 through 6.18.*Not affected
  • 6.19 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.