CVEvulnerability

CVE-2026-23069

5.5 MEDIUM Published 2026-02-04 Modified 2026-10-19 Official page ↗
Status
Modified
Published
2026-02-04
Last modified
2026-10-19
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-190, CWE-191

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]

Affected configurations

• linux linux kernel (>= 4.8 < 6.1.162) • linux linux kernel (>= 6.2 < 6.6.122) • linux linux kernel (>= 6.7 < 6.12.68) • linux linux kernel (>= 6.13 < 6.18.8) • linux linux kernel 6.19

Related

Weakness · CWE (2)

  • CWE-190 Integer Overflow or Wraparound weakness
  • CWE-191 Integer Underflow (Wrap or Wraparound) weakness

References