CVE-2026-99097: tee: shm: reject zero-sized allocations in tee_dyn_shm_alloc_helper()

Published Oct 26, 2026
·
Updated

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

tee: shm: reject zero-sized allocations in teedynshmallochelper()

teedynshmallochelper() derives nrpages from a caller-supplied size and passes it to allocpagesexact() without checking it. For size == 0 nrpages is 0, and allocpagesexact(0) calls getorder(0), which is documented as undefined and returns BITSPERLONG - PAGESHIFT. The page allocator then trips its order > MAXPAGEORDER warning and fails the allocation; on a paniconwarn kernel that ends the boot.

This can be triggered by TEEIOCSHMALLOC with struct teeioctlshmallocdata where size is 0.

Reject a zero page count, as registershmhelper() already does for the register path.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Reject zero-sized allocations in tee_dyn_shm_alloc_helper() before deriving nr_pages or calling alloc_pages_exact().

Event History

Oct 26, 2026
CVE Published
via MITRE·02:52 PM
Data Sourced
via MITRE·02:52 PM
Description

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