CVE-2022-50080
BaseFortify
Publication date: 2025-06-18
Last updated on: 2025-11-18
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | 6.0 |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-476 | The product dereferences a pointer that it expects to be valid but is NULL. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is an integer overflow in the Linux kernel function register_shm_helper() when calculating the number of pages for a user-supplied memory region. This overflow leads to a NULL pointer dereference in internal_get_user_pages_fast(), causing the kernel to crash or behave unexpectedly. The issue arises from improper validation of user space memory lengths, and it is fixed by adding an explicit access_ok() check to catch invalid user space addresses early.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to crash or become unstable due to a NULL pointer dereference triggered by specially crafted user space inputs. This may lead to denial of service or potential system instability, affecting the availability and reliability of the system.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, update the Linux kernel to a version that includes the fix for the integer overflow in register_shm_helper(). The fix involves adding an explicit call to access_ok() in tee_shm_register_user_buf() to catch invalid user space addresses early, preventing the NULL pointer dereference. Until the update is applied, avoid using the affected tee ioctl functionality with untrusted user space inputs.