Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
net: mana: fix use-after-free in add_adev() error path
If auxiliary_device_add() fails, add_adev() jumps to add_fail and calls auxiliary_device_uninit(adev).
The auxiliary device has its release callback set to adev_release(), which frees the containing struct mana_adev. Since adev is embedded in struct mana_adev, the subsequent fall-through to init_fail and access to adev->id may result in a use-after-free.
Fix this by saving the allocated auxiliary device id in a local variable before calling auxiliary_device_add(), and use that saved id in the cleanup path after auxiliary_device_uninit().
Details
- Affected product:
- AlmaLinux 9.2 ESU , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , TuxCare 9.6 ESU
- Affected packages:
- kernel @ 5.14.0 (+4 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| AlmaLinux 10 | Released |
37 kernels
|
| AlmaLinux 8 | Released |
77 kernels
|
| AlmaLinux 9 | Released |
95 kernels
|
| CloudLinux OS 7h | Released |
66 kernels
|
| CloudLinux OS 8 | Released |
65 kernels
|
| Debian 13 | Planned | — |
| Oracle Linux 8 | Released |
76 kernels
|
| Oracle Linux 9 | Released |
93 kernels
|
| RHEL 10 | Released |
37 kernels
|
| RHEL 8 | Released |
72 kernels
|
| RHEL 9 | Released |
92 kernels
|
| Rocky Linux 10 | Released |
27 kernels
|
| Rocky Linux 8 | Released |
64 kernels
|
| Rocky Linux 9 | Released |
75 kernels
|
| Ubuntu 24.04 | Planned | — |