CVE-2022-50080
tee: add overflow check in register_shm_helper()
Mitigation
- Upgrade Linux to 573ae4f13f630d6660008f1974c0a8a29c30e18a or later.
Who should check
- Anyone running Linux >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < b37e0f17653c00b586cdbcdf0dbca475358ecffd; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 965333345fe952cc7eebc8e3a565ffc709441af2; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 578c349570d2a912401963783b36e0ec7a25c053; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < c12f0e6126ad223806a365084e86370511654bf1; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 2f8e79a1a6128214cb9b205a9869341af5dfb16b; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 58c008d4d398f792ca67f35650610864725518fd; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 573ae4f13f630d6660008f1974c0a8a29c30e18a
- Anyone running Linux 4.16
Vulnerability facts
- Affected
- Linux >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < b37e0f17653c00b586cdbcdf0dbca475358ecffd; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 965333345fe952cc7eebc8e3a565ffc709441af2; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 578c349570d2a912401963783b36e0ec7a25c053; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < c12f0e6126ad223806a365084e86370511654bf1; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 2f8e79a1a6128214cb9b205a9869341af5dfb16b; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 58c008d4d398f792ca67f35650610864725518fd; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 573ae4f13f630d6660008f1974c0a8a29c30e18a; Linux 4.16
- Fixed in
- Linux 965333345fe952cc7eebc8e3a565ffc709441af2, Linux 578c349570d2a912401963783b36e0ec7a25c053, Linux 2f8e79a1a6128214cb9b205a9869341af5dfb16b, Linux 58c008d4d398f792ca67f35650610864725518fd, Linux 573ae4f13f630d6660008f1974c0a8a29c30e18a
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: tee: add overflow check in register_shm_helper() With special lengths supplied by user space, register_shm_helper() has an integer overflow when calculating the number of pages covered by a supplied user space memory region. This causes internal_get_user_pages_fast() a helper function of pin_user_pages_fast() to do a NULL pointer dereference: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010 Modules linked in: CPU: 1 PID: 173 Comm: optee_example_a Not tainted 5.19.0 #11 Hardware name: QEMU QEMU Virtual Machine, BIOS 0.0.0 02/06/2015 pc : internal_get_user_pages_fast+0x474/0xa80 Call trace: internal_get_user_pages_fast+0x474/0xa80 pin_user_pages_fast+0x24/0x4c register_shm_helper+0x194/0x330 tee_shm_register_user_buf+0x78/0x120 tee_ioctl+0xd0/0x11a0 __arm64_sys_ioctl+0xa8/0xec invoke_syscall+0x48/0x114 Fix this by adding an an explicit call to access_ok() in tee_shm_register_user_buf() to catch an invalid user space address early.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < b37e0f17653c00b586cdbcdf0dbca475358ecffd; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 965333345fe952cc7eebc8e3a565ffc709441af2; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 578c349570d2a912401963783b36e0ec7a25c053; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < c12f0e6126ad223806a365084e86370511654bf1; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 2f8e79a1a6128214cb9b205a9869341af5dfb16b; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 58c008d4d398f792ca67f35650610864725518fd; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 573ae4f13f630d6660008f1974c0a8a29c30e18a | — | cvelist |
| Linux | 4.16 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-50080. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50080.md Affected: Linux >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < b37e0f17653c00b586cdbcdf0dbca475358ecffd; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 965333345fe952cc7eebc8e3a565ffc709441af2; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 578c349570d2a912401963783b36e0ec7a25c053; >= 033ddf12bcf5326b93bd604… Fixed in: Linux 965333345fe952cc7eebc8e3a565ffc709441af2, Linux 578c349570d2a912401963783b36e0ec7a25c053, Linux 2f8e79a1a6128214cb9b205a9869341af5dfb16b, Linux 58c008d4d398f792ca67f35650610864725518fd, Linux 573ae4f13f630d6660008f1974c0a8a29c30e18a Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/b37e0f17653c00b586cdbcdf0dbca475358ecffd
- https://git.kernel.org/stable/c/965333345fe952cc7eebc8e3a565ffc709441af2
- https://git.kernel.org/stable/c/578c349570d2a912401963783b36e0ec7a25c053
- https://git.kernel.org/stable/c/c12f0e6126ad223806a365084e86370511654bf1
- https://git.kernel.org/stable/c/2f8e79a1a6128214cb9b205a9869341af5dfb16b
- https://git.kernel.org/stable/c/58c008d4d398f792ca67f35650610864725518fd
- https://git.kernel.org/stable/c/573ae4f13f630d6660008f1974c0a8a29c30e18a
FAQ
Is CVE-2022-50080 being exploited?
There is no confirmed exploitation: CVE-2022-50080 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50080?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-50080?
Linux >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < b37e0f17653c00b586cdbcdf0dbca475358ecffd; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 965333345fe952cc7eebc8e3a565ffc709441af2; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 578c349570d2a912401963783b36e0ec7a25c053; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < c12f0e6126ad223806a365084e86370511654bf1; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 2f8e79a1a6128214cb9b205a9869341af5dfb16b; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 58c008d4d398f792ca67f35650610864725518fd; >= 033ddf12bcf5326b93bd604f50a7474a434a35f9, < 573ae4f13f630d6660008f1974c0a8a29c30e18a; Linux 4.16.
Is there a fix for CVE-2022-50080?
Yes. Fixed in Linux 965333345fe952cc7eebc8e3a565ffc709441af2, Linux 578c349570d2a912401963783b36e0ec7a25c053, Linux 2f8e79a1a6128214cb9b205a9869341af5dfb16b, Linux 58c008d4d398f792ca67f35650610864725518fd, Linux 573ae4f13f630d6660008f1974c0a8a29c30e18a. Upgrade Linux to 573ae4f13f630d6660008f1974c0a8a29c30e18a or later.
How do I check if I'm affected by CVE-2022-50080?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.