CVE-2021-47087 (GCVE-0-2021-47087)
Vulnerability from cvelistv5 – Published: 2024-03-04 18:10 – Updated: 2026-08-05 08:45| Vendor | Product | Version | CPE status | |
|---|---|---|---|---|
| Linux | Linux |
Affected:
3c712f14d8a9354a8807c15c64c8dd334499cc42 , < 806142c805cacd098e61bdc0f72c778a2389fe4a
(git)
Affected: 1340dc3fb75ea69221f4f5dcb0cbace55ad0331c , < ad338d825e3f7b96ee542bf313728af2d19fe9ad (git) Affected: ec185dd3ab257dc2a60953fdf1b6622f524cc5b7 , < 91e94e42f6fc49635f1a16d8ae3f79552bcfda29 (git) Affected: ec185dd3ab257dc2a60953fdf1b6622f524cc5b7 , < 18549bf4b21c739a9def39f27dcac53e27286ab5 (git) Affected: 255e17923b22cb7abd026e044416d61f6bd0eec0 (git) Affected: 5.4.140 , < 5.4.169 (semver) Affected: 5.10.58 , < 5.10.89 (semver) Affected: 5.13.10 , < 5.14 (semver) |
guessed | |
| Linux | Linux |
Affected:
5.14
Unaffected: 0 , < 5.14 (semver) Unaffected: 5.4.169 , ≤ 5.4.* (semver) Unaffected: 5.10.89 , ≤ 5.10.* (semver) Unaffected: 5.15.12 , ≤ 5.15.* (semver) Unaffected: 5.16 , ≤ * (original_commit_for_fix) |
guessed |
{
"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"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - Reachable only via local ioctl (TEE_IOC_SHM_ALLOC) on /dev/tee[0-9]*, the OP-TEE client character device; not exposed over the network.\nAC:L - An attacker who can open the TEE client device can reliably force the shm_register failure path (e.g., by exhausting OP-TEE dynamic SHM registration capacity or inducing allocation failure after alloc_pages succeeds), which triggers the incorrect __free_pages().\nPR:L - /dev/tee0 is the unprivileged client interface with no capability check in the driver; access is DAC-only and commonly granted to non-root teeclnt/group users or TEE client apps on Android/embedded deployments.\nUI:N - Exploitation requires only opening the device and issuing TEE_IOC_SHM_ALLOC; no victim action is needed.\nS:U - The incorrect free corrupts Normal-World kernel memory within the same OS security authority; this is standard local kernel privilege escalation, not a TrustZone/VM boundary escape.\nC:H - __free_pages() on the advanced page pointer frees unrelated in-use pages, enabling use-after-free of attacker-influenced heap objects and arbitrary kernel memory disclosure.\nI:H - Arbitrary page free yields classic UAF/heap corruption primitives that can be turned into arbitrary write and control-flow hijacking in the kernel.\nA:H - Freeing pages still owned by other kernel allocations causes oops/panic or allocator corruption and can crash the system even without a full exploit."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-08-05T08:45:56.013Z",
"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-05T08:45:56.013Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2021-47087",
"date": "2026-12-05",
"epss": "0.00236",
"percentile": "0.15556"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"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"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "BD9286B3-E302-41A2-8F05-3280C4D48A3D",
"versionEndExcluding": "5.4.169",
"versionStartIncluding": "5.4.140",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "B7AF1F06-B296-4122-83D6-FBDD3435C287",
"versionEndExcluding": "5.10.89",
"versionStartIncluding": "5.10.58",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "901A6B90-4B30-4E61-9B88-844D6E11AE47",
"versionEndExcluding": "5.15.12",
"versionStartIncluding": "5.14",
"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",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"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."
},
{
"lang": "es",
"value": "En el kernel de Linux, se resolvi\u00f3 la siguiente vulnerabilidad: tee: optee: corrige el error de liberaci\u00f3n de p\u00e1gina incorrecta. El puntero a las p\u00e1ginas asignadas (p\u00e1gina de estructura *p\u00e1gina) ya ha avanzado hacia el final de la asignaci\u00f3n. Es incorrecto ejecutar __free_pages(page, order) usando este puntero ya que liberar\u00edamos p\u00e1ginas arbitrarias. Solucione este problema dejando de modificar el puntero de la p\u00e1gina."
}
],
"id": "CVE-2021-47087",
"lastModified": "2026-08-04T10:16:44.987",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 7.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 5.9,
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"type": "Secondary"
},
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 7.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 5.9,
"source": "nvd@nist.gov",
"type": "Primary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2021-47087",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-03-06T20:26:26.296406Z",
"version": "2.0.3"
}
}
]
},
"published": "2024-03-04T18:15:07.457",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/18549bf4b21c739a9def39f27dcac53e27286ab5"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/806142c805cacd098e61bdc0f72c778a2389fe4a"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/91e94e42f6fc49635f1a16d8ae3f79552bcfda29"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/ad338d825e3f7b96ee542bf313728af2d19fe9ad"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/18549bf4b21c739a9def39f27dcac53e27286ab5"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/806142c805cacd098e61bdc0f72c778a2389fe4a"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/91e94e42f6fc49635f1a16d8ae3f79552bcfda29"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/ad338d825e3f7b96ee542bf313728af2d19fe9ad"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Modified",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-763"
}
],
"source": "nvd@nist.gov",
"type": "Primary"
}
]
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-23T17:56:54+00:00",
"cve": "CVE-2021-47087",
"id": "CVE-2021-47087",
"initial_release_date": "2021-01-01T00:00:00+00:00",
"product_status:known_not_affected": "199",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: tee: optee: Fix incorrect page free bug",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-47087.json",
"version": "3"
},
"vulnrichment": {
"containers": {
"adp": [
{
"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"
},
{
"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-05-23T19:01:16.206Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"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"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - Reachable only via local ioctl (TEE_IOC_SHM_ALLOC) on /dev/tee[0-9]*, the OP-TEE client character device; not exposed over the network.\nAC:L - An attacker who can open the TEE client device can reliably force the shm_register failure path (e.g., by exhausting OP-TEE dynamic SHM registration capacity or inducing allocation failure after alloc_pages succeeds), which triggers the incorrect __free_pages().\nPR:L - /dev/tee0 is the unprivileged client interface with no capability check in the driver; access is DAC-only and commonly granted to non-root teeclnt/group users or TEE client apps on Android/embedded deployments.\nUI:N - Exploitation requires only opening the device and issuing TEE_IOC_SHM_ALLOC; no victim action is needed.\nS:U - The incorrect free corrupts Normal-World kernel memory within the same OS security authority; this is standard local kernel privilege escalation, not a TrustZone/VM boundary escape.\nC:H - __free_pages() on the advanced page pointer frees unrelated in-use pages, enabling use-after-free of attacker-influenced heap objects and arbitrary kernel memory disclosure.\nI:H - Arbitrary page free yields classic UAF/heap corruption primitives that can be turned into arbitrary write and control-flow hijacking in the kernel.\nA:H - Freeing pages still owned by other kernel allocations causes oops/panic or allocator corruption and can crash the system even without a full exploit."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-08-05T08:45:56.013Z",
"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-05T08:45:56.013Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.