batman-adv: bla: prevent use-after-free when deleting claims
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 23721387c409087fd3b97e274f34d3ddc0970b74 · < 00155f336a5e8b1006d2ca9ae7ad8fc4a44bb401| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: bla: prevent use-after-free when deleting claims
When batadv_bla_del_backbone_claims() removes all claims for a backbone, it does this by dropping the link entry in the hash list. This list entry itself was one of the references which need to be dropped at the same time via batadv_claim_put().
But the batadv_claim_put() must not be done before the last access to the claim object in this function. Otherwise the claim might be freed already by the batadv_claim_release() function before the list entry was dropped.
From the CVE record · Linux
The Linux kernel’s batman-adv BLA code can access a claim after it has been freed while deleting backbone claims. The input does not specify how an attacker could trigger this condition, what they could achieve, or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with batman-adv should check their versions; affected versions are not specified.