net/xen-netback: prevent UAF in xenvif_flush_hash()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 40d8abdee806d496a60ee607a6d01b1cd7fabaf0 · < d408889d4b54f5501e4becc4dbbb9065143fbf4e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/xen-netback: prevent UAF in xenvif_flush_hash()
During the list_for_each_entry_rcu iteration call of xenvif_flush_hash, kfree_rcu does not exist inside the rcu read critical section, so if kfree_rcu is called when the rcu grace period ends during the iteration, UAF occurs when accessing head->next after the entry becomes free.
Therefore, to solve this, you need to change it to list_for_each_entry_safe.
From the CVE record · Linux
A flaw in xen-netback's xenvif_flush_hash() can cause a use-after-free during list iteration when an entry is freed after an RCU grace period. The input does not establish how an attacker could trigger it or whether network access, local access, authentication, or user interaction is required.
Engineers running Linux kernels with xen-netback should check their systems; affected versions are not specified.