CVE-2022-49785

high

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.

References

https://git.kernel.org/stable/c/f0861f49bd946ff94fce4f82509c45e167f63690

https://git.kernel.org/stable/c/5277e3d633a5d4157987f4aff068caa55e36db19

https://git.kernel.org/stable/c/3b1c10fb754b0b67165e3f055a4208e5ba26dc89

Details

Source: Mitre, NVD

Published: 2025-05-01

Updated: 2025-05-02

Risk Information

CVSS v2

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Severity: High

CVSS v3

Base Score: 7.8

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Severity: High