# tee: optee: Fix kernel panic caused by incorrect error handling

CVE record · `CVE-2024-35785`

- **Identifiers:** `CVE-2024-35785`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 17 May 2024
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 17 May 2024, 12:24 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `a953e45ebeae9a5ce342c012f7eb2a92cc8af89b to before bc40ded92af55760d12bec8222d4108de725dbe4` (git)
  - affected: `01c13d8a95e0909f0081d6e3e8a891761992371b to before 4b12ff5edd141926d49c9ace4791adf3a4902fe7` (git)
  - affected: `1c9561b438cbe61e78515fc7b16dc7fb8cf0b763 to before e5b5948c769aa1ebf962dddfb972f87d8f166f95` (git)
  - affected: `d3c4786b01aad8c377718f92d6d9b15906ee0a2a to before 520f79c110ff712b391b3d87fcacf03c74bc56ee` (git)
  - affected: `7269cba53d906cf257c139d3b3a53ad272176bca to before bfa344afbe472a9be08f78551fa2190c1a07d7d3` (git)
  - affected: `7269cba53d906cf257c139d3b3a53ad272176bca to before 95915ba4b987cf2b222b0f251280228a1ff977ac` (git)
  - affected: `5.10.204 to before 5.10.215` (semver)
  - affected: `5.15.143 to before 5.15.154` (semver)
  - affected: `6.1.68 to before 6.1.84` (semver)
  - affected: `6.6.7 to before 6.6.24` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `6.7`
  - unaffected: `before 6.7` (semver)
  - unaffected: `5.10.215 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.154 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.84 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.24 to 6.6.*, inclusive` (semver)
  - unaffected: `6.7.12 to 6.7.*, inclusive` (semver)
  - unaffected: `6.8 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0023, the 14th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 17 May 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2024-35785](https://www.cve.org/CVERecord?id=CVE-2024-35785)
- [NVD: CVE-2024-35785](https://nvd.nist.gov/vuln/detail/CVE-2024-35785)

### References from the CNA

- <https://git.kernel.org/stable/c/bc40ded92af55760d12bec8222d4108de725dbe4>
- <https://git.kernel.org/stable/c/4b12ff5edd141926d49c9ace4791adf3a4902fe7>
- <https://git.kernel.org/stable/c/e5b5948c769aa1ebf962dddfb972f87d8f166f95>
- <https://git.kernel.org/stable/c/520f79c110ff712b391b3d87fcacf03c74bc56ee>
- <https://git.kernel.org/stable/c/bfa344afbe472a9be08f78551fa2190c1a07d7d3>
- <https://git.kernel.org/stable/c/95915ba4b987cf2b222b0f251280228a1ff977ac>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2024-35785>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2024-35785/>. Everything for agents: <https://agentprime.io/llms.txt>.
