CVE-2022-49785

Source
https://cve.org/CVERecord?id=CVE-2022-49785
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49785.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49785
Downstream
Published
2025-05-01T14:09:18.311Z
Modified
2026-03-20T11:47:14.056616Z
Summary
x86/sgx: Add overflow check in sgx_validate_offset_length()
Details

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

x86/sgx: Add overflow check in sgxvalidateoffset_length()

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49785.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c6d26d370767fa227fc44b98a8bdad112efdf563
Fixed
5277e3d633a5d4157987f4aff068caa55e36db19
Fixed
3b1c10fb754b0b67165e3f055a4208e5ba26dc89
Fixed
f0861f49bd946ff94fce4f82509c45e167f63690

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49785.json"