5.5medium
x86/sgx: Add overflow check in sgx_validate_offset_length()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from c6d26d370767fa227fc44b98a8bdad112efdf563 before 5277e3d633a5d4157987f4aff068caa55e36db19, from c6d26d370767fa227fc44b98a8bdad112efdf563 before 3b1c10fb754b0b67165e3f055a4208e5ba26dc89, from c6d26d370767fa227fc44b98a8bdad112efdf563 before f0861f49bd946ff94fce4f82509c45e167f63690, 5.11 Not affected: before 5.11, from 5.15.81 up to 5.15.*, from 6.0.10 up to 6.0.*, from 6.1 up to * | CVE List |
| linux linux_kernel | from 5.11 before 5.15.81, from 5.16 before 6.0.10, 6.1 | NVD |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: x86/sgx: Se ha añadido una comprobación de desbordamiento en sgx_validate_offset_length(). La función sgx_validate_offset_length() verifica los argumentos "offset" y "length" proporcionados por el espacio de usuario, pero no incluía una comprobación de desbordamiento al añadirlos. Añádala.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-49785 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-49785 changed 2026-06-17 | Public domain |