CVE-2022-49785
publishedx86/sgx: Add overflow check in sgx_validate_offset_length()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxc6d26d370767fa227fc44b98a8bdad112efdf563 to < 5277e3d633a5d4157987f4aff068caa55e36db19 · c6d26d370767fa227fc44b98a8bdad112efdf563 to < 3b1c10fb754b0b67165e3f055a4208e5ba26dc89 · c6d26d370767fa227fc44b98a8bdad112efdf563 to < f0861f49bd946ff94fce4f82509c45e167f63690 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.11 (affected) · 0 to < 5.11 (unaffected · semver) · 5.15.81 through 5.15.* (unaffected · semver) · 6.0.10 through 6.0.* (unaffected · semver) · 6.1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | c6d26d370767fa227fc44b98a8bdad112efdf563 to < 5277e3d633a5d4157987f4aff068caa55e36db19 (affected · git)c6d26d370767fa227fc44b98a8bdad112efdf563 to < 3b1c10fb754b0b67165e3f055a4208e5ba26dc89 (affected · git)c6d26d370767fa227fc44b98a8bdad112efdf563 to < f0861f49bd946ff94fce4f82509c45e167f63690 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.11 (affected)0 to < 5.11 (unaffected · semver)5.15.81 through 5.15.* (unaffected · semver)6.0.10 through 6.0.* (unaffected · semver)6.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
x86/sgx: Add overflow check in sgx_validate_offset_length()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- be5a644710c065a052d995118da893ea518214e75b9b7341afe8ba7cec832999
- Ingested
- 23 Sep 2026, 08:04:21 UTC
- Source record
- Official CVE record