# CVE-2021-47025: iommu/mediatek: Always enable the clk on resume

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **Published:** 2024-02-28T08:13:37.122Z
- **Modified:** 2026-06-17T04:16:13.763Z

## Who should check

- Anyone running Linux \>= c0b57581b73be7b43f39e0dff201c93413f6a668, \< 5cad9e2caa9613fdcd246bd4ebf0ffbec1cba2ca; \>= c0b57581b73be7b43f39e0dff201c93413f6a668, \< b34ea31fe013569d42b7e8681ef3f717f77c5b72
- Anyone running Linux 5.12

## Description

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

iommu/mediatek: Always enable the clk on resume

In mtk\_iommu\_runtime\_resume always enable the clk, even
if m4u\_dom is null. Otherwise the 'suspend' cb might
disable the clk which is already disabled causing the warning:

\[    1.586104\] infra\_m4u already disabled
\[    1.586133\] WARNING: CPU: 0 PID: 121 at drivers/clk/clk.c:952 clk\_core\_disable+0xb0/0xb8
\[    1.594391\] mtk-iommu 10205000.iommu: bound 18001000.larb (ops mtk\_smi\_larb\_component\_ops)
\[    1.598108\] Modules linked in:
\[    1.598114\] CPU: 0 PID: 121 Comm: kworker/0:2 Not tainted 5.12.0-rc5 \#69
\[    1.609246\] mtk-iommu 10205000.iommu: bound 14027000.larb (ops mtk\_smi\_larb\_component\_ops)
\[    1.617487\] Hardware name: Google Elm (DT)
\[    1.617491\] Workqueue: pm pm\_runtime\_work
\[    1.620545\] mtk-iommu 10205000.iommu: bound 19001000.larb (ops mtk\_smi\_larb\_component\_ops)

\[    1.627229\] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
\[    1.659297\] pc : clk\_core\_disable+0xb0/0xb8
\[    1.663475\] lr : clk\_core\_disable+0xb0/0xb8
\[    1.667652\] sp : ffff800011b9bbe0
\[    1.670959\] x29: ffff800011b9bbe0 x28: 0000000000000000
\[    1.676267\] x27: ffff800011448000 x26: ffff8000100cfd98
\[    1.681574\] x25: ffff800011b9bd48 x24: 0000000000000000
\[    1.686882\] x23: 0000000000000000 x22: ffff8000106fad90
\[    1.692189\] x21: 000000000000000a x20: ffff0000c0048500
\[    1.697496\] x19: ffff0000c0048500 x18: ffffffffffffffff
\[    1.702804\] x17: 0000000000000000 x16: 0000000000000000
\[    1.708112\] x15: ffff800011460300 x14: fffffffffffe0000
\[    1.713420\] x13: ffff8000114602d8 x12: 0720072007200720
\[    1.718727\] x11: 0720072007200720 x10: 0720072007200720
\[    1.724035\] x9 : ffff800011b9bbe0 x8 : ffff800011b9bbe0
\[    1.729342\] x7 : 0000000000000009 x6 : ffff8000114b8328
\[    1.734649\] x5 : 0000000000000000 x4 : 0000000000000000
\[    1.739956\] x3 : 00000000ffffffff x2 : ffff800011460298
\[    1.745263\] x1 : 1af1d7de276f4500 x0 : 0000000000000000
\[    1.750572\] Call trace:
\[    1.753010\]  clk\_core\_disable+0xb0/0xb8
\[    1.756840\]  clk\_core\_disable\_lock+0x24/0x40
\[    1.761105\]  clk\_disable+0x20/0x30
\[    1.764501\]  mtk\_iommu\_runtime\_suspend+0x88/0xa8
\[    1.769114\]  pm\_generic\_runtime\_suspend+0x2c/0x48
\[    1.773815\]  \_\_rpm\_callback+0xe0/0x178
\[    1.777559\]  rpm\_callback+0x24/0x88
\[    1.781041\]  rpm\_suspend+0xdc/0x470
\[    1.784523\]  rpm\_idle+0x12c/0x170
\[    1.787831\]  pm\_runtime\_work+0xa8/0xc0
\[    1.791573\]  process\_one\_work+0x1e8/0x360
\[    1.795580\]  worker\_thread+0x44/0x478
\[    1.799237\]  kthread+0x150/0x158
\[    1.802460\]  ret\_from\_fork+0x10/0x30
\[    1.806034\] ---\[ end trace 82402920ef64573b \]---
\[    1.810728\] ------------\[ cut here \]------------

In addition, we now don't need to enable the clock from the
function mtk\_iommu\_hw\_init since it is already enabled by the resume.

## Affected and fixed versions

- Linux: \>= c0b57581b73be7b43f39e0dff201c93413f6a668, \< 5cad9e2caa9613fdcd246bd4ebf0ffbec1cba2ca; \>= c0b57581b73be7b43f39e0dff201c93413f6a668, \< b34ea31fe013569d42b7e8681ef3f717f77c5b72 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47025. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47025.md
Affected: Linux >= c0b57581b73be7b43f39e0dff201c93413f6a668, < 5cad9e2caa9613fdcd246bd4ebf0ffbec1cba2ca; >= c0b57581b73be7b43f39e0dff201c93413f6a668, < b34ea31fe013569d42b7e8681ef3f717f77c5b72; Linux 5.12
Fixed in: Linux 5cad9e2caa9613fdcd246bd4ebf0ffbec1cba2ca

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47025 being exploited?

There is no confirmed exploitation: CVE-2021-47025 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47025?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47025?

Linux \>= c0b57581b73be7b43f39e0dff201c93413f6a668, \< 5cad9e2caa9613fdcd246bd4ebf0ffbec1cba2ca; \>= c0b57581b73be7b43f39e0dff201c93413f6a668, \< b34ea31fe013569d42b7e8681ef3f717f77c5b72; Linux 5.12.

### Is there a fix for CVE-2021-47025?

Yes. Fixed in Linux 5cad9e2caa9613fdcd246bd4ebf0ffbec1cba2ca. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-47025?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5cad9e2caa9613fdcd246bd4ebf0ffbec1cba2ca>
- patch: <https://git.kernel.org/stable/c/b34ea31fe013569d42b7e8681ef3f717f77c5b72>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47025>

HTML: <https://flawdb.com/CVE-2021-47025> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47025>
