vsock: fix buffer size clamping order

Summary

CVECVE-2026-46234
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-05-28 10:16:39 UTC
Updated2026-05-28 13:44:01 UTC
DescriptionIn 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

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report