CVE-2022-49785

x86/sgx: Add overflow check in sgx_validate_offset_length()

State
Published
Severity
Not scored
Published
May 1, 2025
Updated
May 11, 2026
Reserved
May 1, 2025

Read the record on cve.org

Description

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

x86/sgx: Add overflow check in sgx_validate_offset_length()

sgx_validate_offset_length() function verifies "offset" and "length" arguments provided by userspace, but was missing an overflow check on their addition. Add it.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c6d26d370767fa227fc44b98a8bdad112efdf563 to before 5277e3d633a5d4157987f4aff068caa55e36db19Affected
  • c6d26d370767fa227fc44b98a8bdad112efdf563 to before 3b1c10fb754b0b67165e3f055a4208e5ba26dc89Affected
  • c6d26d370767fa227fc44b98a8bdad112efdf563 to before f0861f49bd946ff94fce4f82509c45e167f63690Affected
LinuxLinux
  • 5.11Affected
  • before 5.11Not affected
  • 5.15.81 through 5.15.*Not affected
  • 6.0.10 through 6.0.*Not affected
  • 6.1 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.