CVE-2026-53273 PUBLISHED

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

Assigner: Linux
Reserved: 09.06.2026 Published: 25.06.2026 Updated: 25.06.2026

In 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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 0180cf0373f84fff61b16f8c062553a13dd7cfca to 416259cb5bffecaaae5f76539deb535a8c1b2c34 (excl.)
  • affected from c0a9a948159153be145f9471435695373904ee6d to 724d0caffd4204b46f78efe22f18f8338031c6e1 (excl.)
  • affected from ec18520f5edc20a00c34a8c9fdd6507c355e880f to ae847ab29ded2d7cece4d5970f0edefa4137bf2f (excl.)
  • affected from d61cc1a435e6894bfb0dd3370c6f765d2d12825d to 9a0dc9279d0907b198f205a693aedf696b08145d (excl.)
  • affected from fd9d2d6124c293e40797a080adf8a9c237efd8b8 to d366a01475f927402c96a3fe78bfc06b924fc87d (excl.)
  • affected from 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612 to d5b57bb314d79e99bebb58a53588fa11dd4dbf69 (excl.)
  • affected from 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612 to 373152c94e57e9592b68c100e224fbd943cfd608 (excl.)
  • affected from 70b0d6b0a199c5a3ee6c72f5e61681ed6f759612 to 387a926ee166814611acecb960207fe2f3c4fd3e (excl.)
  • Version 3eb4911364c764572e9db4ab900a57689a54e8ce is affected
  • Version 21234efe2a8474a6d2d01ea9573319de7858ce44 is affected
  • affected from 5.10.235 to 5.10.259 (excl.)
  • affected from 5.15.179 to 5.15.210 (excl.)
  • affected from 6.1.130 to 6.1.176 (excl.)
  • affected from 6.6.80 to 6.6.143 (excl.)
  • affected from 6.12.17 to 6.12.94 (excl.)
  • affected from 5.4.291 to 5.5 (excl.)
  • affected from 6.13.5 to 6.14 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.14 is affected
  • unaffected from 0 to 6.14 (excl.)
  • unaffected from 5.10.259 to 5.10.* (incl.)
  • unaffected from 5.15.210 to 5.15.* (incl.)
  • unaffected from 6.1.176 to 6.1.* (incl.)
  • unaffected from 6.6.143 to 6.6.* (incl.)
  • unaffected from 6.12.94 to 6.12.* (incl.)
  • unaffected from 6.18.36 to 6.18.* (incl.)
  • unaffected from 7.0.13 to 7.0.* (incl.)
  • unaffected from 7.1 to * (incl.)

References