batman-adv: hold claim backbone gateways by reference
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 23721387c409087fd3b97e274f34d3ddc0970b74 · < 4dee4c0688443aaf5bbec74aa203c851d1d53c35| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: hold claim backbone gateways by reference
batadv_bla_add_claim() can replace claim->backbone_gw and drop the old gateway's last reference while readers still follow the pointer.
The netlink claim dump path dereferences claim->backbone_gw->orig and takes claim->backbone_gw->crc_lock without pinning the underlying backbone gateway. batadv_bla_check_claim() still has the same naked pointer access pattern.
Reuse batadv_bla_claim_get_backbone_gw() in both readers so they operate on a stable gateway reference until the read-side work is complete. This keeps the dump and claim-check paths aligned with the lifetime rules introduced for the other BLA claim readers.
From the CVE record · Linux
In the Linux kernel, batman-adv BLA claim readers can access a backbone gateway after its last reference has been dropped. The netlink claim dump and claim-check paths may dereference an unstable pointer; the input does not establish whether exploitation requires network access, authentication, or user interaction.
Engineers running the Linux kernel with batman-adv should check their kernel; affected versions are not specified.