Skip to content

CVE-2026-33662 OP-TEE: RSASSA EMSA- PKCS1-v1_5 underflow in emsa_pkcs1_v1_5_encode()

HighCVSS 7.5 EPSS 0.40%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
Linux KernelUbuntuDebian

Description

OP-TEE is a Trusted Execution Environment (TEE) designed as companion to a non-secure Linux kernel running on Arm; Cortex-A cores using the TrustZone technology. From 3.8.0 to 4.10, in the function emsa_pkcs1_v1_5_encode() in core/drivers/crypto/crypto_api/acipher/rsassa.c, the amount of padding needed, "PS size", is calculated by subtracting the size of the digest and other fields required for the EMA-PKCS1-v1_5 encoding from the size of the modulus of the key. By selecting a small enough modulus, this subtraction can overflow. The padding is added as a string of 0xFF bytes with a call to memset(), and an underflowed integer will cause the memset() call to overwrite until OP-TEE crashes. This only affects platforms registering RSA acceleration.

Upgrade path

5 packages: 1 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
debian/optee-os(Debian 13) = 4.5.0-2; = 4.7.0-1; = 4.8.0-1; = 4.9.0-1 +3 more No fix listed No fix yet
ubuntu/optee-os(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/optee-os(Ubuntu 26.10) All versions No fix listed No fix yet
TrustedFirmware op-tee >= 3.8.0, <= 4.10.0 after 4.10.0 Fixed
OP-TEE optee_os = >= 3.8.0, <= 4.10 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
OP-TEE optee_os = >= 3.8.0, <= 4.10 No fix listed
debian/optee-os(Debian:13) All versions No fix listed
debian/optee-os(Debian:13) = 4.10.0-1 No fix listed
debian/optee-os(Debian:13) = 4.10.0-2 No fix listed
debian/optee-os(Debian:13) = 4.5.0-2 No fix listed
debian/optee-os(Debian:13) = 4.7.0-1 No fix listed
debian/optee-os(Debian:13) = 4.8.0-1 No fix listed
debian/optee-os(Debian:13) = 4.9.0-1 No fix listed
ubuntu/optee-os(Ubuntu:26.04) All versions No fix listed
ubuntu/optee-os(Ubuntu:26.10) All versions No fix listed
TrustedFirmware op-tee >= 3.8.0, <= 4.10.0 No fix listed

References