CVE-2022-49785Published May 1, 2025 · May 1Updated Oct 28
x86/sgx: Add overflow check in sgx_validate_offset_length()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.15.816.0.106.1In 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.
From the CVE record · Linux
The Linux kernel’s x86/sgx offset validation lacked an overflow check when adding the offset and length supplied by userspace. A local user could supply values that overflow during validation; the input does not describe a further impact.
Engineers running Linux kernels with x86/sgx support should check whether their kernel includes the fix; affected versions are not specified.