A use-after-free vulnerability in the Linux kernel's net/sched: cls_fw component can be exploited to achieve local privilege escalation.
If tcf_change_indev() fails, fw_set_parms() will immediately return an error after incrementing or decrementing the reference counter in tcf_bind_filter(). If an attacker can control the reference counter and set it to zero, they can cause the reference to be freed, leading to a use-after-free vulnerability.
We recommend upgrading past commit 0323bce598eea038714f941ce2b22541c46d488f.
| Software | From | Fixed in |
|---|---|---|
| linux / linux_kernel | 6.5-rc1 | 6.5-rc1.x |
| debian / debian_linux | 10.0 | 10.0.x |
| debian / debian_linux | 11.0 | 11.0.x |
| debian / debian_linux | 12.0 | 12.0.x |
| linux / linux_kernel | 5.11 | 5.15.121 |
| linux / linux_kernel | 5.5 | 5.10.188 |
| linux / linux_kernel | 4.20 | 5.4.251 |
| linux / linux_kernel | 4.15 | 4.19.291 |
| linux / linux_kernel | 5.16 | 6.1.40 |
| linux / linux_kernel | 6.2 | 6.4.5 |
| linux / linux_kernel | 2.6.12 | 4.14.322 |