← Back to CVE Explorer

CVE-2026-90327

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: phonet: pep: do not write beyond optlen in getsockopt pep_getsockopt() clamps the reported length to the caller's buffer with min_t(), but then stores the value with put_user(val, (int __user *) optval), which always writes sizeof(int) bytes. A getsockopt() call with an optlen smaller than sizeof(int) thus reports the clamped length yet writes a full int, one to three bytes past the user buffer. Write the value with copy_to_user() bounded by len, so at most optlen bytes are copied, matching the length reported back to userspace.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-09-17 17:17:30.800000
Last modified
2026-10-19 09:19:26.783000
View original CVE JSON
{
  "id": "CVE-2026-90327",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-09-17T17:17:30.800",
  "lastModified": "2026-10-19T09:19:26.783",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nphonet: pep: do not write beyond optlen in getsockopt\n\npep_getsockopt() clamps the reported length to the caller's buffer with\nmin_t(), but then stores the value with put_user(val, (int __user *)\noptval), which always writes sizeof(int) bytes. A getsockopt() call with\nan optlen smaller than sizeof(int) thus reports the clamped length yet\nwrites a full int, one to three bytes past the user buffer.\n\nWrite the value with copy_to_user() bounded by len, so at most optlen\nbytes are copied, matching the length reported back to userspace."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "net/phonet/pep.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "02a47617cdce440f60c71a51f3a93f9f5fcc5a7a",
              "lessThan": "6054fed6bad08b6d03973e8ffca7f0c9394d1c30",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "02a47617cdce440f60c71a51f3a93f9f5fcc5a7a",
              "lessThan": "eac733a0b6fe0a52d91f9f623425735ed50ac6c2",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "02a47617cdce440f60c71a51f3a93f9f5fcc5a7a",
              "lessThan": "95e0ed2439dd1792eb454c68ae8d10f30ffe3bff",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "02a47617cdce440f60c71a51f3a93f9f5fcc5a7a",
              "lessThan": "056eea1a2068ad2fb7c3093c5f1095268f87d0c7",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "02a47617cdce440f60c71a51f3a93f9f5fcc5a7a",
              "lessThan": "1bf499e438da80455e258049bce60ffb3a53f3fa",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "02a47617cdce440f60c71a51f3a93f9f5fcc5a7a",
              "lessThan": "c4487e4d5309de587479ecc2f5173b49586f46f4",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "02a47617cdce440f60c71a51f3a93f9f5fcc5a7a",
              "lessThan": "f97022fefe6eb06ee18549d603420440f2959802",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "02a47617cdce440f60c71a51f3a93f9f5fcc5a7a",
              "lessThan": "77e5eb0e192aec6710c03ca8144582fd2af36ca4",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "net/phonet/pep.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "2.6.28",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "2.6.28",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.10.270",
              "lessThanOrEqual": "5.10.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.221",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.188",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.157",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.110",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.52",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.6",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/056eea1a2068ad2fb7c3093c5f1095268f87d0c7",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/1bf499e438da80455e258049bce60ffb3a53f3fa",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/6054fed6bad08b6d03973e8ffca7f0c9394d1c30",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/77e5eb0e192aec6710c03ca8144582fd2af36ca4",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/95e0ed2439dd1792eb454c68ae8d10f30ffe3bff",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/c4487e4d5309de587479ecc2f5173b49586f46f4",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/eac733a0b6fe0a52d91f9f623425735ed50ac6c2",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/f97022fefe6eb06ee18549d603420440f2959802",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}