# CVE-2024-35785: tee: optee: Fix kernel panic caused by incorrect error handling

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-754
- **Published:** 2024-05-17T12:24:28.069Z
- **Modified:** 2026-08-05T11:29:53.994Z

## Who should check

- Anyone running Linux \>= a953e45ebeae9a5ce342c012f7eb2a92cc8af89b, \< bc40ded92af55760d12bec8222d4108de725dbe4; \>= 01c13d8a95e0909f0081d6e3e8a891761992371b, \< 4b12ff5edd141926d49c9ace4791adf3a4902fe7; \>= 1c9561b438cbe61e78515fc7b16dc7fb8cf0b763, \< e5b5948c769aa1ebf962dddfb972f87d8f166f95; \>= d3c4786b01aad8c377718f92d6d9b15906ee0a2a, \< 520f79c110ff712b391b3d87fcacf03c74bc56ee; \>= 7269cba53d906cf257c139d3b3a53ad272176bca, \< bfa344afbe472a9be08f78551fa2190c1a07d7d3; \>= 7269cba53d906cf257c139d3b3a53ad272176bca, \< 95915ba4b987cf2b222b0f251280228a1ff977ac; \>= 5.10.204, \< 5.10.215; \>= 5.15.143, \< 5.15.154; \>= 6.1.68, \< 6.1.84; \>= 6.6.7, \< 6.6.24
- Anyone running Linux 6.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

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

The error path while failing to register devices on the TEE bus has a
bug leading to kernel panic as follows:

\[   15.398930\] Unable to handle kernel paging request at virtual address ffff07ed00626d7c
\[   15.406913\] Mem abort info:
\[   15.409722\]   ESR = 0x0000000096000005
\[   15.413490\]   EC = 0x25: DABT (current EL), IL = 32 bits
\[   15.418814\]   SET = 0, FnV = 0
\[   15.421878\]   EA = 0, S1PTW = 0
\[   15.425031\]   FSC = 0x05: level 1 translation fault
\[   15.429922\] Data abort info:
\[   15.432813\]   ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000
\[   15.438310\]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
\[   15.443372\]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
\[   15.448697\] swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000d9e3e000
\[   15.455413\] \[ffff07ed00626d7c\] pgd=1800000bffdf9003, p4d=1800000bffdf9003, pud=0000000000000000
\[   15.464146\] Internal error: Oops: 0000000096000005 \[\#1\] PREEMPT SMP

Commit 7269cba53d90 ("tee: optee: Fix supplicant based device enumeration")
lead to the introduction of this bug. So fix it appropriately.

## Affected and fixed versions

- Linux: \>= a953e45ebeae9a5ce342c012f7eb2a92cc8af89b, \< bc40ded92af55760d12bec8222d4108de725dbe4; \>= 01c13d8a95e0909f0081d6e3e8a891761992371b, \< 4b12ff5edd141926d49c9ace4791adf3a4902fe7; \>= 1c9561b438cbe61e78515fc7b16dc7fb8cf0b763, \< e5b5948c769aa1ebf962dddfb972f87d8f166f95; \>= d3c4786b01aad8c377718f92d6d9b15906ee0a2a, \< 520f79c110ff712b391b3d87fcacf03c74bc56ee; \>= 7269cba53d906cf257c139d3b3a53ad272176bca, \< bfa344afbe472a9be08f78551fa2190c1a07d7d3; \>= 7269cba53d906cf257c139d3b3a53ad272176bca, \< 95915ba4b987cf2b222b0f251280228a1ff977ac; \>= 5.10.204, \< 5.10.215; \>= 5.15.143, \< 5.15.154; \>= 6.1.68, \< 6.1.84; \>= 6.6.7, \< 6.6.24 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 6.6.24 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35785. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35785.md
Affected: Linux >= a953e45ebeae9a5ce342c012f7eb2a92cc8af89b, < bc40ded92af55760d12bec8222d4108de725dbe4; >= 01c13d8a95e0909f0081d6e3e8a891761992371b, < 4b12ff5edd141926d49c9ace4791adf3a4902fe7; >= 1c9561b438cbe61e78515fc7b16dc7fb8cf0b763, < e5b5948c769aa1ebf962dddfb972f87d8f166f95; >= d3c4786b01aad8c377718f9…
Fixed in: Linux 4b12ff5edd141926d49c9ace4791adf3a4902fe7, Linux 520f79c110ff712b391b3d87fcacf03c74bc56ee, Linux 95915ba4b987cf2b222b0f251280228a1ff977ac, Linux 5.10.215, Linux 5.15.154, Linux 6.1.84, Linux 6.6.24

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35785 being exploited?

There is no confirmed exploitation: CVE-2024-35785 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35785?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-35785?

Linux \>= a953e45ebeae9a5ce342c012f7eb2a92cc8af89b, \< bc40ded92af55760d12bec8222d4108de725dbe4; \>= 01c13d8a95e0909f0081d6e3e8a891761992371b, \< 4b12ff5edd141926d49c9ace4791adf3a4902fe7; \>= 1c9561b438cbe61e78515fc7b16dc7fb8cf0b763, \< e5b5948c769aa1ebf962dddfb972f87d8f166f95; \>= d3c4786b01aad8c377718f92d6d9b15906ee0a2a, \< 520f79c110ff712b391b3d87fcacf03c74bc56ee; \>= 7269cba53d906cf257c139d3b3a53ad272176bca, \< bfa344afbe472a9be08f78551fa2190c1a07d7d3; \>= 7269cba53d906cf257c139d3b3a53ad272176bca, \< 95915ba4b987cf2b222b0f251280228a1ff977ac; \>= 5.10.204, \< 5.10.215; \>= 5.15.143, \< 5.15.154; \>= 6.1.68, \< 6.1.84; \>= 6.6.7, \< 6.6.24; Linux 6.7.

### Is there a fix for CVE-2024-35785?

Yes. Fixed in Linux 4b12ff5edd141926d49c9ace4791adf3a4902fe7, Linux 520f79c110ff712b391b3d87fcacf03c74bc56ee, Linux 95915ba4b987cf2b222b0f251280228a1ff977ac, Linux 5.10.215, Linux 5.15.154, Linux 6.1.84, Linux 6.6.24. Upgrade Linux to 6.6.24 or later.

### How do I check if I'm affected by CVE-2024-35785?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/bc40ded92af55760d12bec8222d4108de725dbe4>
- patch: <https://git.kernel.org/stable/c/4b12ff5edd141926d49c9ace4791adf3a4902fe7>
- patch: <https://git.kernel.org/stable/c/e5b5948c769aa1ebf962dddfb972f87d8f166f95>
- patch: <https://git.kernel.org/stable/c/520f79c110ff712b391b3d87fcacf03c74bc56ee>
- patch: <https://git.kernel.org/stable/c/bfa344afbe472a9be08f78551fa2190c1a07d7d3>
- patch: <https://git.kernel.org/stable/c/95915ba4b987cf2b222b0f251280228a1ff977ac>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35785>

HTML: <https://flawdb.com/CVE-2024-35785> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35785>
