{"api_version":"1","generated_at":"2026-08-22T00:59:11+00:00","cve":"CVE-2021-47087","urls":{"html":"https://cve.report/CVE-2021-47087","api":"https://cve.report/api/cve/CVE-2021-47087.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-47087","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-47087"},"summary":{"title":"tee: optee: Fix incorrect page free bug","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntee: optee: Fix incorrect page free bug\n\nPointer to the allocated pages (struct page *page) has already\nprogressed towards the end of allocation. It is incorrect to perform\n__free_pages(page, order) using this pointer as we would free any\narbitrary pages. Fix this by stop modifying the page pointer.","state":"PUBLISHED","assigner":"Linux","published_at":"2024-03-04 18:15:07","updated_at":"2026-08-04 10:16:44"},"problem_types":["CWE-763"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/91e94e42f6fc49635f1a16d8ae3f79552bcfda29","name":"https://git.kernel.org/stable/c/91e94e42f6fc49635f1a16d8ae3f79552bcfda29","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/806142c805cacd098e61bdc0f72c778a2389fe4a","name":"https://git.kernel.org/stable/c/806142c805cacd098e61bdc0f72c778a2389fe4a","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/18549bf4b21c739a9def39f27dcac53e27286ab5","name":"https://git.kernel.org/stable/c/18549bf4b21c739a9def39f27dcac53e27286ab5","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ad338d825e3f7b96ee542bf313728af2d19fe9ad","name":"https://git.kernel.org/stable/c/ad338d825e3f7b96ee542bf313728af2d19fe9ad","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-47087","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47087","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3c712f14d8a9354a8807c15c64c8dd334499cc42 806142c805cacd098e61bdc0f72c778a2389fe4a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1340dc3fb75ea69221f4f5dcb0cbace55ad0331c ad338d825e3f7b96ee542bf313728af2d19fe9ad git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ec185dd3ab257dc2a60953fdf1b6622f524cc5b7 91e94e42f6fc49635f1a16d8ae3f79552bcfda29 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ec185dd3ab257dc2a60953fdf1b6622f524cc5b7 18549bf4b21c739a9def39f27dcac53e27286ab5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 255e17923b22cb7abd026e044416d61f6bd0eec0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4.140 5.4.169 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.58 5.10.89 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.13.10 5.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.14","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4.169 5.4.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.89 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.12 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.16 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"47087","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-2021-47087","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2024-03-06T20:26:26.296406Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2024-06-04T17:13:35.356Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"},{"providerMetadata":{"dateUpdated":"2024-08-04T05:24:39.851Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/806142c805cacd098e61bdc0f72c778a2389fe4a"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/ad338d825e3f7b96ee542bf313728af2d19fe9ad"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/91e94e42f6fc49635f1a16d8ae3f79552bcfda29"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/18549bf4b21c739a9def39f27dcac53e27286ab5"}],"title":"CVE Program Container"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/tee/optee/core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"806142c805cacd098e61bdc0f72c778a2389fe4a","status":"affected","version":"3c712f14d8a9354a8807c15c64c8dd334499cc42","versionType":"git"},{"lessThan":"ad338d825e3f7b96ee542bf313728af2d19fe9ad","status":"affected","version":"1340dc3fb75ea69221f4f5dcb0cbace55ad0331c","versionType":"git"},{"lessThan":"91e94e42f6fc49635f1a16d8ae3f79552bcfda29","status":"affected","version":"ec185dd3ab257dc2a60953fdf1b6622f524cc5b7","versionType":"git"},{"lessThan":"18549bf4b21c739a9def39f27dcac53e27286ab5","status":"affected","version":"ec185dd3ab257dc2a60953fdf1b6622f524cc5b7","versionType":"git"},{"status":"affected","version":"255e17923b22cb7abd026e044416d61f6bd0eec0","versionType":"git"},{"lessThan":"5.4.169","status":"affected","version":"5.4.140","versionType":"semver"},{"lessThan":"5.10.89","status":"affected","version":"5.10.58","versionType":"semver"},{"lessThan":"5.14","status":"affected","version":"5.13.10","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/tee/optee/core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.14"},{"lessThan":"5.14","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.4.*","status":"unaffected","version":"5.4.169","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.89","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.12","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"5.16","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.4.169","versionStartIncluding":"5.4.140","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.89","versionStartIncluding":"5.10.58","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.12","versionStartIncluding":"5.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.16","versionStartIncluding":"5.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13.10","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntee: optee: Fix incorrect page free bug\n\nPointer to the allocated pages (struct page *page) has already\nprogressed towards the end of allocation. It is incorrect to perform\n__free_pages(page, order) using this pointer as we would free any\narbitrary pages. Fix this by stop modifying the page pointer."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"providerMetadata":{"dateUpdated":"2026-08-04T08:58:40.509Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/806142c805cacd098e61bdc0f72c778a2389fe4a"},{"url":"https://git.kernel.org/stable/c/ad338d825e3f7b96ee542bf313728af2d19fe9ad"},{"url":"https://git.kernel.org/stable/c/91e94e42f6fc49635f1a16d8ae3f79552bcfda29"},{"url":"https://git.kernel.org/stable/c/18549bf4b21c739a9def39f27dcac53e27286ab5"}],"title":"tee: optee: Fix incorrect page free bug","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2021-47087","datePublished":"2024-03-04T18:10:17.107Z","dateReserved":"2024-02-29T22:33:44.299Z","dateUpdated":"2026-08-04T08:58:40.509Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2024-03-04 18:15:07","lastModifiedDate":"2026-08-04 10:16:44","problem_types":["CWE-763"],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},{"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:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2024-03-06T20:26:26.296406Z","id":"CVE-2021-47087","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":"5.4.140","versionEndExcluding":"5.4.169","matchCriteriaId":"BD9286B3-E302-41A2-8F05-3280C4D48A3D"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.58","versionEndExcluding":"5.10.89","matchCriteriaId":"B7AF1F06-B296-4122-83D6-FBDD3435C287"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.12","matchCriteriaId":"901A6B90-4B30-4E61-9B88-844D6E11AE47"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.16:rc1:*:*:*:*:*:*","matchCriteriaId":"357AA433-37E8-4323-BFB2-3038D6E4B414"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.16:rc2:*:*:*:*:*:*","matchCriteriaId":"A73429BA-C2D9-4D0C-A75F-06A1CA8B3983"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.16:rc3:*:*:*:*:*:*","matchCriteriaId":"F621B5E3-E99D-49E7-90B9-EC3B77C95383"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.16:rc4:*:*:*:*:*:*","matchCriteriaId":"F7BFDCAA-1650-49AA-8462-407DD593F94F"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.16:rc5:*:*:*:*:*:*","matchCriteriaId":"6EC9882F-866D-4ACB-8FBC-213D8D8436C8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.16:rc6:*:*:*:*:*:*","matchCriteriaId":"8A0915FE-A4AA-4C94-B783-CF29D81E7E54"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"47087","Ordinal":"1","Title":"tee: optee: Fix incorrect page free bug","CVE":"CVE-2021-47087","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"47087","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ntee: optee: Fix incorrect page free bug\n\nPointer to the allocated pages (struct page *page) has already\nprogressed towards the end of allocation. It is incorrect to perform\n__free_pages(page, order) using this pointer as we would free any\narbitrary pages. Fix this by stop modifying the page pointer.","Type":"Description","Title":"tee: optee: Fix incorrect page free bug"}]}}}