CVE-2026-46234
Awaiting Analysis Awaiting Analysis - Queue
Buffer Size Clamping Order Issue in Linux Kernel

Publication date: 2026-05-28

Last updated on: 2026-05-28

Assigner: kernel.org

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-28
Last Modified
2026-05-28
Generated
2026-05-28
AI Q&A
2026-05-28
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in the Linux kernel's vsock component, specifically in the function vsock_update_buffer_size(). The issue arises because the buffer size was clamped incorrectly: the code first limited the buffer size to a maximum value and then to a minimum value. If a user sets the minimum buffer size larger than the maximum, the minimum check overrides the maximum, causing the buffer size to exceed the intended maximum limit.

This behavior breaks the intended socket memory boundaries by allowing the buffer size to grow beyond the configured maximum size. The fix involves changing the order of checks to clamp the buffer size to the minimum first and then to the maximum, ensuring the buffer size never exceeds the maximum allowed.


How can this vulnerability impact me? :

This vulnerability can impact you by allowing the buffer size in the vsock socket to grow beyond its configured maximum limit. This could potentially lead to excessive memory usage or resource exhaustion in the kernel, which might affect system stability or performance.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart