Skip to content
Heist/ feed
Back to feed
UnratedFix available

vsock: fix buffer size clamping order

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.258, 5.15.209, 6.1.175, 6.12.90, 6.18.32, 6.6.140, 7.0.9
CVEs
CVE-2026-46234
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 23:18 UTC · Revision 1

Source evidence

vsock: fix buffer size clamping order

core-osv · Original source

Published 28 May 2026, 09:40 UTC

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.

osv:CVE-2026-46234

Kernel

Fixed versions: 5.10.258, 5.15.209, 6.1.175, 6.6.140, 6.12.90, 6.18.32, 7.0.9

Complete source record
{
  "id": "ed1298a8d4d1db63e186f01ae5cf060d48f33e08b88b295351d1ce6eda1765aa",
  "url": "https://osv.dev/vulnerability/CVE-2026-46234",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "vsock: fix buffer size clamping order",
    "summary": "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.",
    "evidence": "osv:CVE-2026-46234",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.258",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.209",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.175",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.140",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.90",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.32",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.0.9",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-46234",
      "aliases": [
        "CVE-2026-46234"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b9f2b0ffde0c9b666b2b1672eb468b8f805a9b97"
                },
                {
                  "fixed": "f6ec135941d2c1c2dbb87b5ce1783f4f6ac6ccca"
                },
                {
                  "fixed": "caf11dfea5233a69298a1c448bbf8d1639c80536"
                },
                {
                  "fixed": "01ef69785dc3162f588a361ab770b1e312800188"
                },
                {
                  "fixed": "a998a7e250bf976539e05a00ec64a81292afecaa"
                },
                {
                  "fixed": "310da27932dd0afe7ce7456dfe1f0814c3301f41"
                },
                {
                  "fixed": "2602f7bb5818e92315feeaeb71d8ce4d5c9ab160"
                },
                {
                  "fixed": "0b68881501460c3761f196469e1e503218c5e536"
                },
                {
                  "fixed": "d114bfdc9b76bf93b881e195b7ec957c14227bab"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46234.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.258"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.209"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.175"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.140"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.90"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.32"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.0.9"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46234.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.370503692Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-784472.html",
        "https://git.kernel.org/stable/c/01ef69785dc3162f588a361ab770b1e312800188",
        "https://git.kernel.org/stable/c/0b68881501460c3761f196469e1e503218c5e536",
        "https://git.kernel.org/stable/c/2602f7bb5818e92315feeaeb71d8ce4d5c9ab160",
        "https://git.kernel.org/stable/c/310da27932dd0afe7ce7456dfe1f0814c3301f41",
        "https://git.kernel.org/stable/c/a998a7e250bf976539e05a00ec64a81292afecaa",
        "https://git.kernel.org/stable/c/caf11dfea5233a69298a1c448bbf8d1639c80536",
        "https://git.kernel.org/stable/c/d114bfdc9b76bf93b881e195b7ec957c14227bab",
        "https://git.kernel.org/stable/c/f6ec135941d2c1c2dbb87b5ce1783f4f6ac6ccca",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46234.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-46234",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46234.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-46234",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 490829,
  "published_at": "2026-05-28T09:40:58.373+00:00"
}