tee: optee: prevent use-after-free when the client exits before the supplicant

Summary

CVECVE-2026-53273
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-06-25 09:16:45 UTC
Updated2026-06-25 09:16:45 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: tee: optee: prevent use-after-free when the client exits before the supplicant Commit 70b0d6b0a199 ("tee: optee: Fix supplicant wait loop") made the client wait as killable so it can be interrupted during shutdown or after a supplicant crash. This changes the original lifetime expectations: the client task can now terminate while the supplicant is still processing its request. If the client exits first it removes the request from its queue and kfree()s it, while the request ID remains in supp->idr. A subsequent lookup on the supplicant path then dereferences freed memory, leading to a use-after-free. Serialise access to the request with supp->mutex: * Hold supp->mutex in optee_supp_recv() and optee_supp_send() while looking up and touching the request. * Let optee_supp_thrd_req() notice that the client has terminated and signal optee_supp_send() accordingly. With these changes the request cannot be freed while the supplicant still has a reference, eliminating the race.

Risk And Classification

EPSS: 0.001720000 probability, percentile 0.068470000 (date 2026-06-25)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 0180cf0373f84fff61b16f8c062553a13dd7cfca 416259cb5bffecaaae5f76539deb535a8c1b2c34 git Not specified
CNA Linux Linux affected c0a9a948159153be145f9471435695373904ee6d 724d0caffd4204b46f78efe22f18f8338031c6e1 git Not specified
CNA Linux Linux affected ec18520f5edc20a00c34a8c9fdd6507c355e880f ae847ab29ded2d7cece4d5970f0edefa4137bf2f git Not specified
CNA Linux Linux affected d61cc1a435e6894bfb0dd3370c6f765d2d12825d 9a0dc9279d0907b198f205a693aedf696b08145d git Not specified
CNA Linux Linux affected fd9d2d6124c293e40797a080adf8a9c237efd8b8 d366a01475f927402c96a3fe78bfc06b924fc87d git Not specified
CNA Linux Linux affected 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612 d5b57bb314d79e99bebb58a53588fa11dd4dbf69 git Not specified
CNA Linux Linux affected 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612 373152c94e57e9592b68c100e224fbd943cfd608 git Not specified
CNA Linux Linux affected 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612 387a926ee166814611acecb960207fe2f3c4fd3e git Not specified
CNA Linux Linux affected 3eb4911364c764572e9db4ab900a57689a54e8ce git Not specified
CNA Linux Linux affected 21234efe2a8474a6d2d01ea9573319de7858ce44 git Not specified
CNA Linux Linux affected 5.10.235 5.10.259 semver Not specified
CNA Linux Linux affected 5.15.179 5.15.210 semver Not specified
CNA Linux Linux affected 6.1.130 6.1.176 semver Not specified
CNA Linux Linux affected 6.6.80 6.6.143 semver Not specified
CNA Linux Linux affected 6.12.17 6.12.94 semver Not specified
CNA Linux Linux affected 5.4.291 5.5 semver Not specified
CNA Linux Linux affected 6.13.5 6.14 semver Not specified
CNA Linux Linux affected 6.14 Not specified
CNA Linux Linux unaffected 6.14 semver Not specified
CNA Linux Linux unaffected 5.10.259 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.210 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.176 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.143 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.94 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.36 6.18.* semver Not specified
CNA Linux Linux unaffected 7.0.13 7.0.* semver Not specified
CNA Linux Linux unaffected 7.1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/373152c94e57e9592b68c100e224fbd943cfd608 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/387a926ee166814611acecb960207fe2f3c4fd3e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d366a01475f927402c96a3fe78bfc06b924fc87d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9a0dc9279d0907b198f205a693aedf696b08145d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d5b57bb314d79e99bebb58a53588fa11dd4dbf69 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/724d0caffd4204b46f78efe22f18f8338031c6e1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ae847ab29ded2d7cece4d5970f0edefa4137bf2f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/416259cb5bffecaaae5f76539deb535a8c1b2c34 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report