liveupdate: fix u-a-f in luo_file_unpreserve_files() and luo_file_finish()
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
liveupdate: fix u-a-f in luo_file_unpreserve_files() and luo_file_finish()
In luo_file_unpreserve_files() and luo_file_finish(), reorder module_put() and xa_erase() to ensure the file handler module remains pinned while its operations are being accessed.
Specifically, luo_get_id() dereferences fh->ops->get_id, so the module reference must be held until after xa_erase() (which calls luo_get_id) completes.
For luo_file_finish(), this requires moving the module_put() call out of the luo_file_finish_one() helper and into the main loop of luo_file_finish() itself.
From the CVE record · Linux
The Linux kernel’s liveupdate file-handling code can access a module operation after releasing its module reference. This can cause a use-after-free; the input does not specify how an attacker could trigger it or whether authentication or user interaction is required.
Anyone running a Linux kernel with the affected liveupdate code should check their kernel version; affected versions are not specified.