{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50080","id":"CVE-2022-50080","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 point","descriptionLong":"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.","published":"2025-06-18T11:02:23.003Z","updated":"2026-11-07T02:31:02.392895149Z","reserved":"2025-06-18T10:57:27.409Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","lessThan":"b37e0f17653c00b586cdbcdf0dbca475358ecffd","status":"affected","versionType":"git"},{"version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","lessThan":"965333345fe952cc7eebc8e3a565ffc709441af2","status":"affected","versionType":"git"},{"version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","lessThan":"578c349570d2a912401963783b36e0ec7a25c053","status":"affected","versionType":"git"},{"version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","lessThan":"c12f0e6126ad223806a365084e86370511654bf1","status":"affected","versionType":"git"},{"version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","lessThan":"2f8e79a1a6128214cb9b205a9869341af5dfb16b","status":"affected","versionType":"git"},{"version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","lessThan":"58c008d4d398f792ca67f35650610864725518fd","status":"affected","versionType":"git"},{"version":"033ddf12bcf5326b93bd604f50a7474a434a35f9","lessThan":"573ae4f13f630d6660008f1974c0a8a29c30e18a","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.16","status":"affected"},{"version":"0","lessThan":"4.16","status":"unaffected","versionType":"semver"},{"version":"4.19.256","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.211","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.137","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.62","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.18.19","lessThanOrEqual":"5.18.*","status":"unaffected","versionType":"semver"},{"version":"5.19.3","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/b37e0f17653c00b586cdbcdf0dbca475358ecffd","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/965333345fe952cc7eebc8e3a565ffc709441af2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/578c349570d2a912401963783b36e0ec7a25c053","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c12f0e6126ad223806a365084e86370511654bf1","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2f8e79a1a6128214cb9b205a9869341af5dfb16b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/58c008d4d398f792ca67f35650610864725518fd","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/573ae4f13f630d6660008f1974c0a8a29c30e18a","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50080.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50080","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0028,"epssPercentile":0.20822,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50080","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50080","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50080","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50080","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}