batman-adv: v: prevent OGM aggregation on disabled hardif
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f89255a02f1d75d8e1b9d1c31435fcb64840cb2a · < 3d4548c96d6f21ac1a9b06c5f82f3ef439c87023| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: v: prevent OGM aggregation on disabled hardif
When an interface gets disabled, the worker is correctly disabled by batadv_hardif_disable_interface() -> ... -> batadv_v_ogm_iface_disable(). In this process, the skb aggr_list is also freed.
But batadv_v_ogm_send_meshif() can still queue new skbs (via batadv_v_ogm_queue_on_if()) to the aggr_list. This will only stop after all cores can no longer find the RCU protected list of hard interfaces. These queued skbs will never be freed or consumed by batadv_v_ogm_aggr_work.
The batadv_v_ogm_iface_disable() function must block batadv_v_ogm_queue_on_if() to avoid leak of skbs.
From the CVE record · Linux
In the Linux kernel's batman-adv component, disabling a hard interface can leave newly queued packet buffers unfreed. This causes a memory leak; the input does not describe how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels with batman-adv should check their versions against the vendor advisory; affected versions are not specified.