{"id":"CVE-2026-33317","summary":"OP-TEE: PKCS#11 TA out-of-bounds read and memory disclosure","details":"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. In versions 3.13.0 through 4.10.0, missing checks in `entry_get_attribute_value()`  in `ta/pkcs11/src/object.c` can lead to out-of-bounds read from the PKCS#11 TA heap or a crash. When chained with the OOB read, the PKCS#11 TA function `PKCS11_CMD_GET_ATTRIBUTE_VALUE`  or `entry_get_attribute_value()` can, with a bad template parameter, be tricked into reading at most 7 bytes beyond the end of the template buffer and writing beyond the end of the template buffer with the content of an attribute value of a PKCS#11 object. Commits e031c4e562023fd9f199e39fd2e85797e4cbdca9, 16926d5a46934c46e6656246b4fc18385a246900, and 149e8d7ecc4ef8bb00ab4a37fd2ccede6d79e1ca contain patches and are anticipated to be part of version 4.11.0.","aliases":["GHSA-8cqw-mg7v-c9p9"],"modified":"2026-07-08T08:11:17.999398007Z","published":"2026-04-24T02:20:55.670Z","database_specific":{"cwe_ids":["CWE-125","CWE-787"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33317.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33317.json"},{"type":"ADVISORY","url":"https://github.com/OP-TEE/optee_os/security/advisories/GHSA-8cqw-mg7v-c9p9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33317"},{"type":"FIX","url":"https://github.com/OP-TEE/optee_os/commit/149e8d7ecc4ef8bb00ab4a37fd2ccede6d79e1ca"},{"type":"FIX","url":"https://github.com/OP-TEE/optee_os/commit/16926d5a46934c46e6656246b4fc18385a246900"},{"type":"FIX","url":"https://github.com/OP-TEE/optee_os/commit/e031c4e562023fd9f199e39fd2e85797e4cbdca9"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/op-tee/optee_os","events":[{"introduced":"30c13f9e2ff178c9a299e409de75d50529cf5064"},{"last_affected":"753afbbee1682f5d16fd30e87b31058a4fd4f4b8"}],"database_specific":{"extracted_events":[{"introduced":"3.13.0"},{"last_affected":"4.10.0"}],"source":"AFFECTED_FIELD"}}],"versions":["4.10.0","4.10.0-rc1","4.9.0","4.9.0-rc1","4.8.0","4.8.0-rc1","4.7.0","4.7.0-rc1","4.6.0","4.6.0-rc1","4.5.0","4.5.0-rc1","4.4.0","4.4.0-rc1","4.3.0","4.3.0-rc1","4.2.0","4.2.0-rc1","4.1.0","4.1.0-rc1","4.0.0","4.0.0-rc1","3.22.0","3.22.0-rc1","3.21.0","3.21.0-rc1","3.20.0","3.20.0-rc1","3.19.0","3.19.0-rc1","3.18.0","3.18.0-rc1","3.17.0","3.17.0-rc1","3.16.0","3.15.0","3.15.0-rc1","3.14.0","3.14.0-rc1","3.13.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-33317.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L"}]}