{"api_version":"1","generated_at":"2026-11-06T07:23:51+00:00","cve":"CVE-2022-50080","urls":{"html":"https://cve.report/CVE-2022-50080","api":"https://cve.report/api/cve/CVE-2022-50080.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-50080","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-50080"},"summary":{"title":"tee: add overflow check in register_shm_helper()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntee: add overflow check in register_shm_helper()\n\nWith special lengths supplied by user space, register_shm_helper() has\nan integer overflow when calculating the number of pages covered by a\nsupplied user space memory region.\n\nThis causes internal_get_user_pages_fast() a helper function of\npin_user_pages_fast() to do a NULL pointer dereference:\n\n  Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010\n  Modules linked in:\n  CPU: 1 PID: 173 Comm: optee_example_a Not tainted 5.19.0 #11\n  Hardware name: QEMU QEMU Virtual Machine, BIOS 0.0.0 02/06/2015\n  pc : internal_get_user_pages_fast+0x474/0xa80\n  Call trace:\n   internal_get_user_pages_fast+0x474/0xa80\n   pin_user_pages_fast+0x24/0x4c\n   register_shm_helper+0x194/0x330\n   tee_shm_register_user_buf+0x78/0x120\n   tee_ioctl+0xd0/0x11a0\n   __arm64_sys_ioctl+0xa8/0xec\n   invoke_syscall+0x48/0x114\n\nFix this by adding an an explicit call to access_ok() in\ntee_shm_register_user_buf() to catch an invalid user space address\nearly.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-06-18 11:15:36","updated_at":"2026-11-05 20:17:22"},"problem_types":["CWE-476"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}}],"references":[{"url":"https://git.kernel.org/stable/c/2f8e79a1a6128214cb9b205a9869341af5dfb16b","name":"https://git.kernel.org/stable/c/2f8e79a1a6128214cb9b205a9869341af5dfb16b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/573ae4f13f630d6660008f1974c0a8a29c30e18a","name":"https://git.kernel.org/stable/c/573ae4f13f630d6660008f1974c0a8a29c30e18a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b37e0f17653c00b586cdbcdf0dbca475358ecffd","name":"https://git.kernel.org/stable/c/b37e0f17653c00b586cdbcdf0dbca475358ecffd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c12f0e6126ad223806a365084e86370511654bf1","name":"https://git.kernel.org/stable/c/c12f0e6126ad223806a365084e86370511654bf1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/578c349570d2a912401963783b36e0ec7a25c053","name":"https://git.kernel.org/stable/c/578c349570d2a912401963783b36e0ec7a25c053","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/965333345fe952cc7eebc8e3a565ffc709441af2","name":"https://git.kernel.org/stable/c/965333345fe952cc7eebc8e3a565ffc709441af2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/58c008d4d398f792ca67f35650610864725518fd","name":"https://git.kernel.org/stable/c/58c008d4d398f792ca67f35650610864725518fd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-50080","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50080","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 033ddf12bcf5326b93bd604f50a7474a434a35f9 b37e0f17653c00b586cdbcdf0dbca475358ecffd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 033ddf12bcf5326b93bd604f50a7474a434a35f9 965333345fe952cc7eebc8e3a565ffc709441af2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 033ddf12bcf5326b93bd604f50a7474a434a35f9 578c349570d2a912401963783b36e0ec7a25c053 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 033ddf12bcf5326b93bd604f50a7474a434a35f9 c12f0e6126ad223806a365084e86370511654bf1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 033ddf12bcf5326b93bd604f50a7474a434a35f9 2f8e79a1a6128214cb9b205a9869341af5dfb16b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 033ddf12bcf5326b93bd604f50a7474a434a35f9 58c008d4d398f792ca67f35650610864725518fd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 033ddf12bcf5326b93bd604f50a7474a434a35f9 573ae4f13f630d6660008f1974c0a8a29c30e18a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.16","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.19.256 4.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4.211 5.4.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.137 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.62 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.18.19 5.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.19.3 5.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.0 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"50080","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2022-50080","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-11-05T19:54:05.265629Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-11-05T20:00:16.141Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/tee/tee_shm.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"b37e0f17653c00b586cdbcdf0dbca475358ecffd","status":"affected","version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","versionType":"git"},{"lessThan":"965333345fe952cc7eebc8e3a565ffc709441af2","status":"affected","version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","versionType":"git"},{"lessThan":"578c349570d2a912401963783b36e0ec7a25c053","status":"affected","version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","versionType":"git"},{"lessThan":"c12f0e6126ad223806a365084e86370511654bf1","status":"affected","version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","versionType":"git"},{"lessThan":"2f8e79a1a6128214cb9b205a9869341af5dfb16b","status":"affected","version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","versionType":"git"},{"lessThan":"58c008d4d398f792ca67f35650610864725518fd","status":"affected","version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","versionType":"git"},{"lessThan":"573ae4f13f630d6660008f1974c0a8a29c30e18a","status":"affected","version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/tee/tee_shm.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.16"},{"lessThan":"4.16","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"4.19.*","status":"unaffected","version":"4.19.256","versionType":"semver"},{"lessThanOrEqual":"5.4.*","status":"unaffected","version":"5.4.211","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.137","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.62","versionType":"semver"},{"lessThanOrEqual":"5.18.*","status":"unaffected","version":"5.18.19","versionType":"semver"},{"lessThanOrEqual":"5.19.*","status":"unaffected","version":"5.19.3","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.0","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"4.19.256","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.4.211","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.137","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.62","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.18.19","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.19.3","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.0","versionStartIncluding":"4.16","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntee: add overflow check in register_shm_helper()\n\nWith special lengths supplied by user space, register_shm_helper() has\nan integer overflow when calculating the number of pages covered by a\nsupplied user space memory region.\n\nThis causes internal_get_user_pages_fast() a helper function of\npin_user_pages_fast() to do a NULL pointer dereference:\n\n  Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010\n  Modules linked in:\n  CPU: 1 PID: 173 Comm: optee_example_a Not tainted 5.19.0 #11\n  Hardware name: QEMU QEMU Virtual Machine, BIOS 0.0.0 02/06/2015\n  pc : internal_get_user_pages_fast+0x474/0xa80\n  Call trace:\n   internal_get_user_pages_fast+0x474/0xa80\n   pin_user_pages_fast+0x24/0x4c\n   register_shm_helper+0x194/0x330\n   tee_shm_register_user_buf+0x78/0x120\n   tee_ioctl+0xd0/0x11a0\n   __arm64_sys_ioctl+0xa8/0xec\n   invoke_syscall+0x48/0x114\n\nFix this by adding an an explicit call to access_ok() in\ntee_shm_register_user_buf() to catch an invalid user space address\nearly."}],"providerMetadata":{"dateUpdated":"2026-05-11T19:12:28.920Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/b37e0f17653c00b586cdbcdf0dbca475358ecffd"},{"url":"https://git.kernel.org/stable/c/965333345fe952cc7eebc8e3a565ffc709441af2"},{"url":"https://git.kernel.org/stable/c/578c349570d2a912401963783b36e0ec7a25c053"},{"url":"https://git.kernel.org/stable/c/c12f0e6126ad223806a365084e86370511654bf1"},{"url":"https://git.kernel.org/stable/c/2f8e79a1a6128214cb9b205a9869341af5dfb16b"},{"url":"https://git.kernel.org/stable/c/58c008d4d398f792ca67f35650610864725518fd"},{"url":"https://git.kernel.org/stable/c/573ae4f13f630d6660008f1974c0a8a29c30e18a"}],"title":"tee: add overflow check in register_shm_helper()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2022-50080","datePublished":"2025-06-18T11:02:23.003Z","dateReserved":"2025-06-18T10:57:27.409Z","dateUpdated":"2026-11-05T20:00:16.141Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-06-18 11:15:36","lastModifiedDate":"2026-11-05 20:17:22","problem_types":["CWE-476"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-11-05T19:54:05.265629Z","id":"CVE-2022-50080","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"4.19.256","matchCriteriaId":"41E19BC1-64E0-4467-927D-8ABB2C0624CB"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"5.4.211","matchCriteriaId":"B1C63D19-C08C-4308-A848-B2523C9275BD"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.10.137","matchCriteriaId":"C2BF720F-C5EE-4DE2-9BDF-CE4CFBC767F4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.62","matchCriteriaId":"BA1D807C-6E4B-4302-A127-1A11ECCB740E"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"5.18.19","matchCriteriaId":"3C960AE6-B596-45FD-A1B9-5B999738CA4B"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"5.19.3","matchCriteriaId":"9FCF4A30-8824-4CC9-BC36-AB236B41DE93"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.0:rc1:*:*:*:*:*:*","matchCriteriaId":"E8BD11A3-8643-49B6-BADE-5029A0117325"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"50080","Ordinal":"1","Title":"tee: add overflow check in register_shm_helper()","CVE":"CVE-2022-50080","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"50080","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ntee: add overflow check in register_shm_helper()\n\nWith special lengths supplied by user space, register_shm_helper() has\nan integer overflow when calculating the number of pages covered by a\nsupplied user space memory region.\n\nThis causes internal_get_user_pages_fast() a helper function of\npin_user_pages_fast() to do a NULL pointer dereference:\n\n  Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010\n  Modules linked in:\n  CPU: 1 PID: 173 Comm: optee_example_a Not tainted 5.19.0 #11\n  Hardware name: QEMU QEMU Virtual Machine, BIOS 0.0.0 02/06/2015\n  pc : internal_get_user_pages_fast+0x474/0xa80\n  Call trace:\n   internal_get_user_pages_fast+0x474/0xa80\n   pin_user_pages_fast+0x24/0x4c\n   register_shm_helper+0x194/0x330\n   tee_shm_register_user_buf+0x78/0x120\n   tee_ioctl+0xd0/0x11a0\n   __arm64_sys_ioctl+0xa8/0xec\n   invoke_syscall+0x48/0x114\n\nFix this by adding an an explicit call to access_ok() in\ntee_shm_register_user_buf() to catch an invalid user space address\nearly.","Type":"Description","Title":"tee: add overflow check in register_shm_helper()"}]}}}