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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-04-24T18:13:28.529Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- OP-TEE optee_os: >= 3.8.0, <= 4.10
- trustedfirmware op-tee: from 3.8.0 up to 4.10.0

## References

- <https://github.com/OP-TEE/optee_os/security/advisories/GHSA-4cf8-v5g3-73gr> (patch, vendor-advisory)

## Sources

- CVE List: [CVE-2026-33662](https://www.cve.org/CVERecord?id=CVE-2026-33662), CVE Terms of Use, modified 2026-04-24
- NVD: [CVE-2026-33662](https://nvd.nist.gov/vuln/detail/CVE-2026-33662), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-33662 · Whole record: https://cve.day/CVE-2026-33662.json · Rebuilt by cve.day 2026-11-25T22:59:19.570Z
