batman-adv: stop originator purge worker before freeing TT
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: batman-adv: stop originator purge worker before freeing TT batadv_mesh_free() releases the translation tables via batadv_tt_free() before batadv_originator_free() stops orig_work. The purge worker can therefore still run while the TT is torn down. When an originator times out, batadv_purge_orig_ref() calls batadv_tt_global_del_orig(), which loads tt.global_hash and walks all buckets while taking their locks: CPU0 CPU1 batadv_tt_free() batadv_purge_orig() batadv_tt_global_del_orig() hash = ...tt.global_hash; batadv_tt_global_table_free() batadv_hash_destroy(hash); spin_lock_bh(&hash->list_locks[i]); Disable orig_work at the beginning of batadv_mesh_free(), directly after the mesh was marked as deactivating. The second disable_delayed_work_sync() in batadv_originator_free() is harmless because it is free'd anyway.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 9d31b3ce81683ce3c9fd10afa70892e373b21067, before c39b54b2cbdc94e7d8893ece8d3e14babb745fae; from 9d31b3ce81683ce3c9fd10afa70892e373b21067, before 10b097f7fdd7aadb43f1e3b0bc0f7189d859df8e; from 9d31b3ce81683ce3c9fd10afa70892e373b21067, before 59797c2df15a582bae0d7f9ef9666420489df6ce; from 9d31b3ce81683ce3c9fd10afa70892e373b21067, before 54f1e9545f64a730284368ad209ce31c9dedc4aa; from 9d31b3ce81683ce3c9fd10afa70892e373b21067, before 2f5a6b491fcecc6abb3a2741f5ba5e0c5fd8db5b; from 9d31b3ce81683ce3c9fd10afa70892e373b21067, before 318b5a4eb1cecf7a4d5291f5265925119b454eab; and 2 more | c39b54b2cbdc94e7d8893ece8d3e14babb745fae; 10b097f7fdd7aadb43f1e3b0bc0f7189d859df8e; 59797c2df15a582bae0d7f9ef9666420489df6ce; 54f1e9545f64a730284368ad209ce31c9dedc4aa |
| Linux Linux | Software | 3.19 | not recorded |
The 7.8 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.8 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.