CVE-2022-49785

published 1 May 2025 · updated 11 May 2026

x86/sgx: Add overflow check in sgx_validate_offset_length()

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 3b1c10fb754b0b67165e3f055a4208e5ba26dc89, Kernel 5277e3d633a5d4157987f4aff068caa55e36db19 and Kernel f0861f49bd946ff94fce4f82509c45e167f63690.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.11, >=c6d26d370767fa227fc44b98a8bdad112efdf563 <3b1c10fb754b0b67165e3f055a4208e5ba26dc89, >=c6d26d370767fa227fc44b98a8bdad112efdf563 <5277e3d633a5d4157987f4aff068caa55e36db19, >=c6d26d370767fa227fc44b98a8bdad112efdf563 <f0861f49bd946ff94fce4f82509c45e167f636903b1c10fb754b0b67165e3f055a4208e5ba26dc89, 5277e3d633a5d4157987f4aff068caa55e36db19, f0861f49bd946ff94fce4f82509c45e167f63690

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-49785 severity on Zeptric[![CVE-2022-49785](https://zeptric.io/badge/cve/CVE-2022-49785.svg)](https://zeptric.io/cve/CVE-2022-49785)