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

Published May 17, 2024
·
Updated

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 Software

19 affected componentsFixes available
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
Linux Linux kernel>=5.10.204<5.10.215
Linux Linux kernel>=5.15.143<5.15.154
Linux Linux kernel>=6.1.68<6.1.84
Linux Linux kernel>=6.6.7<6.6.24
Linux Linux kernel>=6.7.1<6.7.12
Linux Linux kernel=6.7
Linux Linux kernel=6.7-rc5
Linux Linux kernel=6.7-rc6
Linux Linux kernel=6.7-rc7
Linux Linux kernel=6.7-rc8
Linux Linux kernel=6.8-rc1
Linux Linux kernel=6.8-rc2
Linux Linux kernel=6.8-rc3
Linux Linux kernel=6.8-rc4
Linux Linux kernel=6.8-rc5
Linux Linux kernel=6.8-rc6
Linux Linux kernel=6.8-rc7
Debian Debian Linux=10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade Linux kernel: tee/optee (Fix kernel panic caused by incorrect error handling; Fix supplicant based device enumeration) to a version that resolves this vulnerability.

    Patch 7269cba53d90

Event History

May 17, 2024
CVE Published
via MITRE·12:24 PM
Data Sourced
via MITRE·12:24 PM
DescriptionSeverity
Data Sourced
via NVD·01:15 PM
Description
Data Sourced
via NVD·01:15 PM
RemedySeverityWeaknessAffected Software
Jul 15, 2024
Data Sourced
via Launchpad·05:02 PM
Description
Dec 2, 2024
Data Sourced
via Ubuntu·05:23 PM
RemedyDescriptionSeverityAffected Software
Dec 28, 58560
Event
via MITRE·10:35 AM

Frequently Asked Questions

1

What is the severity of CVE-2024-35785?

The severity of CVE-2024-35785 has not been explicitly rated, but it involves a kernel panic which can lead to system instability.

2

How do I fix CVE-2024-35785?

To fix CVE-2024-35785, update your Linux kernel to one of the patched versions: 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.128-1, 6.12.12-1, or 6.12.13-1.

3

What systems are affected by CVE-2024-35785?

CVE-2024-35785 affects systems running specific versions of the Debian Linux kernel.

4

What causes CVE-2024-35785?

CVE-2024-35785 is caused by a bug in the error handling path for failing to register devices on the TEE bus, leading to kernel panic.

5

Is there a workaround for CVE-2024-35785?

There are no known workarounds for CVE-2024-35785; applying the recommended kernel updates is essential.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203