xen-netback: take a reference to the RX task thread
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.10.435.12.105.13In the Linux kernel, the following vulnerability has been resolved:
xen-netback: take a reference to the RX task thread
Do this in order to prevent the task from being freed if the thread returns (which can be triggered by the frontend) before the call to kthread_stop done as part of the backend tear down. Not taking the reference will lead to a use-after-free in that scenario. Such reference was taken before but dropped as part of the rework done in 2ac061ce97f4.
Reintroduce the reference taking and add a comment this time explaining why it's needed.
This is XSA-374 / CVE-2021-28691.
From the CVE record · Linux
The Linux kernel’s xen-netback component can use an RX task thread after it has been freed. A frontend can trigger this if the thread returns before backend teardown calls kthread_stop. The input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with xen-netback should check their kernel against the vendor advisory; affected versions are not specified.