vsock/virtio: fix potential underflow in virtio_transport_get_credit()
Summary
| CVE | CVE-2026-23069 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-02-04 17:16:17 UTC |
| Updated | 2026-10-19 19:17:33 UTC |
| 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] |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Problem Types: CWE-191 | CWE-190 | CWE-190 CWE-190 Integer Overflow or Wraparound
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 06a8fc78367d070720af960dcecec917d3ae5f3b d96de882d6b99955604669d962ae14e94b66a551 git | Not specified |
| CNA | Linux | Linux | affected 06a8fc78367d070720af960dcecec917d3ae5f3b 02f9af192b98d15883c70dd41ac76d1b0217c899 git | Not specified |
| CNA | Linux | Linux | affected 06a8fc78367d070720af960dcecec917d3ae5f3b d05bc313788f0684b27f0f5b60c52a844669b542 git | Not specified |
| CNA | Linux | Linux | affected 06a8fc78367d070720af960dcecec917d3ae5f3b ec0f1b3da8061be3173d1c39faaf9504f91942c3 git | Not specified |
| CNA | Linux | Linux | affected 06a8fc78367d070720af960dcecec917d3ae5f3b 3ef3d52a1a9860d094395c7a3e593f3aa26ff012 git | Not specified |
| CNA | Linux | Linux | affected 4.8 | Not specified |
| CNA | Linux | Linux | unaffected 4.8 semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.162 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.122 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.68 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.8 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.19 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/3ef3d52a1a9860d094395c7a3e593f3aa26ff012 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/d05bc313788f0684b27f0f5b60c52a844669b542 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/02f9af192b98d15883c70dd41ac76d1b0217c899 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/ec0f1b3da8061be3173d1c39faaf9504f91942c3 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/d96de882d6b99955604669d962ae14e94b66a551 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.