CVE-2026-90327

phonet: pep: do not write beyond optlen in getsockopt

State
Published
Severity
Not scored
Published
Sep 17, 2026
Updated
Oct 19, 2026
Reserved
Sep 11, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a to before 6054fed6bad08b6d03973e8ffca7f0c9394d1c30Affected
  • 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a to before eac733a0b6fe0a52d91f9f623425735ed50ac6c2Affected
  • 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a to before 95e0ed2439dd1792eb454c68ae8d10f30ffe3bffAffected
  • 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a to before 056eea1a2068ad2fb7c3093c5f1095268f87d0c7Affected
  • 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a to before 1bf499e438da80455e258049bce60ffb3a53f3faAffected
  • 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a to before c4487e4d5309de587479ecc2f5173b49586f46f4Affected
  • 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a to before f97022fefe6eb06ee18549d603420440f2959802Affected
  • 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a to before 77e5eb0e192aec6710c03ca8144582fd2af36ca4Affected
LinuxLinux
  • 2.6.28Affected
  • before 2.6.28Not affected
  • 5.10.270 through 5.10.*Not affected
  • 5.15.221 through 5.15.*Not affected
  • 6.1.188 through 6.1.*Not affected
  • 6.6.157 through 6.6.*Not affected
  • 6.12.110 through 6.12.*Not affected
  • 6.18.52 through 6.18.*Not affected
  • 7.2.6 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.