7.8high
mac802154: fix netdev use-after-free in beacon worker
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: mac802154: fix netdev use-after-free in beacon worker mac802154_beacon_worker() reads local->beacon_req under RCU and derives the sub-interface from the request, but then drops the RCU read lock and continues to use both sdata and the embedded wpan_dev. mac802154_stop_beacons_locked() cancels only pending beacon work, clears local->beacon_req and frees the request. A beacon worker that is already running can therefore continue after interface teardown and dereference the freed netdev private area. The scan worker already pins the netdev before leaving RCU. Apply the same lifetime rule to the beacon worker: take a netdev reference while the request is still protected by RCU, and release it on all paths that continue after the reference is acquired.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 3accf4762734a69ebd03cba989249c78ac7dfc7e before fe820dcc1d8ff77783a9d2bcc93b98c99ac6d517, from 3accf4762734a69ebd03cba989249c78ac7dfc7e before e5fb0e03bc7f45508c182a427357bf6b389a9033, from 3accf4762734a69ebd03cba989249c78ac7dfc7e before e6cd416a899edc912b428c4ba399bd73f516cb31, from 3accf4762734a69ebd03cba989249c78ac7dfc7e before 9d067e581597c462c51fee8a30b51bc48a68c4e1, from 3accf4762734a69ebd03cba989249c78ac7dfc7e before 5f26a690e8efa54315e4922368daf54e0b8f5515, 6.3 Not affected: before 6.3, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.*, from 6.18.45 up to 6.18.*, from 7.1.9 up to 7.1.*, from 7.2 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: mac802154: fix netdev use-after-free in beacon worker mac802154_beacon_worker() reads local->beacon_req under RCU and derives the sub-interface from the request, but then drops the RCU read lock and continues to use both sdata and the embedded wpan_dev. mac802154_stop_beacons_locked() cancels only pending beacon work, clears local->beacon_req and frees the request. A beacon worker that is already running can therefore continue after interface teardown and dereference the freed netdev private area. The scan worker already pins the netdev before leaving RCU. Apply the same lifetime rule to the beacon worker: take a netdev reference while the request is still protected by RCU, and release it on all paths that continue after the reference is acquired.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mac802154: corregir uso después de liberación de netdev en el trabajador de balizas mac802154_beacon_worker() lee local -> beacon_req bajo RCU y deriva la subinterfaz de la solicitud, pero luego suelta el bloqueo de lectura RCU y continúa usando tanto sdata como el wpan_dev incrustado. mac802154_stop_beacons_locked() cancela solo el trabajo de balizas pendiente, borra local -> beacon_req y libera la solicitud. Un trabajador de balizas que ya está en ejecución puede, por lo tanto, continuar después del desmontaje de la interfaz y desreferenciar el área privada de netdev liberada. El trabajador de escaneo ya fija el netdev antes de salir de RCU. Aplicar la misma regla de vida útil al trabajador de balizas: tomar una referencia de netdev mientras la solicitud aún está protegida por RCU, y liberarla en todas las rutas que continúan después de que se adquiere la referencia.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74661 changed 2026-08-25 | CVE Terms of Use |
| NVD | CVE-2026-74661 changed 2026-10-14 | Public domain |