vsock: fix buffer size clamping order
Summary
| CVE | CVE-2026-46234 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-28 10:16:39 UTC |
| Updated | 2026-05-28 13:44:01 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved:
vsock: fix buffer size clamping order
In vsock_update_buffer_size(), the buffer size was being clamped to the
maximum first, and then to the minimum. If a user sets a minimum buffer
size larger than the maximum, the minimum check overrides the maximum
check, inverting the constraint.
This breaks the intended socket memory boundaries by allowing the
vsk->buffer_size to grow beyond the configured vsk->buffer_max_size.
Fix this by checking the minimum first, and then the maximum. This
ensures the buffer size never exceeds the buffer_max_size. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected b9f2b0ffde0c9b666b2b1672eb468b8f805a9b97 a998a7e250bf976539e05a00ec64a81292afecaa git |
Not specified |
| CNA |
Linux |
Linux |
affected b9f2b0ffde0c9b666b2b1672eb468b8f805a9b97 310da27932dd0afe7ce7456dfe1f0814c3301f41 git |
Not specified |
| CNA |
Linux |
Linux |
affected b9f2b0ffde0c9b666b2b1672eb468b8f805a9b97 2602f7bb5818e92315feeaeb71d8ce4d5c9ab160 git |
Not specified |
| CNA |
Linux |
Linux |
affected b9f2b0ffde0c9b666b2b1672eb468b8f805a9b97 0b68881501460c3761f196469e1e503218c5e536 git |
Not specified |
| CNA |
Linux |
Linux |
affected b9f2b0ffde0c9b666b2b1672eb468b8f805a9b97 d114bfdc9b76bf93b881e195b7ec957c14227bab git |
Not specified |
| CNA |
Linux |
Linux |
affected 5.5 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.5 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.6.140 6.6.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.90 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.32 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.0.9 7.0.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.1-rc1 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/2602f7bb5818e92315feeaeb71d8ce4d5c9ab160 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/0b68881501460c3761f196469e1e503218c5e536 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/310da27932dd0afe7ce7456dfe1f0814c3301f41 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/a998a7e250bf976539e05a00ec64a81292afecaa |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/d114bfdc9b76bf93b881e195b7ec957c14227bab |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| 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.