Critical Overflow Check Vulnerability in Linux Kernel - CVE-2022-49785

linux Updated 02 Oct 2025

Summary

01/05/2025
N/A
Yes i
Unrated
Not published

CVE-2022-49785: 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 u... Affects linux versions < 6.0.10-1. Fixed in 6.0.10-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. It is known for its stability, performance, and security features. However, like any complex software, it can have vulnerabilities. CVE-2022-49785 specifically affects the x86 architecture's SGX (Software Guard Extensions) functionality, which is designed to create secure enclaves for sensitive data processing.

Vulnerability Detail

CVE-2022-49785 is a vulnerability in the Linux kernel's sgx_validate_offset_length() function. This function is responsible for validating user-provided 'offset' and 'length' parameters. The vulnerability arises from the absence of an overflow check during the addition of these parameters, which could lead to buffer overflows or memory corruption. Such issues can be exploited by attackers to execute arbitrary code, potentially compromising the system's integrity and confidentiality.

How To Fix

Minimum fixed version

6.0.10-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds provided for this vulnerability. The best course of action is to apply the patch as soon as it is available.

Conclusion

CVE-2022-49785 is a significant vulnerability in the Linux kernel that requires immediate attention. Users are advised to update their systems to the patched version to mitigate potential risks. Regular monitoring for vulnerabilities using tools like Vulert can help maintain system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49785 is a vulnerability in the Linux kernel related to the SGX functionality, specifically due to a lack of overflow checks in parameter validation.

Exploitation of this vulnerability could lead to buffer overflows, allowing attackers to execute arbitrary code, which may compromise system security.

You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner without any signup.

Update your Linux package to version 6.0.10-1 or higher using the command: sudo apt-get install linux=6.0.10-1.

Currently, there are no specific workarounds available. The recommended action is to apply the patch as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.0.10-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback