Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
can: raw: fix ro->uniq use-after-free in raw_rcv()
raw_release() unregisters raw CAN receive filters via can_rx_unregister(), but receiver deletion is deferred with call_rcu(). This leaves a window where raw_rcv() may still be running in an RCU read-side critical section after raw_release() frees ro->uniq, leading to a use-after-free of the percpu uniq storage.
Move free_percpu(ro->uniq) out of raw_release() and into a raw-specific socket destructor. can_rx_unregister() takes an extra reference to the socket and only drops it from the RCU callback, so freeing uniq from sk_destruct ensures the percpu area is not released until the relevant callbacks have drained.
[mkl: applied manually]
Details
- Affected product:
- AlmaLinux 9.2 ESU , Amazon Linux 2 ELS , CentOS 7 ELS , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , Debian 10 ELS , Oracle Linux 7 ELS , TuxCare 9.6 ESU , Ubuntu 16.04 ELS , Ubuntu 18.04 ELS , Ubuntu 20.04 ELS
- Affected packages:
- kernel @ 5.14.0 (+13 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 |
105 kernels
|
| AlmaLinux 9 | Released |
106 kernels
|
| AlmaLinux 9.2 ESU | Planned | — |
| AlmaLinux 9.6 ESU | Released |
9 kernels
|
| Amazon Linux 2023 | Planned | — |
| CentOS 7 | Released |
35 kernels
|
| CentOS 7 plus | Released |
23 kernels
|
| CentOS 8 | Released |
21 kernels
|
| CloudLinux OS 7h | Released |
102 kernels
|
| CloudLinux OS 8 | Released |
99 kernels
|
| Debian 11 | Planned | — |
| Debian 11 cloud | Planned | — |
| Debian 12 | Planned | — |
| Debian 13 | Planned | — |
| Oracle Linux 10 | Released |
35 kernels
|
| Oracle Linux 8 | Released |
115 kernels
|
| Oracle Linux 9 | Released |
109 kernels
|
| RHEL 10 | Released |
37 kernels
|
| RHEL 7 | Released |
56 kernels
|
| RHEL 8 | Released |
110 kernels
|
| RHEL 9 | Released |
104 kernels
|
| Rocky Linux 10 | Released |
27 kernels
|
| Rocky Linux 8 | Released |
88 kernels
|
| Rocky Linux 9 | Released |
85 kernels
|
| Ubuntu 22.04 | Planned | — |
| Ubuntu 24.04 | Planned | — |