CVE-2021-47087

tee: optee: Fix incorrect page free bug

HIGH
7.8
CVSS Score
Published: March 4, 2024 at 06:10 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.13.105.10.58 ≤ v < 5.10.895.13.10 ≤ v < 5.145.14 ≤ v < 5.15.125.14 ≤ v < 5.165.4.140 ≤ v < 5.4.1691340dc3fb75ea69221f4f5dcb0cbace55ad0331c255e17923b22cb7abd026e044416d61f6bd0eec03c712f14d8a9354a8807c15c64c8dd334499cc425.10.585.13.105.16 rc15.16 rc25.16 rc35.16 rc45.16 rc55.16 rc65.4.140ec185dd3ab257dc2a60953fdf1b6622f524cc5b7
Vendor states this is fixed in 18549bf4b21c739a9def39f27dcac53e27286ab5 (fixed)
Vendor states this is fixed in 806142c805cacd098e61bdc0f72c778a2389fe4a (fixed)
Vendor states this is fixed in 91e94e42f6fc49635f1a16d8ae3f79552bcfda29 (fixed)
Vendor states this is fixed in ad338d825e3f7b96ee542bf313728af2d19fe9ad (fixed)
Vendor states this is fixed in 5.10.89 (unaffected)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.15.12 (unaffected)
Vendor states this is fixed in 5.16 (unaffected)
Vendor states this is fixed in 5.4.169 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/18549bf4b21c739a9def39f27dcac53e27286ab5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/806142c805cacd098e61bdc0f72c778a2389fe4a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/91e94e42f6fc49635f1a16d8ae3f79552bcfda29
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ad338d825e3f7b96ee542bf313728af2d19fe9ad

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-763

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card