CVE-2026-98854: of/overlay: only treat a positive changeset id as registered

Published Oct 18, 2026
·
Updated

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

of/overlay: only treat a positive changeset id as registered

ofoverlayfdtapply() stores the idralloc() return value in ovcs->id before checking it. On failure the stored id is negative, freeoverlaychangeset()'s "if (ovcs->id)" check passes, idrremove() is called with a negative id and listdel() runs on ovcs->ovcslist, which is not initialized until after the id allocation. An allocation failure at that point dereferences NULL.

Make freeoverlaychangeset() treat only a strict-positive id as registered. The rest of the function already copes with a partially-initialized ovcs, so the error path stays a plain goto errfreeovcs.

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 18, 2026
CVE Published
via MITRE·03:51 PM
Data Sourced
via MITRE·03:51 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger the vulnerable path?

The issue is triggered when idr_alloc() fails during of_overlay_fdt_apply(). The failed allocation stores a negative ID before cleanup runs, causing cleanup to attempt removal of an unregistered, partially initialized overlay changeset.

2

What happens when the vulnerable error path is reached?

The cleanup path can call idr_remove() with a negative ID and run list_del() on an uninitialized ovcs_list. This results in a NULL dereference.

3

What should be done if the issue cannot be patched immediately?

The provided information does not specify a workaround. The described failure depends on an allocation failure while applying a device-tree overlay, so systems that do not exercise that operation would not reach this specific path.

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