# CVE-2025-21871: tee: optee: Fix supplicant wait loop

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-835
- **Published:** 2025-03-27T13:38:23.461Z
- **Modified:** 2026-06-17T08:44:30.010Z

## Who should check

- Anyone running Linux \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 3eb4911364c764572e9db4ab900a57689a54e8ce; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 0180cf0373f84fff61b16f8c062553a13dd7cfca; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< c0a9a948159153be145f9471435695373904ee6d; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< ec18520f5edc20a00c34a8c9fdd6507c355e880f; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< d61cc1a435e6894bfb0dd3370c6f765d2d12825d; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< fd9d2d6124c293e40797a080adf8a9c237efd8b8; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 21234efe2a8474a6d2d01ea9573319de7858ce44; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612
- Anyone running Linux 4.12

## Description

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

tee: optee: Fix supplicant wait loop

OP-TEE supplicant is a user-space daemon and it's possible for it
be hung or crashed or killed in the middle of processing an OP-TEE
RPC call. It becomes more complicated when there is incorrect shutdown
ordering of the supplicant process vs the OP-TEE client application which
can eventually lead to system hang-up waiting for the closure of the
client application.

Allow the client process waiting in kernel for supplicant response to
be killed rather than indefinitely waiting in an unkillable state. Also,
a normal uninterruptible wait should not have resulted in the hung-task
watchdog getting triggered, but the endless loop would.

This fixes issues observed during system reboot/shutdown when supplicant
got hung for some reason or gets crashed/killed which lead to client
getting hung in an unkillable state. It in turn lead to system being in
hung up state requiring hard power off/on to recover.

## Affected and fixed versions

- Linux: \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 3eb4911364c764572e9db4ab900a57689a54e8ce; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 0180cf0373f84fff61b16f8c062553a13dd7cfca; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< c0a9a948159153be145f9471435695373904ee6d; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< ec18520f5edc20a00c34a8c9fdd6507c355e880f; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< d61cc1a435e6894bfb0dd3370c6f765d2d12825d; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< fd9d2d6124c293e40797a080adf8a9c237efd8b8; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 21234efe2a8474a6d2d01ea9573319de7858ce44; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612 (cvelist)
- Linux: 4.12 (cvelist)

## Mitigation

- Upgrade Linux to 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-21871.md
Affected: Linux >= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, < 3eb4911364c764572e9db4ab900a57689a54e8ce; >= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, < 0180cf0373f84fff61b16f8c062553a13dd7cfca; >= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, < c0a9a948159153be145f9471435695373904ee6d; >= 4fb0a5eb364d239722e745c…
Fixed in: Linux 3eb4911364c764572e9db4ab900a57689a54e8ce, Linux 0180cf0373f84fff61b16f8c062553a13dd7cfca, Linux 21234efe2a8474a6d2d01ea9573319de7858ce44, Linux 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612

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-2025-21871 being exploited?

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

### How serious is CVE-2025-21871?

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

### Which versions are affected by CVE-2025-21871?

Linux \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 3eb4911364c764572e9db4ab900a57689a54e8ce; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 0180cf0373f84fff61b16f8c062553a13dd7cfca; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< c0a9a948159153be145f9471435695373904ee6d; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< ec18520f5edc20a00c34a8c9fdd6507c355e880f; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< d61cc1a435e6894bfb0dd3370c6f765d2d12825d; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< fd9d2d6124c293e40797a080adf8a9c237efd8b8; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 21234efe2a8474a6d2d01ea9573319de7858ce44; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612; Linux 4.12.

### Is there a fix for CVE-2025-21871?

Yes. Fixed in Linux 3eb4911364c764572e9db4ab900a57689a54e8ce, Linux 0180cf0373f84fff61b16f8c062553a13dd7cfca, Linux 21234efe2a8474a6d2d01ea9573319de7858ce44, Linux 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612. Upgrade Linux to 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612 or later.

### How do I check if I'm affected by CVE-2025-21871?

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/3eb4911364c764572e9db4ab900a57689a54e8ce>
- patch: <https://git.kernel.org/stable/c/0180cf0373f84fff61b16f8c062553a13dd7cfca>
- patch: <https://git.kernel.org/stable/c/c0a9a948159153be145f9471435695373904ee6d>
- patch: <https://git.kernel.org/stable/c/ec18520f5edc20a00c34a8c9fdd6507c355e880f>
- patch: <https://git.kernel.org/stable/c/d61cc1a435e6894bfb0dd3370c6f765d2d12825d>
- patch: <https://git.kernel.org/stable/c/fd9d2d6124c293e40797a080adf8a9c237efd8b8>
- patch: <https://git.kernel.org/stable/c/21234efe2a8474a6d2d01ea9573319de7858ce44>
- patch: <https://git.kernel.org/stable/c/70b0d6b0a199c5a3ee6c72f5e61681ed6f759612>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## 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-2025-21871>

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