CVE-2026-99134: mac802154: fix data race and NULL deref on local->assoc_dev

Published Oct 28, 2026
·
Updated

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

mac802154: fix data race and NULL deref on local->assocdev

local->assocdev is shared between the association path and the association-response worker without common synchronization.

mac802154performassociation() stores the coordinator pointer and waits for a response. Its timeout and error paths clear the pointer and return to mac802154associate(), which may then free the coordinator object. Meanwhile, mac802154rxmaccmdworker() may observe the associating bit and enter mac802154processassociationresp(), which dereferences assocdev.

The worker's bit test and the handler's pointer dereference are not atomic with respect to cleanup. Cleanup can clear assocdev between them, causing a NULL dereference, or free the coordinator while the response handler still uses the pointer.

The recorded result is exposed to the same window. assocstatus and assocaddr are written by the handler but read by the association path while the associating bit is still set, so a second response for the same request - a malicious one, for instance - can replace them between those reads and leave the caller with an incoherent status and address pair.

The response handler only needs the coordinator extended address. Replace assocdev with a cached address, removing the pointer lifetime dependency. Protect the cached address and the associating bit with a dedicated spinlock. A READONCE()/WRITEONCE() pair would not guarantee an atomic le64 access on all 32-bit architectures.

wpandev->associationlock cannot be reused here: nl802154associate() holds it across rdevassociate(), hence for the whole of mac802154performassociation() including the wait for the response. A response handler taking that lock would only get it once the association has already given up.

Reset the completion, publish the cached address, and set the associating bit while holding the lock. The response handler takes the lock, rechecks the bit and the cached address, records the response, clears the bit, and only then completes the waiter. Thus cleanup cannot pass the handler between its state check and completion, and the cached 64-bit value cannot tear.

The handler clears the bit before completing, not the woken waiter: otherwise complete() is issued under the lock and a second (e.g. malicious) response can reacquire it before the waiter and replace the result. So a wait that returns success implies the bit is already clear, and the success and negative-response paths return directly. The transmit-error and timeout paths still clear it under assoclock, which serializes any racing response against the cleanup while the call returns the error it already selected. Both paths snapshot assocstatus and assocaddr under the same lock.

Both users run in process context, so a plain spinlock is sufficient. The lock is not held while waiting for the completion.

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 28, 2026
CVE Published
via MITRE·10:34 AM
Data Sourced
via MITRE·10:34 AM
Description
Data Sourced
via NVD·11:17 AM
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