CVE Catalog

CVE-2026-90327

Unknown
Published: Translated: NVD NIST

Summary

In the Linux kernel, the pep_getsockopt() function in the phonet module clamped the reported length to the caller's buffer using min_t(), but then stored the value with put_user(), which always writes sizeof(int) bytes. A getsockopt() call with an optlen smaller than sizeof(int) thus reported the clamped length yet wrote a full int, one to three bytes past the user buffer.

Risk Assessment

May lead to memory corruption in user space (out-of-bounds write) and potential exploitation for privilege escalation or process destabilization.

Recommendation

Update the Linux kernel to a version containing the fix that uses copy_to_user() bounded by len so at most optlen bytes are copied.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS