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

Published Sep 17, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

phonet: pep: do not write beyond optlen in getsockopt

pepgetsockopt() clamps the reported length to the caller's buffer with mint(), but then stores the value with putuser(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 copytouser() bounded by len, so at most optlen bytes are copied, matching the length reported back to userspace.

Event History

Sep 17, 2026
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger the out-of-bounds write?

A local caller must invoke getsockopt() through the Phonet PEP socket path with an optval buffer length smaller than sizeof(int). The vulnerable code can then write a full integer despite reporting the shorter, clamped length.

2

How large is the overwrite?

The write can extend one to three bytes beyond the caller-provided userspace buffer, depending on the supplied optlen. The write is bounded to the size of an int, but not to the supplied buffer length.

3

How can this be mitigated before the fix is applied?

Avoid calling the affected PEP getsockopt() operation with an optlen smaller than sizeof(int). Callers should provide an optval buffer and optlen of at least sizeof(int) until the corrected bounded copy behavior is available.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203