# CVE-2021-47087: tee: optee: Fix incorrect page free bug

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-03-04T18:10:17.107Z
- Modified: 2026-08-05T08:45:56.013Z
- Weaknesses: CWE-763
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

tee: optee: Fix incorrect page free bug

Pointer to the allocated pages (struct page *page) has already
progressed towards the end of allocation. It is incorrect to perform
__free_pages(page, order) using this pointer as we would free any
arbitrary pages. Fix this by stop modifying the page pointer.

(As written by CVE List.)

## Affected

- Linux Linux: from 3c712f14d8a9354a8807c15c64c8dd334499cc42 before 806142c805cacd098e61bdc0f72c778a2389fe4a; from 1340dc3fb75ea69221f4f5dcb0cbace55ad0331c before ad338d825e3f7b96ee542bf313728af2d19fe9ad; from ec185dd3ab257dc2a60953fdf1b6622f524cc5b7 before 91e94e42f6fc49635f1a16d8ae3f79552bcfda29; from ec185dd3ab257dc2a60953fdf1b6622f524cc5b7 before 18549bf4b21c739a9def39f27dcac53e27286ab5; 255e17923b22cb7abd026e044416d61f6bd0eec0; from 5.4.140 before 5.4.169; from 5.10.58 before 5.10.89; from 5.13.10 before 5.14; 5.14 (not affected: before 5.14; from 5.4.169 up to 5.4.*; from 5.10.89 up to 5.10.*; from 5.15.12 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 5.4.140 before 5.4.169; from 5.10.58 before 5.10.89; from 5.14 before 5.15.12; 5.16

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/806142c805cacd098e61bdc0f72c778a2389fe4a> (patch)
- <https://git.kernel.org/stable/c/ad338d825e3f7b96ee542bf313728af2d19fe9ad> (patch)
- <https://git.kernel.org/stable/c/91e94e42f6fc49635f1a16d8ae3f79552bcfda29> (patch)
- <https://git.kernel.org/stable/c/18549bf4b21c739a9def39f27dcac53e27286ab5> (patch)

## Sources

- CVE List: [CVE-2021-47087](https://www.cve.org/CVERecord?id=CVE-2021-47087), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47087](https://nvd.nist.gov/vuln/detail/CVE-2021-47087), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47087 · Whole record: https://cve.day/CVE-2021-47087.json · Rebuilt by cve.day 2026-11-25T22:58:08.654Z
