CVE-2024-35785

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

7.8 high EPSS 0.23%

Published 17 May 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2024-35785

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-35785 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a953e45ebeae9a5ce342c012f7eb2a92cc8af89b, before bc40ded92af55760d12bec8222d4108de725dbe4
affected from 01c13d8a95e0909f0081d6e3e8a891761992371b, before 4b12ff5edd141926d49c9ace4791adf3a4902fe7
affected from 1c9561b438cbe61e78515fc7b16dc7fb8cf0b763, before e5b5948c769aa1ebf962dddfb972f87d8f166f95
affected from d3c4786b01aad8c377718f92d6d9b15906ee0a2a, before 520f79c110ff712b391b3d87fcacf03c74bc56ee
affected from 7269cba53d906cf257c139d3b3a53ad272176bca, before bfa344afbe472a9be08f78551fa2190c1a07d7d3
affected from 7269cba53d906cf257c139d3b3a53ad272176bca, before 95915ba4b987cf2b222b0f251280228a1ff977ac
affected from 5.10.204, before 5.10.215
affected from 5.15.143, before 5.15.154
affected from 6.1.68, before 6.1.84
affected from 6.6.7, before 6.6.24
Other versions: unaffected
Linux
affected 6.7
unaffected before 6.7
unaffected from 5.10.215 up to and including 5.10.*
unaffected from 5.15.154 up to and including 5.15.*
unaffected from 6.1.84 up to and including 6.1.*
unaffected from 6.6.24 up to and including 6.6.*
unaffected from 6.7.12 up to and including 6.7.*
unaffected 6.8 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-35785 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-35785

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-35785
trivy image --scanners vuln IMAGE | grep CVE-2024-35785

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-35785 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.