Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793187574; b=Rbljrlf/tIq21xNsmnpGXm1mac/uljljg8RBtxuyGjlL+xavYyO0xvCuQwBcxeARwr/q xtFeoalgROK1zlQ7RLO/ner7mHOZ4jL9Bf3p8B60I0gkS2cjZhu2Cub5/udHZlCTUTzfH mj3u2tnhvN2xAE5fwepD8erPOd78nwn/zfhCAOdgcVih6Ec3Qx2ddiGie8+L8UmTGpa8u d5BEGYp6SawEWAa2vkXqHB111JbU4rJ+d83VWQhsvZ8TXV/zA92clrQmIkVBJKD2/if31 hv3OptQ5C5T+WUmUmiGAtoGZPMbMqA0/YWYwsy9XgiAuOGSXWQghUGxE3irW7URJNxQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187574; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=w306C9aoNPJHSFgCwbP4i6MwVUrek0E+5Q8JmkbxRMI=; b=FZ49BhGSwuiBMRtNN/5yx7QiipkAed1E10WfPP3PC9G0NfqLqREDsfKvRZqcoPGB8891 buQTErvD7NsmAT+v2W/AAgcVFVT5dE/VXzrpZY52p0X6Rs0kr9YxJ6hYRC+kjyF7Cxb0U VMoRa8LgP99g3xxKHO1WzMNjEw36gC+2/1ZF2Cm/jedRbadT3Qj++KfOhAs6Pn7qnyg8h 6UU870w3rcXwK5mMFm5X/87ZVrXYAExXZptlq/nNgjlUZNgC3rU2bD1Nr4UxgchSZ31q5 1HEZNlrtEhLJNxxuUiSzzU/aW3KA59v+BTzl5Qe4yfIMXmhMaEUJJm6BJUL2gQWi9hQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=BcxF68UJ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A2C1606A31D for ; Wed, 28 Oct 2026 11:39:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=BcxF68UJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CA811F031E0; Wed, 28 Oct 2026 11:39:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187574; bh=w306C9aoNPJHSFgCwbP4i6MwVUrek0E+5Q8JmkbxRMI=; h=From:To:Cc:Subject:Date:Reply-To; b=BcxF68UJ4hBF/KPLWT4+SgDnOn4aSF02RTQagcjV+RRVJEsBy1uuzWwmO+gaf7MtB m3C5yDDIroGIPzpRwWyvN0UZsGjAjKN5MxzUlO7B2GK4yvDRtiZdQEoCNbp1tjWx4s wWO5QMs8LtLk93nZ0rBF+fH0tuxeuPorSoDdpTOo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99134: mac802154: fix data race and NULL deref on local->assoc_dev Date: Wed, 28 Oct 2026 11:35:21 +0100 Message-ID: <2026102859-CVE-2026-99134-5523@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4904; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VAxepyWEti4zcC7VBl2NbYIQ8byAeEC/lJtzQh6ZE1U=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz1+edUJ35f6rF46zvvfbcvH50tPSbefeldUlNr1Z7 j9RMDwkqiOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm8mM/wzxjbxbBuA+2larP Cy4p8xzevMxF4BHDgpvPrIMvOdap3DNdd0L2oOwlC63SVQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: mac802154: fix data race and NULL deref on local->assoc_dev local->assoc_dev is shared between the association path and the association-response worker without common synchronization. mac802154_perform_association() stores the coordinator pointer and waits for a response. Its timeout and error paths clear the pointer and return to mac802154_associate(), which may then free the coordinator object. Meanwhile, mac802154_rx_mac_cmd_worker() may observe the associating bit and enter mac802154_process_association_resp(), which dereferences assoc_dev. The worker's bit test and the handler's pointer dereference are not atomic with respect to cleanup. Cleanup can clear assoc_dev 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. assoc_status and assoc_addr 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 assoc_dev with a cached address, removing the pointer lifetime dependency. Protect the cached address and the associating bit with a dedicated spinlock. A READ_ONCE()/WRITE_ONCE() pair would not guarantee an atomic __le64 access on all 32-bit architectures. wpan_dev->association_lock cannot be reused here: nl802154_associate() holds it across rdev_associate(), hence for the whole of mac802154_perform_association() 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 assoc_lock, which serializes any racing response against the cleanup while the call returns the error it already selected. Both paths snapshot assoc_status and assoc_addr 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. The Linux kernel CVE team has assigned CVE-2026-99134 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit fefd19807fe9c65002366c749e809996a1ca4e68 and fixed in 6.18.59 with commit 3cdd8b1abddebbae2582e90294c77b61d5f5aee7 Issue introduced in 6.8 with commit fefd19807fe9c65002366c749e809996a1ca4e68 and fixed in 7.2.13 with commit a585901bb8cd2cd60d678be8a56ca6a4e1a6946c Issue introduced in 6.8 with commit fefd19807fe9c65002366c749e809996a1ca4e68 and fixed in 7.3 with commit c037915f80c4db47f7d061d68e703ffd551b1a34 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99134 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/mac802154/ieee802154_i.h net/mac802154/main.c net/mac802154/scan.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/3cdd8b1abddebbae2582e90294c77b61d5f5aee7 https://git.kernel.org/stable/c/a585901bb8cd2cd60d678be8a56ca6a4e1a6946c https://git.kernel.org/stable/c/c037915f80c4db47f7d061d68e703ffd551b1a34