{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-40031","id":"CVE-2025-40031","title":"tee: fix register_shm_helper()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntee: fix register_shm_helper()\n\nIn register_shm_helper(), fix incorrect error handling for a call to\niov_iter_extract_pages(). A case is missing for when\niov_iter_extract_pages() only got some pages and return a number larger\nthan 0, but not the requested amount.\n\nThis fixes a possible NULL pointer dereference following a bad inp","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ntee: fix register_shm_helper()\n\nIn register_shm_helper(), fix incorrect error handling for a call to\niov_iter_extract_pages(). A case is missing for when\niov_iter_extract_pages() only got some pages and return a number larger\nthan 0, but not the requested amount.\n\nThis fixes a possible NULL pointer dereference following a bad input from\nioctl(TEE_IOC_SHM_REGISTER) where parts of the buffer isn't mapped.","published":"2025-10-28T11:48:13.644Z","updated":"2026-10-28T02:30:48.673594188Z","reserved":"2025-04-16T07:20:57.153Z","status":"Deferred","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7bdee41575919773818e525ea19e54eb817770af","lessThan":"9338093db954918558677a468d32e77041c65167","status":"affected","versionType":"git"},{"version":"7bdee41575919773818e525ea19e54eb817770af","lessThan":"6a7874ab814ce12003c46a92f7afc9b035c8e8e9","status":"affected","versionType":"git"},{"version":"7bdee41575919773818e525ea19e54eb817770af","lessThan":"d5cf5b37064b1699d946e8b7ab4ac7d7d101814c","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","lessThan":"6.8","status":"unaffected","versionType":"semver"},{"version":"6.12.53","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.17.3","lessThanOrEqual":"6.17.*","status":"unaffected","versionType":"semver"},{"version":"6.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/9338093db954918558677a468d32e77041c65167","tags":["web"]},{"url":"https://git.kernel.org/stable/c/6a7874ab814ce12003c46a92f7afc9b035c8e8e9","tags":["web"]},{"url":"https://git.kernel.org/stable/c/d5cf5b37064b1699d946e8b7ab4ac7d7d101814c","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40031.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40031","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00211,"epssPercentile":0.11526,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-40031","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40031","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-40031","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-2025-40031","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}